Add screenshot to webpage.
This commit is contained in:
parent
506c80153f
commit
bb248dc817
@ -163,7 +163,7 @@ module.exports = (grunt) ->
|
|||||||
command: """
|
command: """
|
||||||
git commit -am "Build web page."
|
git commit -am "Build web page."
|
||||||
git checkout gh-pages
|
git checkout gh-pages
|
||||||
git checkout - README.md template.jst index.html
|
git checkout - README.md template.jst index.html img
|
||||||
git commit -am "Update web page."
|
git commit -am "Update web page."
|
||||||
git checkout -
|
git checkout -
|
||||||
""".split('\n').join('&&')
|
""".split('\n').join('&&')
|
||||||
|
|||||||
BIN
img/screenshot.png
Normal file
BIN
img/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 93 KiB |
12
template.jst
12
template.jst
@ -10,11 +10,21 @@ h1 {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
}
|
}
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
|
max-width: 100%
|
||||||
|
}
|
||||||
|
@media (min-width: 1120px) {
|
||||||
|
img {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<link rel="icon" href="src/General/img/icon.gif">
|
<link rel="icon" href="src/General/img/icon.gif">
|
||||||
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/ohnjgmpcibpbafdlkimncjhflgedgpam">
|
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/ohnjgmpcibpbafdlkimncjhflgedgpam">
|
||||||
</head><body>
|
</head><body>
|
||||||
<%= content %>
|
<%= content.replace('</h1>', '</h1><img src="img/screenshot.png">') %>
|
||||||
<script>
|
<script>
|
||||||
var links = document.querySelectorAll('a[href="https://chrome.google.com/webstore/detail/4chan-x/ohnjgmpcibpbafdlkimncjhflgedgpam"]');
|
var links = document.querySelectorAll('a[href="https://chrome.google.com/webstore/detail/4chan-x/ohnjgmpcibpbafdlkimncjhflgedgpam"]');
|
||||||
for (var i = 0; i < links.length; i++) {
|
for (var i = 0; i < links.length; i++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user