diff options
author | prashantsinalkar | 2019-08-27 12:29:12 +0530 |
---|---|---|
committer | prashantsinalkar | 2019-08-27 12:29:12 +0530 |
commit | b9c709823e26f5b20d3732e1788b871cdd961a03 (patch) | |
tree | a9089f56541854b48ddbda733832a153c6d53927 /static/website/bootstrap-css/bower_components/bootstrap/js/transition.js | |
parent | 50e8fc0832d81d124abd7606b15502545bf84b23 (diff) | |
download | SciPy2019-b9c709823e26f5b20d3732e1788b871cdd961a03.tar.gz SciPy2019-b9c709823e26f5b20d3732e1788b871cdd961a03.tar.bz2 SciPy2019-b9c709823e26f5b20d3732e1788b871cdd961a03.zip |
added intial code for project
Diffstat (limited to 'static/website/bootstrap-css/bower_components/bootstrap/js/transition.js')
-rw-r--r-- | static/website/bootstrap-css/bower_components/bootstrap/js/transition.js | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/static/website/bootstrap-css/bower_components/bootstrap/js/transition.js b/static/website/bootstrap-css/bower_components/bootstrap/js/transition.js new file mode 100644 index 0000000..cd89fc4 --- /dev/null +++ b/static/website/bootstrap-css/bower_components/bootstrap/js/transition.js @@ -0,0 +1,59 @@ +/* ======================================================================== + * Bootstrap: transition.js v3.3.5 + * http://getbootstrap.com/javascript/#transitions + * ======================================================================== + * Copyright 2011-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ + + ++function ($) { + 'use strict'; + + // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) + // ============================================================ + + function transitionEnd() { + var el = document.createElement('bootstrap') + + var transEndEventNames = { + WebkitTransition : 'webkitTransitionEnd', + MozTransition : 'transitionend', + OTransition : 'oTransitionEnd otransitionend', + transition : 'transitionend' + } + + for (var name in transEndEventNames) { + if (el.style[name] !== undefined) { + return { end: transEndEventNames[name] } + } + } + + return false // explicit for ie8 ( ._.) + } + + // http://blog.alexmaccaw.com/css-transitions + $.fn.emulateTransitionEnd = function (duration) { + var called = false + var $el = this + $(this).one('bsTransitionEnd', function () { called = true }) + var callback = function () { if (!called) $($el).trigger($.support.transition.end) } + setTimeout(callback, duration) + return this + } + + $(function () { + $.support.transition = transitionEnd() + + if (!$.support.transition) return + + $.event.special.bsTransitionEnd = { + bindType: $.support.transition.end, + delegateType: $.support.transition.end, + handle: function (e) { + if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) + } + } + }) + +}(jQuery); |