From abf4dc392b2ce4607e1dfac9fb717486d456d421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Mon, 31 Mar 2014 22:34:35 +0200 Subject: [PATCH] add easter egg dogecoin --- Gruntfile.js | 1 + index.html | 98 ++++++++++++++++++++++++++++++++++++++++++- src/doge.js | 77 ++++++++++++++++++++++++++++++++++ src/index.html | 3 ++ src/janin.currency.js | 15 +++++++ src/main.css | 1 + 6 files changed, 193 insertions(+), 2 deletions(-) create mode 100644 src/doge.js diff --git a/Gruntfile.js b/Gruntfile.js index 030ee4a..629c40b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -23,6 +23,7 @@ module.exports = function (grunt) { { token: "//cryptojs.blockmodes.js", file: "./src/cryptojs.blockmodes.js" }, { token: "//cryptojs.ripemd160.js", file: "./src/cryptojs.ripemd160.js" }, { token: "//crypto-scrypt.js", file: "./src/crypto-scrypt.js" }, + { token: "//doge.js", file: "./src/doge.js" }, { token: "//ellipticcurve.js", file: "./src/ellipticcurve.js" }, { token: "//ninja.key.js", file: "./src/ninja.key.js" }, { token: "//ninja.misc.js", file: "./src/ninja.misc.js" }, diff --git a/index.html b/index.html index 9b301e0..9c05545 100644 --- a/index.html +++ b/index.html @@ -6024,6 +6024,7 @@ body { font-family: Arial; background-image: url('images/diamonds.png'); } #currency { display: none; } #paperarea .artwallet .btcaddress, #paperarea .artwallet .btcprivwif { z-index: 999; } .paperWalletText { z-index: 999;} + .dogeTag { display: none; } } @@ -6390,6 +6391,85 @@ body { font-family: Arial; background-image: url('images/diamonds.png'); } + diff --git a/src/janin.currency.js b/src/janin.currency.js index a6d2bf3..f560227 100644 --- a/src/janin.currency.js +++ b/src/janin.currency.js @@ -53,6 +53,21 @@ janin.currency = { document.getElementById("vanityaddress").innerHTML = ""; document.getElementById("vanitypublickeyhex").innerHTML = ""; document.getElementById("vanityprivatekeywif").innerHTML = ""; + + + // easter egg doge ;) + if(janin.currency.name() == "Dogecoin") + { + janin.doge = new Doge(['wow', 'so wallet', 'such random', 'very pretty', 'much design']); + return; + } + + if(janin.doge != null) + { + janin.doge.stop(); + janin.doge = null; + } + }, }; diff --git a/src/main.css b/src/main.css index 485fa58..2856908 100644 --- a/src/main.css +++ b/src/main.css @@ -272,4 +272,5 @@ body { font-family: Arial; background-image: url('images/diamonds.png'); } #currency { display: none; } #paperarea .artwallet .btcaddress, #paperarea .artwallet .btcprivwif { z-index: 999; } .paperWalletText { z-index: 999;} + .dogeTag { display: none; } } \ No newline at end of file