fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* modernizr v3.6.0
|
||||
* Build https://modernizr.com/download?-cssanimations-touchevents-setclasses-dontmin
|
||||
* Build https://modernizr.com/download?-csstransitions-touchevents-setclasses-dontmin
|
||||
*
|
||||
* Copyright (c)
|
||||
* Faruk Ates
|
||||
@@ -572,6 +572,23 @@ This test will also return `true` for Firefox 4 Multitouch support.
|
||||
|
||||
;
|
||||
|
||||
/**
|
||||
* cssToDOM takes a kebab-case string and converts it to camelCase
|
||||
* e.g. box-sizing -> boxSizing
|
||||
*
|
||||
* @access private
|
||||
* @function cssToDOM
|
||||
* @param {string} name - String name of kebab-case prop we want to convert
|
||||
* @returns {string} The camelCase version of the supplied name
|
||||
*/
|
||||
|
||||
function cssToDOM(name) {
|
||||
return name.replace(/([a-z])-([a-z])/g, function(str, m1, m2) {
|
||||
return m1 + m2.toUpperCase();
|
||||
}).replace(/^-/, '');
|
||||
}
|
||||
;
|
||||
|
||||
/**
|
||||
* fnBind is a super small [bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) polyfill.
|
||||
*
|
||||
@@ -629,23 +646,6 @@ This test will also return `true` for Firefox 4 Multitouch support.
|
||||
|
||||
;
|
||||
|
||||
/**
|
||||
* cssToDOM takes a kebab-case string and converts it to camelCase
|
||||
* e.g. box-sizing -> boxSizing
|
||||
*
|
||||
* @access private
|
||||
* @function cssToDOM
|
||||
* @param {string} name - String name of kebab-case prop we want to convert
|
||||
* @returns {string} The camelCase version of the supplied name
|
||||
*/
|
||||
|
||||
function cssToDOM(name) {
|
||||
return name.replace(/([a-z])-([a-z])/g, function(str, m1, m2) {
|
||||
return m1 + m2.toUpperCase();
|
||||
}).replace(/^-/, '');
|
||||
}
|
||||
;
|
||||
|
||||
/**
|
||||
* Create our "modernizr" element that we do most feature tests on.
|
||||
*
|
||||
@@ -949,23 +949,14 @@ This test will also return `true` for Firefox 4 Multitouch support.
|
||||
|
||||
/*!
|
||||
{
|
||||
"name": "CSS Animations",
|
||||
"property": "cssanimations",
|
||||
"caniuse": "css-animation",
|
||||
"polyfills": ["transformie", "csssandpaper"],
|
||||
"tags": ["css"],
|
||||
"warnings": ["Android < 4 will pass this test, but can only animate a single property at a time"],
|
||||
"notes": [{
|
||||
"name" : "Article: 'Dispelling the Android CSS animation myths'",
|
||||
"href": "https://goo.gl/OGw5Gm"
|
||||
}]
|
||||
"name": "CSS Transitions",
|
||||
"property": "csstransitions",
|
||||
"caniuse": "css-transitions",
|
||||
"tags": ["css"]
|
||||
}
|
||||
!*/
|
||||
/* DOC
|
||||
Detects whether or not elements can be animated using CSS
|
||||
*/
|
||||
|
||||
Modernizr.addTest('cssanimations', testAllProps('animationName', 'a', true));
|
||||
Modernizr.addTest('csstransitions', testAllProps('transition', 'all', true));
|
||||
|
||||
|
||||
// Run each test
|
||||
|
||||
@@ -21,7 +21,7 @@ $(function() {
|
||||
$control_item.addClass('active');
|
||||
|
||||
window.on_transitionend($control_item_content, function(event) {
|
||||
if (!event || event.target === $control_item_content[0]) {
|
||||
if (!event || event.target === this) {
|
||||
$control_item_content.off(window.transitionend);
|
||||
$control_item_content.removeAttr('style');
|
||||
$control_item.removeClass('loading');
|
||||
@@ -40,7 +40,7 @@ $(function() {
|
||||
$control_item_content.height($control_item_content_main.outerHeight(true));
|
||||
|
||||
window.on_transitionend($control_item_content, function(event) {
|
||||
if (!event || event.target === $control_item_content[0]) {
|
||||
if (!event || event.target === this) {
|
||||
$control_item_content.off(window.transitionend);
|
||||
$control_item_content_main.html('');
|
||||
}
|
||||
|
||||
@@ -35,6 +35,13 @@ $(function() {
|
||||
}
|
||||
});
|
||||
|
||||
$body.on('click', '.slider__next', function(event) {
|
||||
event.preventDefault();
|
||||
var $this = $(this);
|
||||
var $slider = $this.parents('.slider');
|
||||
slider_next_item($slider);
|
||||
});
|
||||
|
||||
window.enable_touch_swipe('.slider', slider_prev_item, slider_next_item);
|
||||
window.enable_touch_swipe('.text_slider', slider_prev_item, slider_next_item);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user