1DataIntelligenceSubmitScript = { 2 _settings: null, 3 _client: null, 4 5 /* --------------------------------- set up and tear down ---------------------------- */ 6 7 load: function (settings) { 8 if (typeof jQuery !== "undefined") { 9 this._settings = settings; 10 this._client = new sfDataIntell.Client({ 11 apiKey: settings.apiKey, 12 source: settings.applicationName, 13 apiServerUrl: settings.apiServerUrl, 14 trackingCookieDomain: settings.trackingCookieDomain, 15 trackPageVisits: true, 16 trackUtmParameters: true, 17 instrument: true, 18 trackReferrer: true 19 }); 20 21 if (typeof CustomEvent == "function") { 22 var evt = new CustomEvent('decclientready'); 23 document.dispatchEvent(evt); 24 } else if (!document.createEvent) { // If IE < 9 event won't be fired 25 // DO NOTHING! 26 } else { // If CuntomEvent object is not supported (e.g. IE9) -> create polyfil 27 // CustomEvent polyfil 28 var CustomEvent = function(event, params) { 29 params = params || { bubbles: false, cancelable: false, detail: undefined }; 30 var evt = document.createEvent('CustomEvent'); 31 evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); 32 return evt; 33 }; 34 CustomEvent.prototype = window.Event.prototype; 35 window.CustomEvent = CustomEvent; 36 // CustomEvent polyfil - END 37 38 var evt = new CustomEvent('decclientready', { bubbles: true, cancelable: true }); 39 document.dispatchEvent(evt); 40 } 41 } 42 } 43}
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.