Added the GitHub ribbon

This commit is contained in:
Douglas Muth 2015-04-26 18:58:55 -04:00
parent bf9f96b451
commit 59787d895f
2 changed files with 9 additions and 0 deletions

View file

@ -26,6 +26,9 @@
<div class="container"> <div class="container">
<a id="github_ribbon" style="display: none; " href="https://github.com/dmuth/diceware"
><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<div class="starter-template"> <div class="starter-template">
<h1>Diceware Password Generator</h1> <h1>Diceware Password Generator</h1>
<p class="lead"> <p class="lead">

View file

@ -246,6 +246,12 @@ jQuery("#roll_dice").on("click", function(e) {
}); });
//
// If we're not on a mobile, bring in the GitHub ribbon.
//
if (!is_mobile()) {
jQuery("#github_ribbon").fadeIn(1000);
}
// //
// Load our wordlist. // Load our wordlist.