1/** 2 * Cookie plugin 3 * 4 * Copyright (c) 2006 Klaus Hartl (stilbuero.de) 5 * Dual licensed under the MIT and GPL licenses: 6 * http://www.opensource.org/licenses/mit-license.php 7 * http://www.gnu.org/licenses/gpl.html 8 * 9 */ 10jQuery.cookie=function(name,value,options){if(typeof value!="undefined"){options=options||{};if(value===null){value="";options.expires=-1}var expires="";if(options.expires&&(typeof options.expires=="number"||options.expires.toUTCString)){var date;if(typeof options.expires=="number"){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000))}else{date=options.expires}expires="; expires="+date.toUTCString()}var path=options.path?"; path="+(options.path):"";var domain=options.domain?"; domain="+(options.domain):"";var secure=options.secure?"; secure":"";document.cookie=[name,"=",encodeURIComponent(value),expires,path,domain,secure].join("")}else{var cookieValue=null;if(document.cookie&&document.cookie!=""){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+"=")){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break}}}return cookieValue}}; 11 12jQuery(document).ready(function() { 13 14 var delay = (function(){ 15 var timer = 0; 16 return function(callback, ms){ 17 clearTimeout (timer); 18 timer = setTimeout(callback, ms); 19 }; 20 })(); 21 22 function stripFix() { 23 /*313 step*/ 24 //displays 25 if($(window).width() <= 1465) { 26 $("#strip-bg-3").css("display","inline-block"); 27 } else{ 28 $("#strip-bg-3").css("display","none"); 29 } 30 31 if ($(window).width() <= 1253) { 32 $("#strip-bg-4").css("display","inline-block"); 33 } else { 34 $("#strip-bg-4").css("display","none"); 35 } 36 37 if ($(window).width() <= 938) { 38 $("#strip-bg-5").css("display","inline-block"); 39 $("#strip-bg-6").css("display","inline-block"); 40 $("#strip-bg-7").css("display","inline-block"); 41 $("#strip-bg-8").css("display","inline-block"); 42 } else { 43 $("#strip-bg-5").css("display","none"); 44 $("#strip-bg-6").css("display","none"); 45 $("#strip-bg-7").css("display","none"); 46 $("#strip-bg-8").css("display","none"); 47 } 48 49 50 51 //widths 52 if ($(window).width() <= 623) { 53 $("#strip-bg-2").css("width","330px"); 54 $("#strip-bg-3").css("width","330px"); 55 $("#strip-bg-4").css("width","330px"); 56 $("#strip-bg-5").css("width","330px"); 57 $("#strip-bg-6").css("width","330px"); 58 $("#strip-bg-7").css("width","330px"); 59 $("#strip-bg-8").css("width","330px"); 60 } 61 if ($(window).width() > 623 && $(window).width() <= 839) { 62 $("#strip-bg-2").css("width","640px"); 63 $("#strip-bg-3").css("width","640px"); 64 $("#strip-bg-4").css("width","640px"); 65 $("#strip-bg-5").css("width","330px"); 66 $("#strip-bg-6").css("display","none"); 67 $("#strip-bg-7").css("display","none"); 68 $("#strip-bg-8").css("display","none"); 69 } 70 if ($(window).width() > 839 && $(window).width() <= 938) { 71 $("#strip-bg-2").css("width","640px"); 72 $("#strip-bg-3").css("width","640px"); 73 $("#strip-bg-4").css("width","640px"); 74 $("#strip-bg-5").css("display","none"); 75 $("#strip-bg-6").css("display","none"); 76 $("#strip-bg-7").css("display","none"); 77 } 78 if ($(window).width() > 938 && $(window).width() <= 1152) { 79 $("#strip-bg-2").css("width","953px"); 80 $("#strip-bg-3").css("width","953px"); 81 $("#strip-bg-4").css("display","none"); 82 $("#strip-bg-5").css("display","none"); 83 } 84 if ($(window).width() > 1152 && $(window).width() <= 1253) { 85 $("#strip-bg-2").css("width","953px"); 86 $("#strip-bg-3").css("width","640px"); 87 $("#strip-bg-4").css("display","none"); 88 } 89 if ($(window).width() > 1253 && $(window).width() <= 1465) { 90 $("#strip-bg-2").css("width","1265px"); 91 $("#strip-bg-3").css("display","330px"); 92 } 93 if ($(window).width() > 1465 && $(window).width() <= 1778) { 94 $("#strip-bg-2").css("width","1265px"); 95 $("#strip-bg-3").css("display","none"); 96 } 97 if ($(window).width() > 1778 && $(window).width() <= 2070) { 98 $("#strip-bg-2").css("width","953px"); 99 $("#strip-bg-3").css("display","none"); 100 } 101 if ($(window).width() > 2070){ 102 $("#strip-bg-1").css("width","100%"); 103 $("#strip-bg-2").css("width","330px"); 104 } 105 } 106 107
108 /* wait for images to load too */ 109 $(window).load(function() { 110 111 var num = 1 + Math.floor(Math.random() * 5); 112 $('#body-sketch img').attr("src",$('#body-sketch img').attr("src").replace("sketch-1.jpg","sketch-"+num+".jpg")); 113 114 $("#body-sketch img").fullBg(); 115 var animationImage = $('#body-sketch img').attr("src"); 116 animationImage = animationImage.replace("sketch", "animation"); 117 $("#body-animation").append('<img width="1542" height="927" alt="" src="'+ animationImage +'" style="display:none;" />'); 118 $("#body-animation img").fullBg(); 119 animation();//start animation 120 121 setPath(); 122 123 stripFix(); 124 setVideo(); 125 126 }); 127 128 $(window).resize(function() { 129 stripFix(); 130 }); 131 132});
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.