use shared slideshow
This commit is contained in:
parent
c959aa01a2
commit
3eec24c917
86 changed files with 18787 additions and 2233 deletions
63
dashboard-ui/bower_components/Swiper/src/js/swiper-proto.js
vendored
Normal file
63
dashboard-ui/bower_components/Swiper/src/js/swiper-proto.js
vendored
Normal file
|
@ -0,0 +1,63 @@
|
|||
/*==================================================
|
||||
Prototype
|
||||
====================================================*/
|
||||
Swiper.prototype = {
|
||||
isSafari: (function () {
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
return (ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0);
|
||||
})(),
|
||||
isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),
|
||||
isArray: function (arr) {
|
||||
return Object.prototype.toString.apply(arr) === '[object Array]';
|
||||
},
|
||||
/*==================================================
|
||||
Browser
|
||||
====================================================*/
|
||||
browser: {
|
||||
ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled,
|
||||
ieTouch: (window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1) || (window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1)
|
||||
},
|
||||
/*==================================================
|
||||
Devices
|
||||
====================================================*/
|
||||
device: (function () {
|
||||
var ua = navigator.userAgent;
|
||||
var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
|
||||
var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
|
||||
var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
|
||||
var iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/);
|
||||
return {
|
||||
ios: ipad || iphone || ipod,
|
||||
android: android
|
||||
};
|
||||
})(),
|
||||
/*==================================================
|
||||
Feature Detection
|
||||
====================================================*/
|
||||
support: {
|
||||
touch : (window.Modernizr && Modernizr.touch === true) || (function () {
|
||||
return !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch);
|
||||
})(),
|
||||
|
||||
transforms3d : (window.Modernizr && Modernizr.csstransforms3d === true) || (function () {
|
||||
var div = document.createElement('div').style;
|
||||
return ('webkitPerspective' in div || 'MozPerspective' in div || 'OPerspective' in div || 'MsPerspective' in div || 'perspective' in div);
|
||||
})(),
|
||||
|
||||
flexbox: (function () {
|
||||
var div = document.createElement('div').style;
|
||||
var styles = ('alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient').split(' ');
|
||||
for (var i = 0; i < styles.length; i++) {
|
||||
if (styles[i] in div) return true;
|
||||
}
|
||||
})(),
|
||||
|
||||
observer: (function () {
|
||||
return ('MutationObserver' in window || 'WebkitMutationObserver' in window);
|
||||
})()
|
||||
},
|
||||
/*==================================================
|
||||
Plugins
|
||||
====================================================*/
|
||||
plugins: {}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue