mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
remove adaptive photo background
This commit is contained in:
parent
c0667fc14b
commit
ebbf884c0d
@ -115,7 +115,6 @@ module.exports = function(grunt){
|
|||||||
'node_modules/masonry-layout/dist/masonry.pkgd.js',
|
'node_modules/masonry-layout/dist/masonry.pkgd.js',
|
||||||
'node_modules/imagesloaded/imagesloaded.js',
|
'node_modules/imagesloaded/imagesloaded.js',
|
||||||
'bower_components/simple-jekyll-search/dest/jekyll-search.js',
|
'bower_components/simple-jekyll-search/dest/jekyll-search.js',
|
||||||
'bower_components/jquery.adaptive-background/index.js',
|
|
||||||
'bower_components/time-elements/time-elements.js',
|
'bower_components/time-elements/time-elements.js',
|
||||||
'<%= config.src %>/<%= config.assets.js %>/app.js'
|
'<%= config.src %>/<%= config.assets.js %>/app.js'
|
||||||
]
|
]
|
||||||
|
@ -23,7 +23,7 @@ var siteNavigation = {
|
|||||||
$searchpop = $('.popover');
|
$searchpop = $('.popover');
|
||||||
|
|
||||||
$searchlink.click(function(e) {
|
$searchlink.click(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault()
|
||||||
|
|
||||||
// init jekyll search
|
// init jekyll search
|
||||||
SimpleJekyllSearch({
|
SimpleJekyllSearch({
|
||||||
@ -151,24 +151,8 @@ var photoGrid = {
|
|||||||
|
|
||||||
var siteEffects = {
|
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() {
|
init: function() {
|
||||||
if ($('.page-single .format-photo').length > 0) {
|
|
||||||
this.adaptiveBackground();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery-infinite-scroll": ">=2.0.2",
|
"jquery-infinite-scroll": ">=2.0.2",
|
||||||
"simple-jekyll-search": ">=2.0.0",
|
"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",
|
"time-elements": ">=0.4.0",
|
||||||
"webcomponentsjs": ">=0.6.1"
|
"webcomponentsjs": ">=0.6.1"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user