Add screenshot to webpage.

This commit is contained in:
ccd0 2014-12-28 23:18:34 -08:00
parent 506c80153f
commit bb248dc817
3 changed files with 12 additions and 2 deletions

View File

@ -163,7 +163,7 @@ module.exports = (grunt) ->
command: """
git commit -am "Build web page."
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 checkout -
""".split('\n').join('&&')

BIN
img/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -10,11 +10,21 @@ h1 {
text-align: center;
background-color: #eee;
}
img {
display: block;
margin: auto;
max-width: 100%
}
@media (min-width: 1120px) {
img {
float: right;
}
}
</style>
<link rel="icon" href="src/General/img/icon.gif">
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/ohnjgmpcibpbafdlkimncjhflgedgpam">
</head><body>
<%= content %>
<%= content.replace('</h1>', '</h1><img src="img/screenshot.png">') %>
<script>
var links = document.querySelectorAll('a[href="https://chrome.google.com/webstore/detail/4chan-x/ohnjgmpcibpbafdlkimncjhflgedgpam"]');
for (var i = 0; i < links.length; i++) {