1(function($) { 2 $.fn.gcuiSwfObjEmbed = function(aSwf,aSettings) { 3 if (aSwf) { 4 var myConfig = {}; 5 $.each($.fn.gcuiSwfObjEmbed.defaults,function(k,v) { 6 // NOTE: jQuery.extend() doesn't copy properties, 7 // may work in jQuery 1.4, but we're on 1.3.2 8 // copy default 9 // http://jquery14.com/day-01/jquery-14 10 var mySub = {}; 11 for (var p in v) { 12 mySub[p] = v[p]; 13 } 14 // on the copy overwrite the defaults with the specific settings 15 for (var p in aSettings[k]) { 16 mySub[p] = aSettings[k][p]; 17 } 18 // assign to myConfig 19 myConfig[k] = mySub; 20 }); 21 this.each(function() { 22 myConfig.attributes.id = $(this).attr('id'); 23 if (myConfig.attributes.id == '') { 24 gcui_log('ID of div missing, cannot embed video'); 25 gcui_log(this); 26 gcui_log($(this)); 27 } 28 swfobject.embedSWF( 29 aSwf, myConfig.attributes.id, myConfig.config.width, 30 myConfig.config.height, myConfig.config.requiredVersion, 31 myConfig.config.alternativeSwf, 32 myConfig.flashvars, myConfig.params, myConfig.attributes 33 ); 34 }); 35 } else { 36 console.log('aSwf not passed in'); 37 } 38 return this; 39 }; 40 $.fn.gcuiSwfObjEmbed.defaults = { 41 config : { 42 height : '360', 43 width: '640', 44 requiredVersion : '8.0.0', 45 alternativeSwf : 'expressInstall.swf' 46 }, 47 params :{ 48 quality: "high", 49 scale: "noscale", 50 wmode: "transparent", 51 allowscriptaccess: "always", 52 allowFullScreen: "true", 53 bgcolor: "#000000" 54 }, 55 flashvars : { 56 fullLocale:"en_US", 57 locale:"en", 58 cdnPath:"", 59 localPath:"", 60 trackerCode:"", 61 configuration:"production", 62 sharedAssetPath:"/assets/", 63 siteAssetPath: "/assets/", 64 sharedDataPath: "/en/sdata/", 65 siteDataPath: "/data/", 66 siteStylesPath: "/data/styles/", 67 siteRootPath: "/", 68 infoRequestUrl: "http://contact2.firechrome.org/inquiry.action", 69 siteXML:"/site.xml", 70 localePostfix: "", 71 region: "US", 72 autoplay: "true" 73 }, 74 attributes : {} 75 }; 76 77 $.createElement = function(aEl,innerHtml,aClose,attrs) { 78 var r = ['<', aEl,' ']; 79 for(var k in attrs) { 80 r.push(k); 81 r.push('="'); 82 r.push($.isArray(attrs[k]) ? attrs[k].join(' ') : attrs[k]); 83 r.push('" '); 84 85 } 86 r.push('>'); 87 r.push(innerHtml); 88 if(aClose) { 89 r.push('</'); 90 r.push(aEl); 91 r.push('>'); 92 } 93 return r.join(''); 94 }; 95 96 $.fn.gcuiSlideShow = function(aId,aImages,aSettings) { 97 var config = {}; 98 if (settings) $.extend(config, settings); 99 this.each(function() {}); 100 return this; 101 }; 102 103 $.gcuiDataClone = function(aTarget,aSources) { 104 // NOTE: jQuery.extend() doesn't copy properties we're on 1.3.2 105 // http://jquery14.com/day-01/jquery-14 106 var mySources = $.makeArray(aSources) 107 $.each(mySources,function(i,v) { 108 for (var p in v) { 109 aTarget[p] = v[p]; 110 } 111 }); 112 return aTarget; 113 }; 114 $.intRange = function(aFrom,aTo,aMin,aMax,aDir) { 115 var myF = parseInt(aFrom); 116 var myT = parseInt(aTo); 117 var myMin = parseInt(aMin); 118 var myMax = parseInt(aMax); 119 if(myF==myT) return []; 120 var r = [myF]; 121 var myInc = aDir==null?myF < myT:aDir; 122 var i = myF; 123 while(i!=myT) { 124 r.push(i = $.increment(i,myMin,myMax,myInc)); 125 //if(i) {break;}//Avoid infinite loops 126 } 127 return r; 128 }; 129 $.increment = function(aFrom,aMin,aMax,aDir) { 130 var i = aDir ? ++aFrom : --aFrom; 131 if(i > aMax) return aMin; 132 if(i < aMin) return aMax; 133 return i; 134 }; 135 $.getAt = function(aObj,aParams) { 136 var r = null; 137 $.each(aParams,function(){ 138 if(aObj[this]) r=aObj[this]; 139 }); 140 return r; 141 }; 142 143 $.fn.customFadeIn = function(speed, callback) { 144 return $(this).fadeIn($.support.opacity ? speed : 1,callback); 145 }; 146 $.fn.customFadeOut = function(speed, callback) {
147 return $(this).fadeOut($.support.opacity ? speed : 1,callback); 148 }; 149 150 $.getHost = function() { 151 var h = new String(document.location); 152 return h.replace(/http:\/\/([^\/]*)\/.*/,'$1'); 153 }; 154 155 /** 156 * Find out if certain support exists 157 */ 158 $.gcuiSupports = function(features) { 159 var ret = true; 160 if (features.canvas) { 161 if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { 162 return false; 163 } 164 } 165 if (features.basic_html5) { 166 if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { 167 return false; 168 } 169 if (/Version\/3\.[0-9. ]+ Safari\//.test(navigator.userAgent)) { 170 return false; 171 } 172 if (/Version\/3\.[0-9. ]+ Mobile\//.test(navigator.userAgent)) { 173 return false; 174 } 175 if (/Firefox\/[1-2]\.[0-9]/.test(navigator.userAgent)) { 176 return false; 177 } 178 if (/Firefox\/3\.0/.test(navigator.userAgent)) { 179 return false; 180 } 181 if (/iPad/.test(navigator.userAgent)) { 182 return false; 183 } 184 if (/iPhone/.test(navigator.userAgent)) { 185 return false; 186 } 187 /*if (/Version\/4\.[0-9. ]+ Mobile\//.test(navigator.userAgent)) { 188 return false; 189 } */ 190 } 191 return ret; 192 }; 193 $.gcuiSupportsNativeCanvasText = function(supports) { 194 var ret = true; 195 if (supports.supportsCanvasText) { 196 if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { 197 return false; 198 } 199 if (/Version\/3\.[0-9. ]+ Safari\//.test(navigator.userAgent)) { 200 return false; 201 } 202 if (/Version\/3\.[0-9. ]+ Mobile\//.test(navigator.userAgent)) { 203 return false; 204 } 205 if (/Version\/4\.[0-9. ]+ Mobile\//.test(navigator.userAgent)) { 206 return false; 207 } 208 } 209 return ret; 210 } 211 212 213})(jQuery); 214 215if(!console) { 216 var console = {log : function(){}}; 217} 218 219if (typeof $.fn.delay != 'function') { 220 $.fn.delay = function(time, callback){ 221 jQuery.fx.step.delay = function(){}; 222 return this.animate({delay:1}, time, callback); 223 } 224} 225 226 227 228
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.