diff options
author | mahesh | 2016-04-01 02:07:50 +0530 |
---|---|---|
committer | mahesh | 2016-04-01 02:07:50 +0530 |
commit | 6121eb13b8f1167eca44db61951354237ed41f8d (patch) | |
tree | 90df4bdbcff3785fd57c051b400bf0f0adbdd6af /tbc/static/js/bootstrap-transition.js | |
parent | 33ed7c1e2d874fbbe4131a17cc65da00a4007f0a (diff) | |
parent | 8876df52d088a1de0ea769a46b82ad6fb0682a80 (diff) | |
download | Python-TBC-Interface-6121eb13b8f1167eca44db61951354237ed41f8d.tar.gz Python-TBC-Interface-6121eb13b8f1167eca44db61951354237ed41f8d.tar.bz2 Python-TBC-Interface-6121eb13b8f1167eca44db61951354237ed41f8d.zip |
Merge https://github.com/maheshgudi/Python-TBC-Interface
Diffstat (limited to 'tbc/static/js/bootstrap-transition.js')
-rwxr-xr-x | tbc/static/js/bootstrap-transition.js | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tbc/static/js/bootstrap-transition.js b/tbc/static/js/bootstrap-transition.js new file mode 100755 index 0000000..c4fd401 --- /dev/null +++ b/tbc/static/js/bootstrap-transition.js @@ -0,0 +1,60 @@ +/* =================================================== + * bootstrap-transition.js v2.3.2 + * http://getbootstrap.com/2.3.2/javascript.html#transitions + * =================================================== + * Copyright 2013 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ========================================================== */ + + +!function ($) { + + "use strict"; // jshint ;_; + + + /* CSS TRANSITION SUPPORT (http://www.modernizr.com/) + * ======================================================= */ + + $(function () { + + $.support.transition = (function () { + + var transitionEnd = (function () { + + var el = document.createElement('bootstrap') + , transEndEventNames = { + 'WebkitTransition' : 'webkitTransitionEnd' + , 'MozTransition' : 'transitionend' + , 'OTransition' : 'oTransitionEnd otransitionend' + , 'transition' : 'transitionend' + } + , name + + for (name in transEndEventNames){ + if (el.style[name] !== undefined) { + return transEndEventNames[name] + } + } + + }()) + + return transitionEnd && { + end: transitionEnd + } + + })() + + }) + +}(window.jQuery);
\ No newline at end of file |