updated Uikit v2

This commit is contained in:
2017-11-12 02:33:10 +02:00
parent 7d27af5d59
commit 1cc40dbfe4
437 changed files with 9171 additions and 5797 deletions

View File

@@ -1,15 +1,15 @@
/*! UIkit 2.25.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/*! UIkit 2.27.4 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(addon) {
var component;
if (window.UIkit) {
component = addon(UIkit);
if (window.UIkit2) {
component = addon(UIkit2);
}
if (typeof define == "function" && define.amd) {
define("uikit-grid-parallax", ["uikit"], function(){
return component || addon(UIkit);
if (typeof define == 'function' && define.amd) {
define('uikit-grid-parallax', ['uikit'], function(){
return component || addon(UIkit2);
});
}
@@ -28,16 +28,16 @@
UI.component('gridparallax', {
defaults: {
target : false,
smooth : 150,
translate : 150
target : false,
smooth : 150,
translate : 150
},
boot: function() {
// listen to scroll and resize
UI.$doc.on("scrolling.uk.document", checkParallaxes);
UI.$win.on("load resize orientationchange", UI.Utils.debounce(function(){
UI.$doc.on('scrolling.uk.document', checkParallaxes);
UI.$win.on('load resize orientationchange', UI.Utils.debounce(function(){
checkParallaxes();
}, 50));
@@ -48,8 +48,8 @@
var parallax = UI.$(this);
if (!parallax.data("gridparallax")) {
UI.gridparallax(parallax, UI.Utils.options(parallax.attr("data-uk-grid-parallax")));
if (!parallax.data('gridparallax')) {
UI.gridparallax(parallax, UI.Utils.options(parallax.attr('data-uk-grid-parallax')));
}
});
});
@@ -107,7 +107,7 @@
}
while(mods.length < columns) {
if(!(mods[mods.length-1] - 2)) break;
if (!(mods[mods.length-1] - 2)) break;
mods.push(mods[mods.length-1] - 2);
}
@@ -139,7 +139,7 @@
var top = element.offset().top,
height = element.outerHeight(),
scrolltop = UIkit.$win.scrollTop(),
scrolltop = UI.$win.scrollTop(),
wh = window.innerHeight,
distance, percentage, percent;
@@ -165,4 +165,4 @@
return percent > 1 ? 1:percent;
}
});
});