1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

remove adaptive photo background

This commit is contained in:
Matthias Kretschmann 2015-05-29 02:39:53 +02:00
parent c0667fc14b
commit ebbf884c0d
3 changed files with 2 additions and 20 deletions

View File

@ -115,7 +115,6 @@ module.exports = function(grunt){
'node_modules/masonry-layout/dist/masonry.pkgd.js',
'node_modules/imagesloaded/imagesloaded.js',
'bower_components/simple-jekyll-search/dest/jekyll-search.js',
'bower_components/jquery.adaptive-background/index.js',
'bower_components/time-elements/time-elements.js',
'<%= config.src %>/<%= config.assets.js %>/app.js'
]

View File

@ -23,7 +23,7 @@ var siteNavigation = {
$searchpop = $('.popover');
$searchlink.click(function(e) {
e.preventDefault();
e.preventDefault()
// init jekyll search
SimpleJekyllSearch({
@ -151,24 +151,8 @@ var photoGrid = {
var siteEffects = {
adaptiveBackground: function() {
var opts = {
selector: '.hmedia img',
parent: '.document'
}
$('.hmedia img').imagesLoaded(function() {
$.adaptiveBackground.run(opts)
});
// jump to photo background start
$(document).scrollTop($('#main').offset().top);
},
init: function() {
if ($('.page-single .format-photo').length > 0) {
this.adaptiveBackground();
}
}
}

View File

@ -10,7 +10,6 @@
"dependencies": {
"jquery-infinite-scroll": ">=2.0.2",
"simple-jekyll-search": ">=2.0.0",
"jquery.adaptive-background": "https://raw.github.com/briangonzalez/jquery.adaptive-backgrounds.js/master/src/jquery.adaptive-backgrounds.js",
"time-elements": ">=0.4.0",
"webcomponentsjs": ">=0.6.1"
},