vendor: 5,204 bytes, lines 1-152
1/* 2 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 3 * 4 * Uses the built in easing capabilities added In jQuery 1.1 5 * to offer multiple easing options 6 * 7 * TERMS OF USE - jQuery Easing 8 * 9 * Open source under the BSD License. 10 * 11 * Copyright © 2008 George McGinley Smith 12 * All rights reserved. 13*/ 14 15// t: current time, b: begInnIng value, c: change In value, d: duration 16jQuery.easing['jswing'] = jQuery.easing['swing']; 17 18jQuery.extend( jQuery.easing, 19{ 20 def: 'easeOutQuad', 21 swing: function (x, t, b, c, d) { 22 //alert(jQuery.easing.default); 23 return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 24 }, 25 easeInQuad: function (x, t, b, c, d) { 26 return c*(t/=d)*t + b; 27 }, 28 easeOutQuad: function (x, t, b, c, d) { 29 return -c *(t/=d)*(t-2) + b; 30 }, 31 easeInOutQuad: function (x, t, b, c, d) { 32 if ((t/=d/2) < 1) return c/2*t*t + b; 33 return -c/2 * ((--t)*(t-2) - 1) + b; 34 }, 35 easeInCubic: function (x, t, b, c, d) { 36 return c*(t/=d)*t*t + b; 37 }, 38 easeOutCubic: function (x, t, b, c, d) { 39 return c*((t=t/d-1)*t*t + 1) + b; 40 }, 41 easeInOutCubic: function (x, t, b, c, d) { 42 if ((t/=d/2) < 1) return c/2*t*t*t + b; 43 return c/2*((t-=2)*t*t + 2) + b; 44 }, 45 easeInQuart: function (x, t, b, c, d) { 46 return c*(t/=d)*t*t*t + b; 47 }, 48 easeOutQuart: function (x, t, b, c, d) { 49 return -c * ((t=t/d-1)*t*t*t - 1) + b; 50 }, 51 easeInOutQuart: function (x, t, b, c, d) { 52 if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 53 return -c/2 * ((t-=2)*t*t*t - 2) + b; 54 }, 55 easeInQuint: function (x, t, b, c, d) { 56 return c*(t/=d)*t*t*t*t + b; 57 }, 58 easeOutQuint: function (x, t, b, c, d) { 59 return c*((t=t/d-1)*t*t*t*t + 1) + b; 60 }, 61 easeInOutQuint: function (x, t, b, c, d) { 62 if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 63 return c/2*((t-=2)*t*t*t*t + 2) + b; 64 }, 65 easeInSine: function (x, t, b, c, d) { 66 return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 67 }, 68 easeOutSine: function (x, t, b, c, d) { 69 return c * Math.sin(t/d * (Math.PI/2)) + b; 70 }, 71 easeInOutSine: function (x, t, b, c, d) { 72 return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 73 }, 74 easeInExpo: function (x, t, b, c, d) { 75 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 76 }, 77 easeOutExpo: function (x, t, b, c, d) { 78 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 79 }, 80 easeInOutExpo: function (x, t, b, c, d) { 81 if (t==0) return b; 82 if (t==d) return b+c; 83 if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 84 return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 85 }, 86 easeInCirc: function (x, t, b, c, d) { 87 return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 88 }, 89 easeOutCirc: function (x, t, b, c, d) { 90 return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 91 }, 92 easeInOutCirc: function (x, t, b, c, d) { 93 if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 94 return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 95 }, 96 easeInElastic: function (x, t, b, c, d) { 97 var s=1.70158;var p=0;var a=c; 98 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 99 if (a < Math.abs(c)) { a=c; var s=p/4; } 100 else var s = p/(2*Math.PI) * Math.asin (c/a); 101 return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 102 }, 103 easeOutElastic: function (x, t, b, c, d) { 104 var s=1.70158;var p=0;var a=c; 105 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 106 if (a < Math.abs(c)) { a=c; var s=p/4; } 107 else var s = p/(2*Math.PI) * Math.asin (c/a); 108 return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 109 }, 110 easeInOutElastic: function (x, t, b, c, d) { 111 var s=1.70158;var p=0;var a=c; 112 if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 113 if (a < Math.abs(c)) { a=c; var s=p/4; } 114 else var s = p/(2*Math.PI) * Math.asin (c/a); 115 if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 116 return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 117 }, 118 easeInBack: function (x, t, b, c, d, s) { 119 if (s == undefined) s = 1.70158; 120 return c*(t/=d)*t*((s+1)*t - s) + b; 121 }, 122 easeOutBack: function (x, t, b, c, d, s) { 123 if (s == undefined) s = 1.70158; 124 return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 125 }, 126 easeInOutBack: function (x, t, b, c, d, s) { 127 if (s == undefined) s = 1.70158; 128 if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 129 return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 130 }, 131 easeInBounce: function (x, t, b, c, d) { 132 return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 133 }, 134 easeOutBounce: function (x, t, b, c, d) { 135 if ((t/=d) < (1/2.75)) { 136 return c*(7.5625*t*t) + b; 137 } else if (t < (2/2.75)) { 138 return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 139 } else if (t < (2.5/2.75)) { 140 return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 141 } else { 142 return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 143 } 144 }, 145 easeInOutBounce: function (x, t, b, c, d) { 146 if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 147 return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 148 } 149}); 150/* 151 * DC jQuery Floater - jQuery Floater 152 * Copyright (c) 2011 Design Chemical
153 * 154 * Dual licensed under the MIT and GPL licenses: 155 * http://www.opensource.org/licenses/mit-license.php 156 * http://www.gnu.org/licenses/gpl.html 157 * 158 */ 159 160(function($){ 161 162 //define the new for the plugin ans how to call it 163 $.fn.dcSocialFloater = function(options) { 164 165 //set default options 166 var defaults = { 167 classWrapper: 'dc-social-float', 168 classContent: 'dc-social-float-content', 169 width: 200, 170 idWrapper: 'dc-social-float-'+$(this).index(), 171 location: 'top', // top, bottom 172 align: 'left', // left, right 173 offsetLocation: '10', 174 offsetAlign: '10', 175 center: false, 176 centerPx: 0, 177 speedFloat: 1500, 178 speedContent: 600, 179 disableFloat: false, 180 tabText: 'Click', 181 event: 'click', 182 classTab: 'tab', 183 classOpen: 'dc-open', 184 classClose: 'dc-close', 185 classToggle: 'dc-toggle', 186 autoClose: true, 187 loadOpen: false, 188 tabClose: true, 189 easing: 'easeOutQuint' 190 }; 191 192 //call in the default otions 193 var options = $.extend(defaults, options); 194 195 //act upon the element that is passed into the design 196 return this.each(function(options){ 197 198 var idWrapper = defaults.idWrapper; 199 var floatTab = '<div class="'+defaults.classTab+'"><span>'+defaults.tabText+'</span></div>'; 200 201 $(this).addClass(defaults.classContent).wrap('<div id="'+idWrapper+'" class="'+defaults.classWrapper+' '+defaults.align+'" />'); 202 203 if(defaults.location == 'bottom'){ 204 $('#'+idWrapper).addClass(defaults.location).append(floatTab); 205 } else { 206 $('#'+idWrapper).prepend(floatTab); 207 } 208 209 //cache vars 210 var $floater = $('#'+idWrapper); 211 var $tab = $('.'+defaults.classTab,$floater); 212 var $content = $('.'+defaults.classContent,$floater); 213 var linkOpen = $('.'+defaults.classOpen); 214 var linkClose = $('.'+defaults.classClose); 215 var linkToggle = $('.'+defaults.classToggle); 216 var cssPos = defaults.disableFloat == false ? 'absolute' : 'fixed' ; 217 218 $floater.css({width: defaults.width+'px', position: cssPos, zIndex: 10000}); 219 220 var h_c = $content.outerHeight(true); 221 var h_f = $floater.outerHeight(); 222 var h_t = $tab.outerHeight(); 223 224 if(defaults.tabClose == true){ 225 $content.hide(); 226 } 227 228 floaterSetup($floater); 229 230 var start = $('#'+idWrapper).position().top; 231 232 if(defaults.disableFloat == false){ 233 234 floatObj(); 235 236 $(window).scroll(function(){ 237 floatObj(); 238 }); 239 240 } 241 242 if(defaults.loadOpen == true){ 243 floatOpen(); 244 } 245 246 if(defaults.tabClose == true){ 247 // If using hover event 248 if(defaults.event == 'hover'){ 249 250 var config = { 251 sensitivity: 2, 252 interval: 100, 253 over: floatOpen, 254 timeout: 400, 255 out: floatClose 256 }; 257 $floater.hoverIntent(config); 258 } 259 260 // If using click event 261 if(defaults.event == 'click'){ 262 263 $tab.click(function(e){ 264 if($floater.hasClass('active')){ 265 floatClose(); 266 } else { 267 floatOpen(); 268 } 269 e.preventDefault(); 270 }); 271 272 } 273 274 $(linkOpen).click(function(e){ 275 if($floater.not('active')){ 276 floatOpen(); 277 } 278 e.preventDefault(); 279 }); 280 281 $(linkClose).click(function(e){ 282 if($floater.hasClass('active')){ 283 floatClose(); 284 } 285 e.preventDefault(); 286 }); 287 288 $(linkToggle).click(function(e){ 289 if($floater.hasClass('active')){ 290 floatClose(); 291 } else { 292 floatOpen(); 293 } 294 e.preventDefault(); 295 }); 296 297 // Auto-close 298 if(defaults.autoClose == true){ 299 300 $('body').mouseup(function(e){ 301 if($floater.hasClass('active')){ 302 if(!$(e.target).parents('#'+defaults.idWrapper+'.'+defaults.classWrapper).length){ 303 floatClose(); 304 } 305 } 306 }); 307 } 308 } else { 309 // Add active class if tabClose false 310 $floater.addClass('active'); 311 } 312 313 function floatOpen(){ 314 315 $('.'+defaults.classWrapper).css({zIndex: 10000}); 316 $floater.css({zIndex: 10001}); 317 var h_fpx = h_c+'px'; 318 319 if(defaults.location == 'bottom'){ 320 321 $content.animate({marginTop: '-'+h_fpx}, defaults.speed).slideDown(defaults.speedContent); 322 } else { 323 $content.slideDown(defaults.speedContent); 324 325 } 326 $floater.addClass('active'); 327 } 328 329 function floatClose(){ 330 $content.slideUp(defaults.speedContent, function(){ 331 $floater.removeClass('active'); 332 }); 333 } 334 335 function floatObj(){ 336 337 var scroll = $(document).scrollTop(); 338 var moveTo = start + scroll; 339 var h_b = $('body').height(); 340 var h_f = $floater.height(); 341 var h_c = $content.height(); 342 $floater.stop().animate({top: moveTo}, defaults.speedFloat, defaults.easing); 343 } 344 345 // Set up positioning 346 function floaterSetup(obj){ 347 348 var location = defaults.location; 349 var align = defaults.align; 350 var offsetL = defaults.offsetLocation; 351 var offsetA = defaults.offsetAlign; 352 353 if(location == 'top'){ 354 $(obj).css({top: offsetL}); 355 } else { 356 $(obj).css({bottom: offsetL}); 357 } 358 359 if(defaults.center == true){ 360 offsetA = '50%'; 361 } 362 if(align == 'left'){ 363 $(obj).css({left: offsetA}); 364 if(defaults.center == true){ 365 $(obj).css({marginLeft: -defaults.centerPx+'px'}); 366 } 367 } else { 368 $(obj).css({right: offsetA}); 369 if(defaults.center == true){ 370 $(obj).css({marginRight: -defaults.centerPx+'px'}); 371 } 372 } 373 } 374 375 }); 376 }; 377})(jQuery); 378 379jQuery(document).ready(function($) { 380 $('.pinItButton').click(function(e){
381 exec_pinmarklet(); 382 e.preventDefault(); 383 }); 384});
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.