1'use strict'; 2 3angular.module('AboShopApp').factory('atInternetManager', ['commonConfig', 4 function (commonConfig) { 5 var factory = {}; 6 factory.init = function init(){ 7 if (commonConfig.atInternetId !== undefined){ 8 var atLaunch = function(){ 9 window.ATTag = new ATInternet.Tracker.Tag({ 10 collectDomain: "logc1.xiti.com/", 11 collectDomainSSL: "logs4.xiti.com", 12 secure: true, 13 site: commonConfig.atInternetId //"214308" 14 }); 15 }; 16 17 var scriptSmartTag = document.createElement("script"); 18 scriptSmartTag.id = "script_smartTag"; 19 scriptSmartTag.type = "text/javascript"; 20 scriptSmartTag.src = "/core/js/angular/tbs-smarttag.js"; 21 scriptSmartTag.onload = atLaunch; 22 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] || document.getElementsByTagName('script')[0].parentNode).insertBefore(scriptSmartTag, null); 23 } 24 }; 25 26 factory.send = function send (obj) { 27 if (commonConfig.atInternetId !== undefined && window.ATTag !== undefined){ 28 window.ATTag.privacy.setVisitorMode('default', 'no-consent'); 29 window.ATTag.page.set(obj); 30 window.ATTag.dispatch(); 31 } 32 }; 33 //_tag.clickListener.send(obj); 34 return factory; 35}]);
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.