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: """ 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -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++) {