vendor: 21,331 bytes, lines 1-692
1/******************************************** 2 - THEMEPUNCH TOOLS Ver. 1.0 - 3 Last Update of Tools 28.03.2013 4*********************************************/ 5 6/*! 7 * jQuery Transit - CSS3 transitions and transformations 8 * Copyright(c) 2011 Rico Sta. Cruz <[email protected]> 9 * MIT Licensed. 10 * 11 * http://ricostacruz.com/jquery.transit 12 * http://github.com/rstacruz/jquery.transit 13 */ 14 15/*! 16jQuery WaitForImages 17 18Copyright (c) 2012 Alex Dickson 19 20Permission is hereby granted, free of charge, to any person 21obtaining a copy of this software and associated documentation 22files (the "Software"), to deal in the Software without 23restriction, including without limitation the rights to use, 24copy, modify, merge, publish, distribute, sublicense, and/or sell 25copies of the Software, and to permit persons to whom the 26Software is furnished to do so, subject to the following 27conditions: 28 29The above copyright notice and this permission notice shall be 30included in all copies or substantial portions of the Software. 31 32THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 33EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 34OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 35NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 36HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 37WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 38FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 39OTHER DEALINGS IN THE SOFTWARE. 40 41 42https://github.com/alexanderdickson/waitForImages 43 44 45 */ 46 47// WAIT FOR IMAGES 48/* 49 * waitForImages 1.4 50 * ----------------- 51 * Provides a callback when all images have loaded in your given selector. 52 * http://www.alexanderdickson.com/ 53 * 54 * 55 * Copyright (c) 2011 Alex Dickson 56 * Licensed under the MIT licenses. 57 * See website for more info. 58 * 59 */ 60 61// EASINGS 62 63/*! 64 * jQuery Transit - CSS3 transitions and transformations 65 * (c) 2011-2012 Rico Sta. Cruz <[email protected]> 66 * MIT Licensed. 67 * 68 * http://ricostacruz.com/jquery.transit 69 * http://github.com/rstacruz/jquery.transit 70 */ 71(function(jQuery) { 72 jQuery.transit = { 73 version: "0.9.9", 74 75 // Map of jQuery.css() keys to values for 'transitionProperty'. 76 // See https://developer.mozilla.org/en/CSS/CSS_transitions#Properties_that_can_be_animated 77 propertyMap: { 78 marginLeft : 'margin', 79 marginRight : 'margin', 80 marginBottom : 'margin', 81 marginTop : 'margin', 82 paddingLeft : 'padding', 83 paddingRight : 'padding', 84 paddingBottom : 'padding', 85 paddingTop : 'padding' 86 }, 87 88 // Will simply transition "instantly" if false 89 enabled: true, 90 91 // Set this to false if you don't want to use the transition end property. 92 useTransitionEnd: false 93 }; 94 95 var div = document.createElement('div'); 96 var support = {}; 97 98 // Helper function to get the proper vendor property name. 99 // (`transition` => `WebkitTransition`) 100 function getVendorPropertyName(prop) { 101 // Handle unprefixed versions (FF16+, for example) 102 if (prop in div.style) return prop; 103 104 var prefixes = ['Moz', 'Webkit', 'O', 'ms']; 105 var prop_ = prop.charAt(0).toUpperCase() + prop.substr(1); 106 107 if (prop in div.style) { return prop; } 108 109 for (var i=0; i<prefixes.length; ++i) { 110 var vendorProp = prefixes[i] + prop_; 111 if (vendorProp in div.style) { return vendorProp; } 112 } 113 } 114 115 // Helper function to check if transform3D is supported. 116 // Should return true for Webkits and Firefox 10+. 117 function checkTransform3dSupport() { 118 div.style[support.transform] = ''; 119 div.style[support.transform] = 'rotateY(90deg)'; 120 return div.style[support.transform] !== ''; 121 } 122 123 var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; 124 125 // Check for the browser's transitions support. 126 support.transition = getVendorPropertyName('transition'); 127 support.transitionDelay = getVendorPropertyName('transitionDelay'); 128 support.transform = getVendorPropertyName('transform'); 129 support.transformOrigin = getVendorPropertyName('transformOrigin'); 130 support.transform3d = checkTransform3dSupport(); 131 132 var eventNames = { 133 'transition': 'transitionEnd', 134 'MozTransition': 'transitionend', 135 'OTransition': 'oTransitionEnd', 136 'WebkitTransition': 'webkitTransitionEnd', 137 'msTransition': 'MSTransitionEnd' 138 }; 139 140 // Detect the 'transitionend' event needed. 141 var transitionEnd = support.transitionEnd = eventNames[support.transition] || null; 142 143 // Populate jQuery's `jQuery.support` with the vendor prefixes we know. 144 // As per [jQuery's cssHooks documentation](http://api.jquery.com/jQuery.cssHooks/), 145 // we set jQuery.support.transition to a string of the actual property name used. 146 for (var key in support) { 147 if (support.hasOwnProperty(key) && typeof jQuery.support[key] === 'undefined') { 148 jQuery.support[key] = support[key]; 149 } 150 } 151 152 // Avoid memory leak in IE. 153 div = null; 154 155 // ## jQuery.cssEase 156 // List of easing aliases that you can use with `jQuery.fn.transition`. 157 jQuery.cssEase = { 158 '_default': 'ease', 159 'in': 'ease-in', 160 'out': 'ease-out', 161 'in-out': 'ease-in-out', 162 'snap': 'cubic-bezier(0,1,.5,1)', 163 // Penner equations 164 'easeInCubic': 'cubic-bezier(.55, .055, .675, .19)', 165 'easeOutCubic': 'cubic-bezier(.215,.61,.355,1)', 166 'easeInOutCubic': 'cubic-bezier(.645,.045,.355,1)', 167 'easeInCirc': 'cubic-bezier(.6,.04,.98,.335)', 168 'easeOutCirc': 'cubic-bezier(.075,.82,.165,1)', 169 'easeInOutCirc': 'cubic-bezier(.785,.135,.15,.86)', 170 'easeInExpo': 'cubic-bezier(.95,.05,.795,.035)', 171 'easeOutExpo': 'cubic-bezier(.19,1,.22,1)', 172 'easeInOutExpo': 'cubic-bezier(1,0,0,1)', 173 'easeInQuad': 'cubic-bezier(.55,.085,.68,.53)', 174 'easeOutQuad': 'cubic-bezier(.25,.46,.45,.94)', 175 'easeInOutQuad': 'cubic-bezier(.455,.03,.515,.955)', 176 'easeInQuart': 'cubic-bezier(.895,.03,.685,.22)', 177 'easeOutQuart': 'cubic-bezier(.165,.84,.44,1)', 178 'easeInOutQuart': 'cubic-bezier(.77,0,.175,1)', 179 'easeInQuint': 'cubic-bezier(.755,.05,.855,.06)', 180 'easeOutQuint': 'cubic-bezier(.23,1,.32,1)', 181 'easeInOutQuint': 'cubic-bezier(.86,0,.07,1)', 182 'easeInSine': 'cubic-bezier(.47,0,.745,.715)', 183 'easeOutSine': 'cubic-bezier(.39,.575,.565,1)', 184 'easeInOutSine': 'cubic-bezier(.445,.05,.55,.95)', 185 'easeInBack': 'cubic-bezier(.6,-.28,.735,.045)', 186 'easeOutBack': 'cubic-bezier(.175, .885,.32,1.275)', 187 'easeInOutBack': 'cubic-bezier(.68,-.55,.265,1.55)' 188 }; 189 190 // ## 'transform' CSS hook 191 // Allows you to use the `transform` property in CSS. 192 // 193 // jQuery("#hello").css({ transform: "rotate(90deg)" }); 194 // 195 // jQuery("#hello").css('transform'); 196 // //=> { rotate: '90deg' } 197 // 198 jQuery.cssHooks['transit:transform'] = { 199 // The getter returns a `Transform` object. 200 get: function(elem) { 201 return jQuery(elem).data('transform') || new Transform(); 202 }, 203 204 // The setter accepts a `Transform` object or a string. 205 set: function(elem, v) { 206 var value = v; 207 208 if (!(value instanceof Transform)) { 209 value = new Transform(value); 210 } 211 212 // We've seen the 3D version of Scale() not work in Chrome when the 213 // element being scaled extends outside of the viewport. Thus, we're 214 // forcing Chrome to not use the 3d transforms as well. Not sure if 215 // translate is affectede, but not risking it. Detection code from 216 // http://davidwalsh.name/detecting-google-chrome-javascript 217 if (support.transform === 'WebkitTransform' && !isChrome) { 218 elem.style[support.transform] = value.toString(true); 219 } else { 220 elem.style[support.transform] = value.toString(); 221 } 222 223 jQuery(elem).data('transform', value); 224 } 225 }; 226 227 // Add a CSS hook for `.css({ transform: '...' })`. 228 // In jQuery 1.8+, this will intentionally override the default `transform` 229 // CSS hook so it'll play well with Transit. (see issue #62) 230 jQuery.cssHooks.transform = { 231 set: jQuery.cssHooks['transit:transform'].set 232 }; 233 234 // jQuery 1.8+ supports prefix-free transitions, so these polyfills will not 235 // be necessary. 236 if (jQuery.fn.jquery < "1.8") { 237 // ## 'transformOrigin' CSS hook 238 // Allows the use for `transformOrigin` to define where scaling and rotation 239 // is pivoted. 240 // 241 // jQuery("#hello").css({ transformOrigin: '0 0' }); 242 // 243 jQuery.cssHooks.transformOrigin = { 244 get: function(elem) { 245 return elem.style[support.transformOrigin]; 246 }, 247 set: function(elem, value) { 248 elem.style[support.transformOrigin] = value; 249 } 250 }; 251 252 // ## 'transition' CSS hook 253 // Allows you to use the `transition` property in CSS. 254 // 255 // jQuery("#hello").css({ transition: 'all 0 ease 0' }); 256 // 257 jQuery.cssHooks.transition = { 258 get: function(elem) { 259 return elem.style[support.transition]; 260 }, 261 set: function(elem, value) { 262 elem.style[support.transition] = value; 263 } 264 }; 265 } 266 267 // ## Other CSS hooks 268 // Allows you to rotate, scale and translate. 269 registerCssHook('scale'); 270 registerCssHook('translate'); 271 registerCssHook('rotate'); 272 registerCssHook('rotateX'); 273 registerCssHook('rotateY'); 274 registerCssHook('rotate3d'); 275 registerCssHook('perspective'); 276 registerCssHook('skewX'); 277 registerCssHook('skewY'); 278 registerCssHook('x', true); 279 registerCssHook('y', true); 280 281 // ## Transform class 282 // This is the main class of a transformation property that powers 283 // `jQuery.fn.css({ transform: '...' })`. 284 // 285 // This is, in essence, a dictionary object with key/values as `-transform` 286 // properties. 287 // 288 // var t = new Transform("rotate(90) scale(4)"); 289 // 290 // t.rotate //=> "90deg" 291 // t.scale //=> "4,4" 292 // 293 // Setters are accounted for. 294 // 295 // t.set('rotate', 4) 296 // t.rotate //=> "4deg" 297 // 298 // Convert it to a CSS string using the `toString()` and `toString(true)` (for WebKit) 299 // functions. 300 // 301 // t.toString() //=> "rotate(90deg) scale(4,4)" 302 // t.toString(true) //=> "rotate(90deg) scale3d(4,4,0)" (WebKit version) 303 // 304 function Transform(str) { 305 if (typeof str === 'string') { this.parse(str); } 306 return this; 307 } 308 309 Transform.prototype = { 310 // ### setFromString() 311 // Sets a property from a string. 312 // 313 // t.setFromString('scale', '2,4'); 314 // // Same as set('scale', '2', '4'); 315 // 316 setFromString: function(prop, val) { 317 var args = 318 (typeof val === 'string') ? val.split(',') : 319 (val.constructor === Array) ? val : 320 [ val ]; 321 322 args.unshift(prop); 323 324 Transform.prototype.set.apply(this, args); 325 }, 326 327 // ### set() 328 // Sets a property. 329 // 330 // t.set('scale', 2, 4); 331 // 332 set: function(prop) { 333 var args = Array.prototype.slice.apply(arguments, [1]); 334 if (this.setter[prop]) { 335 this.setter[prop].apply(this, args); 336 } else { 337 this[prop] = args.join(','); 338 } 339 }, 340 341 get: function(prop) { 342 if (this.getter[prop]) { 343 return this.getter[prop].apply(this); 344 } else { 345 return this[prop] || 0; 346 } 347 }, 348 349 setter: { 350 // ### rotate 351 // 352 // .css({ rotate: 30 }) 353 // .css({ rotate: "30" }) 354 // .css({ rotate: "30deg" }) 355 // .css({ rotate: "30deg" }) 356 // 357 rotate: function(theta) { 358 this.rotate = unit(theta, 'deg'); 359 }, 360 361 rotateX: function(theta) { 362 this.rotateX = unit(theta, 'deg'); 363 }, 364 365 rotateY: function(theta) { 366 this.rotateY = unit(theta, 'deg'); 367 }, 368 369 // ### scale 370 // 371 // .css({ scale: 9 }) //=> "scale(9,9)" 372 // .css({ scale: '3,2' }) //=> "scale(3,2)" 373 // 374 scale: function(x, y) { 375 if (y === undefined) { y = x; } 376 this.scale = x + "," + y; 377 }, 378 379 // ### skewX + skewY 380 skewX: function(x) { 381 this.skewX = unit(x, 'deg'); 382 }, 383 384 skewY: function(y) { 385 this.skewY = unit(y, 'deg'); 386 }, 387 388 // ### perspectvie 389 perspective: function(dist) { 390 this.perspective = unit(dist, 'px'); 391 }, 392 393 // ### x / y 394 // Translations. Notice how this keeps the other value. 395 // 396 // .css({ x: 4 }) //=> "translate(4px, 0)" 397 // .css({ y: 10 }) //=> "translate(4px, 10px)" 398 // 399 x: function(x) { 400 this.set('translate', x, null); 401 }, 402 403 y: function(y) { 404 this.set('translate', null, y); 405 }, 406 407 // ### translate 408 // Notice how this keeps the other value. 409 // 410 // .css({ translate: '2, 5' }) //=> "translate(2px, 5px)" 411 // 412 translate: function(x, y) { 413 if (this._translateX === undefined) { this._translateX = 0; } 414 if (this._translateY === undefined) { this._translateY = 0; } 415 416 if (x !== null && x !== undefined) { this._translateX = unit(x, 'px'); } 417 if (y !== null && y !== undefined) { this._translateY = unit(y, 'px'); } 418 419 this.translate = this._translateX + "," + this._translateY; 420 } 421 }, 422 423 getter: { 424 x: function() { 425 return this._translateX || 0; 426 }, 427 428 y: function() { 429 return this._translateY || 0; 430 }, 431 432 scale: function() { 433 var s = (this.scale || "1,1").split(','); 434 if (s[0]) { s[0] = parseFloat(s[0]); } 435 if (s[1]) { s[1] = parseFloat(s[1]); } 436 437 // "2.5,2.5" => 2.5 438 // "2.5,1" => [2.5,1] 439 return (s[0] === s[1]) ? s[0] : s; 440 }, 441 442 rotate3d: function() { 443 var s = (this.rotate3d || "0,0,0,0deg").split(','); 444 for (var i=0; i<=3; ++i) { 445 if (s[i]) { s[i] = parseFloat(s[i]); } 446 } 447 if (s[3]) { s[3] = unit(s[3], 'deg'); } 448 449 return s; 450 } 451 }, 452 453 // ### parse() 454 // Parses from a string. Called on constructor. 455 parse: function(str) { 456 var self = this; 457 str.replace(/([a-zA-Z0-9]+)\((.*?)\)/g, function(x, prop, val) { 458 self.setFromString(prop, val); 459 }); 460 }, 461 462 // ### toString() 463 // Converts to a `transition` CSS property string. If `use3d` is given, 464 // it converts to a `-webkit-transition` CSS property string instead. 465 toString: function(use3d) { 466 var re = []; 467 468 for (var i in this) { 469 if (this.hasOwnProperty(i)) { 470 // Don't use 3D transformations if the browser can't support it. 471 if ((!support.transform3d) && ( 472 (i === 'rotateX') || 473 (i === 'rotateY') || 474 (i === 'perspective') || 475 (i === 'transformOrigin'))) { continue; } 476 477 if (i[0] !== '_') { 478 if (use3d && (i === 'scale')) { 479 re.push(i + "3d(" + this[i] + ",1)"); 480 } else if (use3d && (i === 'translate')) { 481 re.push(i + "3d(" + this[i] + ",0)"); 482 } else { 483 re.push(i + "(" + this[i] + ")"); 484 } 485 } 486 } 487 } 488 489 return re.join(" "); 490 } 491 }; 492 493 function callOrQueue(self, queue, fn) { 494 if (queue === true) { 495 self.queue(fn); 496 } else if (queue) { 497 self.queue(queue, fn); 498 } else { 499 fn(); 500 } 501 } 502 503 // ### getProperties(dict) 504 // Returns properties (for `transition-property`) for dictionary `props`. The 505 // value of `props` is what you would expect in `jQuery.css(...)`. 506 function getProperties(props) { 507 var re = []; 508 509 jQuery.each(props, function(key) { 510 key = jQuery.camelCase(key); // Convert "text-align" => "textAlign" 511 key = jQuery.transit.propertyMap[key] || jQuery.cssProps[key] || key; 512 key = uncamel(key); // Convert back to dasherized 513 514 if (jQuery.inArray(key, re) === -1) { re.push(key); } 515 }); 516 517 return re; 518 } 519 520 // ### getTransition() 521 // Returns the transition string to be used for the `transition` CSS property. 522 // 523 // Example: 524 // 525 // getTransition({ opacity: 1, rotate: 30 }, 500, 'ease'); 526 // //=> 'opacity 500ms ease, -webkit-transform 500ms ease' 527 // 528 function getTransition(properties, duration, easing, delay) { 529 // Get the CSS properties needed. 530 var props = getProperties(properties); 531 532 // Account for aliases (`in` => `ease-in`). 533 if (jQuery.cssEase[easing]) { easing = jQuery.cssEase[easing]; } 534 535 // Build the duration/easing/delay attributes for it. 536 var attribs = '' + toMS(duration) + ' ' + easing; 537 if (parseInt(delay, 10) > 0) { attribs += ' ' + toMS(delay); } 538 539 // For more properties, add them this way: 540 // "margin 200ms ease, padding 200ms ease, ..." 541 var transitions = []; 542 jQuery.each(props, function(i, name) { 543 transitions.push(name + ' ' + attribs); 544 }); 545 546 return transitions.join(', '); 547 } 548 549 // ## jQuery.fn.transition 550 // Works like jQuery.fn.animate(), but uses CSS transitions. 551 // 552 // jQuery("...").transition({ opacity: 0.1, scale: 0.3 }); 553 // 554 // // Specific duration 555 // jQuery("...").transition({ opacity: 0.1, scale: 0.3 }, 500); 556 // 557 // // With duration and easing 558 // jQuery("...").transition({ opacity: 0.1, scale: 0.3 }, 500, 'in'); 559 // 560 // // With callback 561 // jQuery("...").transition({ opacity: 0.1, scale: 0.3 }, function() { ... }); 562 // 563 // // With everything 564 // jQuery("...").transition({ opacity: 0.1, scale: 0.3 }, 500, 'in', function() { ... }); 565 // 566 // // Alternate syntax 567 // jQuery("...").transition({ 568 // opacity: 0.1, 569 // duration: 200, 570 // delay: 40, 571 // easing: 'in', 572 // complete: function() { /* ... */ } 573 // }); 574 // 575 jQuery.fn.transition = jQuery.fn.transit = function(properties, duration, easing, callback) { 576 var self = this; 577 var delay = 0; 578 var queue = true; 579 580 var theseProperties = jQuery.extend(true, {}, properties); 581 582 // Account for `.transition(properties, callback)`. 583 if (typeof duration === 'function') { 584 callback = duration; 585 duration = undefined; 586 } 587 588 // Account for `.transition(properties, options)`. 589 if (typeof duration === 'object') { 590 easing = duration.easing; 591 delay = duration.delay || 0; 592 queue = duration.queue || true; 593 callback = duration.complete; 594 duration = duration.duration; 595 } 596 597 // Account for `.transition(properties, duration, callback)`. 598 if (typeof easing === 'function') { 599 callback = easing; 600 easing = undefined; 601 } 602 603 // Alternate syntax. 604 if (typeof theseProperties.easing !== 'undefined') { 605 easing = theseProperties.easing; 606 delete theseProperties.easing; 607 } 608 609 if (typeof theseProperties.duration !== 'undefined') { 610 duration = theseProperties.duration; 611 delete theseProperties.duration; 612 } 613 614 if (typeof theseProperties.complete !== 'undefined') { 615 callback = theseProperties.complete; 616 delete theseProperties.complete; 617 } 618 619 if (typeof theseProperties.queue !== 'undefined') { 620 queue = theseProperties.queue; 621 delete theseProperties.queue; 622 } 623 624 if (typeof theseProperties.delay !== 'undefined') { 625 delay = theseProperties.delay; 626 delete theseProperties.delay; 627 } 628 629 // Set defaults. (`400` duration, `ease` easing) 630 if (typeof duration === 'undefined') { duration = jQuery.fx.speeds._default; } 631 if (typeof easing === 'undefined') { easing = jQuery.cssEase._default; } 632 633 duration = toMS(duration); 634 635 // Build the `transition` property. 636 var transitionValue = getTransition(theseProperties, duration, easing, delay); 637 638 // Compute delay until callback. 639 // If this becomes 0, don't bother setting the transition property. 640 var work = jQuery.transit.enabled && support.transition; 641 var i = work ? (parseInt(duration, 10) + parseInt(delay, 10)) : 0; 642 643 // If there's nothing to do... 644 if (i === 0) { 645 var fn = function(next) { 646 self.css(theseProperties); 647 if (callback) { callback.apply(self); } 648 if (next) { next(); } 649 }; 650 651 callOrQueue(self, queue, fn); 652 return self; 653 } 654 655 // Save the old transitions of each element so we can restore it later. 656 var oldTransitions = {}; 657 658 var run = function(nextCall) { 659 var bound = false; 660 661 // Prepare the callback. 662 var cb = function() { 663 if (bound) { self.unbind(transitionEnd, cb); } 664 665 if (i > 0) { 666 self.each(function() { 667 this.style[support.transition] = (oldTransitions[this] || null); 668 }); 669 } 670 671 if (typeof callback === 'function') { callback.apply(self); } 672 if (typeof nextCall === 'function') { nextCall(); } 673 }; 674 675 if ((i > 0) && (transitionEnd) && (jQuery.transit.useTransitionEnd)) { 676 // Use the 'transitionend' event if it's available. 677 bound = true; 678 self.bind(transitionEnd, cb); 679 } else { 680 // Fallback to timers if the 'transitionend' event isn't supported. 681 window.setTimeout(cb, i); 682 } 683 684 // Apply transitions. 685 self.each(function() { 686 if (i > 0) { 687 this.style[support.transition] = transitionValue; 688 } 689 jQuery(this).css(properties); 690 }); 691 }; 692
vendor: 4,925 bytes, lines 693-774
693 // Defer running. This allows the browser to paint any pending CSS it hasn't 694 // painted yet before doing the transitions. 695 var deferredRun = function(next) { 696 this.offsetWidth; // force a repaint 697 run(next); 698 }; 699 700 // Use jQuery's fx queue. 701 callOrQueue(self, queue, deferredRun); 702 703 // Chainability. 704 return this; 705 }; 706 707 function registerCssHook(prop, isPixels) { 708 // For certain properties, the 'px' should not be implied. 709 if (!isPixels) { jQuery.cssNumber[prop] = true; } 710 711 jQuery.transit.propertyMap[prop] = support.transform; 712 713 jQuery.cssHooks[prop] = { 714 get: function(elem) { 715 var t = jQuery(elem).css('transit:transform'); 716 return t.get(prop); 717 }, 718 719 set: function(elem, value) { 720 var t = jQuery(elem).css('transit:transform'); 721 t.setFromString(prop, value); 722 723 jQuery(elem).css({ 'transit:transform': t }); 724 } 725 }; 726 727 } 728 729 // ### uncamel(str) 730 // Converts a camelcase string to a dasherized string. 731 // (`marginLeft` => `margin-left`) 732 function uncamel(str) { 733 return str.replace(/([A-Z])/g, function(letter) { return '-' + letter.toLowerCase(); }); 734 } 735 736 // ### unit(number, unit) 737 // Ensures that number `number` has a unit. If no unit is found, assume the 738 // default is `unit`. 739 // 740 // unit(2, 'px') //=> "2px" 741 // unit("30deg", 'rad') //=> "30deg" 742 // 743 function unit(i, units) { 744 if ((typeof i === "string") && (!i.match(/^[\-0-9\.]+$/))) { 745 return i; 746 } else { 747 return "" + i + units; 748 } 749 } 750 751 // ### toMS(duration) 752 // Converts given `duration` to a millisecond string. 753 // 754 // toMS('fast') => jQuery.fx.speeds[i] => "200ms" 755 // toMS('normal') //=> jQuery.fx.speeds._default => "400ms" 756 // toMS(10) //=> '10ms' 757 // toMS('100ms') //=> '100ms' 758 // 759 function toMS(duration) { 760 var i = duration; 761 762 // Allow string durations like 'fast' and 'slow', without overriding numeric values. 763 if (typeof i === 'string' && (!i.match(/^[\-0-9\.]+/))) { i = jQuery.fx.speeds[i] || jQuery.fx.speeds._default; } 764 765 return unit(i, 'ms'); 766 } 767 768 // Export some functions for testable-ness. 769 jQuery.transit.getTransitionValue = getTransition; 770})(jQuery); 771 772(function(e,t){ 773 jQuery.easing["jswing"]=jQuery.easing["swing"]; 774 jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,n,r,i){return jQuery.easing[jQuery.easing.def](e,t,n,r,i)},easeInQuad:function(e,t,n,r,i){return r*(t/=i)*t+n},easeOutQuad:function(e,t,n,r,i){return-r*(t/=i)*(t-2)+n},easeInOutQuad:function(e,t,n,r,i){if((t/=i/2)<1)return r/2*t*t+n;return-r/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,r,i){return r*(t/=i)*t*t+n},easeOutCubic:function(e,t,n,r,i){return r*((t=t/i-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,r,i){if((t/=i/2)<1)return r/2*t*t*t+n;return r/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,r,i){return r*(t/=i)*t*t*t+n},easeOutQuart:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,r,i){if((t/=i/2)<1)return r/2*t*t*t*t+n;return-r/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,r,i){return r*(t/=i)*t*t*t*t+n},easeOutQuint:function(e,t,n,r,i){return r*((t=t/i-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,r,i){if((t/=i/2)<1)return r/2*t*t*t*t*t+n;return r/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,r,i){return-r*Math.cos(t/i*(Math.PI/2))+r+n},easeOutSine:function(e,t,n,r,i){return r*Math.sin(t/i*(Math.PI/2))+n},easeInOutSine:function(e,t,n,r,i){return-r/2*(Math.cos(Math.PI*t/i)-1)+n},easeInExpo:function(e,t,n,r,i){return t==0?n:r*Math.pow(2,10*(t/i-1))+n},easeOutExpo:function(e,t,n,r,i){return t==i?n+r:r*(-Math.pow(2,-10*t/i)+1)+n},easeInOutExpo:function(e,t,n,r,i){if(t==0)return n;if(t==i)return n+r;if((t/=i/2)<1)return r/2*Math.pow(2,10*(t-1))+n;return r/2*(-Math.pow(2,-10*--t)+2)+n},easeInCirc:function(e,t,n,r,i){return-r*(Math.sqrt(1-(t/=i)*t)-1)+n},easeOutCirc:function(e,t,n,r,i){return r*Math.sqrt(1-(t=t/i-1)*t)+n},easeInOutCirc:function(e,t,n,r,i){if((t/=i/2)<1)return-r/2*(Math.sqrt(1-t*t)-1)+n;return r/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,r,i){var s=1.70158;var o=0;var u=r;if(t==0)return n;if((t/=i)==1)return n+r;if(!o)o=i*.3;if(u<Math.abs(r)){u=r;var s=o/4}else var s=o/(2*Math.PI)*Math.asin(r/u);return-(u*Math.pow(2,10*(t-=1))*Math.sin((t*i-s)*2*Math.PI/o))+n},easeOutElastic:function(e,t,n,r,i){var s=1.70158;var o=0;var u=r;if(t==0)return n;if((t/=i)==1)return n+r;if(!o)o=i*.3;if(u<Math.abs(r)){u=r;var s=o/4}else var s=o/(2*Math.PI)*Math.asin(r/u);return u*Math.pow(2,-10*t)*Math.sin((t*i-s)*2*Math.PI/o)+r+n},easeInOutElastic:function(e,t,n,r,i){var s=1.70158;var o=0;var u=r;if(t==0)return n;if((t/=i/2)==2)return n+r;if(!o)o=i*.3*1.5;if(u<Math.abs(r)){u=r;var s=o/4}else var s=o/(2*Math.PI)*Math.asin(r/u);if(t<1)return-.5*u*Math.pow(2,10*(t-=1))*Math.sin((t*i-s)*2*Math.PI/o)+n;return u*Math.pow(2,-10*(t-=1))*Math.sin((t*i-s)*2*Math.PI/o)*.5+r+n}
774,easeInBack:function(e,t,n,r,i,s){if(s==undefined)s=1.70158;return r*(t/=i)*t*((s+1)*t-s)+n},easeOutBack:function(e,t,n,r,i,s){if(s==undefined)s=1.70158;return r*((t=t/i-1)*t*((s+1)*t+s)+1)+n},easeInOutBack:function(e,t,n,r,i,s){if(s==undefined)s=1.70158;if((t/=i/2)<1)return r/2*t*t*(((s*=1.525)+1)*t-s)+n;return r/2*((t-=2)*t*(((s*=1.525)+1)*t+s)+2)+n},easeInBounce:function(e,t,n,r,i){return r-jQuery.easing.easeOutBounce(e,i-t,0,r,i)+n},easeOutBounce:function(e,t,n,r,i){if((t/=i)<1/2.75){return r*7.5625*t*t+n}else if(t<2/2.75){return r*(7.5625*(t-=1.5/2.75)*t+.75)+n}else if(t<2.5/2.75){return r*(7.5625*(t-=2.25/2.75)*t+.9375)+n}else{return r*(7.5625*(t-=2.625/2.75)*t+.984375)+n}},easeInOutBounce:function(e,t,n,r,i){if(t<i/2)return jQuery.easing.easeInBounce(e,t*2,0,r,i)*.5+n;return jQuery.easing.easeOutBounce(e,t*2-i,0,r,i)*.5+r*.5+n}}); 775 e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};e.expr[":"].uncached=function(t){var n=document.createElement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitForImages=function(t,n,r){if(e.isPlainObject(arguments[0])){n=t.each;r=t.waitForAll;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isFunction(t)||!e.isFunction(n)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitForImages.hasImageProperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return true}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new Image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return false}});o.src=s.src})})}; 776 e.fn.swipe=function(t){if(!this)return false;var n={fingers:1,threshold:75,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,click:null,triggerOnTouchEnd:true,allowPageScroll:"auto"};var r="left";var i="right";var s="up";var o="down";var u="none";var f="horizontal";var l="vertical";var c="auto";var h="start";var p="move";var d="end";var v="cancel";var m="ontouchstart"in window,g=m?"touchstart":"mousedown",y=m?"touchmove":"mousemove",b=m?"touchend":"mouseup",w="touchcancel";var E="start";if(t.allowPageScroll==undefined&&(t.swipe!=undefined||t.swipeStatus!=undefined))t.allowPageScroll=u;if(t)e.extend(n,t);return this.each(function(){function t(){var e=S();if(e<=45&&e>=0)return r;else if(e<=360&&e>=315)return r;else if(e>=135&&e<=225)return i;else if(e>45&&e<135)return o;else return s}function S(){var e=H.x-B.x;var t=B.y-H.y;var n=Math.atan2(t,e);var r=Math.round(n*180/Math.PI);if(r<0)r=360-Math.abs(r);return r}function x(){return Math.round(Math.sqrt(Math.pow(B.x-H.x,2)+Math.pow(B.y-H.y,2)))}function T(e,t){if(n.allowPageScroll==u){e.preventDefault()}else{var a=n.allowPageScroll==c;switch(t){case r:if(n.swipeLeft&&a||!a&&n.allowPageScroll!=f)e.preventDefault();break;case i:if(n.swipeRight&&a||!a&&n.allowPageScroll!=f)e.preventDefault();break;case s:if(n.swipeUp&&a||!a&&n.allowPageScroll!=l)e.preventDefault();break;case o:if(n.swipeDown&&a||!a&&n.allowPageScroll!=l)e.preventDefault();break}}}function N(e,t){if(n.swipeStatus)n.swipeStatus.call(_,e,t,direction||null,distance||0);if(t==v){if(n.click&&(P==1||!m)&&(isNaN(distance)||distance==0))n.click.call(_,e,e.target)}if(t==d){if(n.swipe){n.swipe.call(_,e,direction,distance)}switch(direction){case r:if(n.swipeLeft)n.swipeLeft.call(_,e,direction,distance);break;case i:if(n.swipeRight)n.swipeRight.call(_,e,direction,distance);break;case s:if(n.swipeUp)n.swipeUp.call(_,e,direction,distance);break;case o:if(n.swipeDown)n.swipeDown.call(_,e,direction,distance);break}}}function C(e){P=0;H.x=0;H.y=0;B.x=0;B.y=0;F.x=0;F.y=0}function L(e){e.preventDefault();distance=x();direction=t();if(n.triggerOnTouchEnd){E=d;if((P==n.fingers||!m)&&B.x!=0){if(distance>=n.threshold){N(e,E);C(e)}else{E=v;N(e,E);C(e)}}else{E=v;N(e,E);C(e)}}else if(E==p){E=v;N(e,E);C(e)}M.removeEventListener(y,A,false);M.removeEventListener(b,L,false)}function A(e){if(E==d||E==v)return;var r=m?e.touches[0]:e;B.x=r.pageX;B.y=r.pageY;direction=t();if(m){P=e.touches.length}E=p;T(e,direction);if(P==n.fingers||!m){distance=x();if(n.swipeStatus)N(e,E,direction,distance);if(!n.triggerOnTouchEnd){if(distance>=n.threshold){E=d;N(e,E);C(e)}}}else{E=v;N(e,E);C(e)}}function O(e){var t=m?e.touches[0]:e;E=h;if(m){P=e.touches.length}distance=0;direction=null;if(P==n.fingers||!m){H.x=B.x=t.pageX;H.y=B.y=t.pageY;if(n.swipeStatus)N(e,E)}else{C(e)}M.addEventListener(y,A,false);M.addEventListener(b,L,false)}var M=this;var _=e(this);var D=null;var P=0;var H={x:0,y:0};var B={x:0,y:0};var F={x:0,y:0};try{this.addEventListener(g,O,false);this.addEventListener(w,C)}catch(I){}})} 777 })(jQuery) 778 779// SOME ERROR MESSAGES IN CASE THE PLUGIN CAN NOT BE LOADED 780function revslider_showDoubleJqueryError(sliderID) { 781 var errorMessage = "Revolution Slider Error: You have some jquery.js library include that c
781omes after the revolution files js include."; 782 errorMessage += "<br> This includes make eliminates the revolution slider libraries, and make it not work."; 783 errorMessage += "<br><br> To fix it you can:<br> 1. In the Slider Settings -> Troubleshooting set option: <strong><b>Put JS Includes To Body</b></strong> option to true."; 784 errorMessage += "<br> 2. Find the double jquery.js include and remove it."; 785 errorMessage = "<span style='font-size:16px;color:#BC0C06;'>" + errorMessage + "</span>" 786 jQuery(sliderID).show().html(errorMessage); 787}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.