mirror of
https://github.com/atlanticbiomedical/website.git
synced 2025-07-01 18:07:27 -04:00
Fixed images
This commit is contained in:
@ -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',
|
||||
|
@ -6,7 +6,7 @@
|
||||
<div class="details"><p>{{post.details}}</p></div>
|
||||
<ul class="clearing-thumbs small-block-grid-4" data-clearing>
|
||||
<li ng-repeat="image in gallery track by $index">
|
||||
<a href="/images/{{image}}"><img ng-src="/images/{{image}}"></a>
|
||||
<a href="http://wootroot.me:8001/unsafe/{{image}}"><img ng-src="http://wootroot.me:8001/unsafe/200x200/smart/{{image}}"></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
50
biomed-frontend/src/app/konami.js
Normal file
50
biomed-frontend/src/app/konami.js
Normal file
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
@ -2,7 +2,7 @@
|
||||
<div ng-repeat="post in posts" class="masonry-brick">
|
||||
<div class="box col3">
|
||||
<div class="thumbnail">
|
||||
<img class="img-rounded" ng-show="post.image" ng-src="/images/{{post.image}}">
|
||||
<img class="img-rounded" ng-show="post.image" ng-src="http://wootroot.me:8001/unsafe/280x0/{{post.image}}">
|
||||
<div class="caption text-center">
|
||||
<h3>{{post.title}}</h3>
|
||||
<p>{{post.preview}}</p>
|
||||
|
Reference in New Issue
Block a user