diff --git a/biomed-frontend/gulpfile.js b/biomed-frontend/gulpfile.js index e87ddb6..f6925d6 100644 --- a/biomed-frontend/gulpfile.js +++ b/biomed-frontend/gulpfile.js @@ -21,11 +21,11 @@ gulp.task('clean', function() { gulp.task('vendor', function() { gulp.src([ 'vendor/jquery/dist/jquery.min.js', + 'vendor/angular/angular.min.js', 'vendor/foundation/js/vendor/modernizr.js', 'vendor/foundation/js/foundation.js', 'vendor/foundation/js/foundation/foundation.abide.js', 'vendor/foundation/js/foundation/foundation.clearing.js', - 'vendor/angular/angular.min.js', 'vendor/angular-loading-bar/build/loading-bar.js', 'vendor/angular-resource/angular-resource.js', 'vendor/angular-sanitize/angular-sanitize.js', diff --git a/biomed-frontend/src/app/details.html b/biomed-frontend/src/app/details.html index 376da7b..adc6a42 100644 --- a/biomed-frontend/src/app/details.html +++ b/biomed-frontend/src/app/details.html @@ -6,7 +6,7 @@

{{post.details}}

diff --git a/biomed-frontend/src/app/konami.js b/biomed-frontend/src/app/konami.js new file mode 100644 index 0000000..a3e73bc --- /dev/null +++ b/biomed-frontend/src/app/konami.js @@ -0,0 +1,50 @@ +/* + * Konami Code For jQuery Plugin + * 1.3.0, 7 March 2014 + * + * Using the Konami code, easily configure and Easter Egg for your page or any element on the page. + * + * Copyright 2011 - 2014 Tom McFarlin, http://tommcfarlin.com + * Released under the MIT License + */ +(function($) { + $.fn.konami = function(options) { + var opts, masterKey, controllerCode, code; + opts = $.extend({}, $.fn.konami.defaults, options); + return this.each(function() { + controllerCode = []; + $(window).keyup(function(evt) { + code = evt.keyCode || evt.which; + + if (opts.code.length > controllerCode.push(code)) { + return; + } + + if (opts.code.length < controllerCode.length) { + controllerCode.shift(); + } + + if (opts.code.toString() !== controllerCode.toString()) { + return; + } + + opts.cheat(); + }); + }); + }; + + $.fn.konami.defaults = { + code: [38,38,40,40,37,39,37,39,66,65], + cheat: null + }; +})(jQuery); + +$(document).ready(function() { + $(window).konami({ + cheat: function() { + var s = document.createElement('script'); + s.setAttribute('src','https://nthitz.github.io/turndownforwhatjs/tdfw.js'); + document.body.appendChild(s); + } + }); +}); \ No newline at end of file diff --git a/biomed-frontend/src/app/list.html b/biomed-frontend/src/app/list.html index b814109..ec6cd44 100644 --- a/biomed-frontend/src/app/list.html +++ b/biomed-frontend/src/app/list.html @@ -2,7 +2,7 @@
- +

{{post.title}}

{{post.preview}}