Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html><html><head><title>SuperSonic</title><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"><link rel="icon" href="data:image/x-icon;," type="image/x-icon"></head><body><!-- inject:partial:js --><script>function getQuerystring(o,e,n){n="undefined"==typeof n?window.location.href:n,o=o.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+o+"=([^&#]*)"),t=i.exec(n);return t&&t[1]||e}function getQueryKeys(o){for(var e={},n=0;n<o.length;n++)e[o[n]]=getQuerystring(o[n],null);return e}function loadScript(o,e,n,i){var t=document.createElement("script");if(t.type="text/javascript",e){if(document.getElementById(e))return;t.id=e}t.readyState?t.onreadystatechange=function(){("loaded"===t.readyState||"complete"===t.readyState)&&(t.onreadystatechange=null,n&&n())}:(t.onload=function(){n&&n()},t.onerror=function(){t.parentNode.removeChild(t),i&&i()}),t.src=o,document.getElementsByTagName("head")[0].appendChild(t)}function loadWebFont(o){var e=o.createElement("script"),n=o.scripts[0];e.src=SuperSonicGlobalConfig.mobileSDKSettings.protocol+"//ajax.googleapis.com/ajax/libs/webfont/1.5.6/webfont.js",n.parentNode.insertBefore(e,n)}function jQueryScriptCB(){window.jQuery?startController():loadJQueryScript()}function loadJQueryScript(){++jQueryRetriesCounter<jQueryUrlsToLoad.length&&loadScript(jQueryUrlsToLoad[jQueryRetriesCounter],null,jQueryScriptCB,jQueryScriptCB)}function preLoadController(){loadJQueryScript()}function setProtocolInMobileSDKSettings(){var o=getQueryKeys(["protocol"]).protocol;SuperSonicGlobalConfig.mobileSDKSettings.protocol=o===SuperSonicGlobalConfig.mobileSDKSettings.securedProtocol?SuperSonicGlobalConfig.mobileSDKSettings.securedProtocol:SuperSonicGlobalConfig.mobileSDKSettings.defaultProtocol}function startController(){function o(){jQuery.extend(SuperSonicGlobalConfig.mobileSDKSettings,getQueryKeys(["deviceOs","SDKVersion","webviewType"])),jQuery.extend(SuperSonicGlobalConfig.controllerConfig,e()),jQuery.extend(SuperSonicGlobalConfig.mobileSDKSettings,getQueryKeys(["debug"]));var o;try{o=SuperSonicGlobalConfig.mobileSDKSettings.debug,o=parseInt(o),isNaN(o)&&(o=0)}catch(n){o=0}return SuperSonicGlobalConfig.mobileSDKSettings.debug=o,SuperSonicGlobalConfig.mobileSDKSettings}function e(){return JSON.parse(decodeURIComponent(getQueryKeys(["controllerConfig"]).controllerConfig))}function n(){return SuperSonicGlobalConfig.mobileSDKSettings.deviceOs&&SuperSonicGlobalConfig.mobileSDKSettings.SDKVersion&&sonicVersionByConfig[SuperSonicGlobalConfig.mobileSDKSettings.deviceOs]["SDK"+SuperSonicGlobalConfig.mobileSDKSettings.SDKVersion]?sonicVersionByConfig[SuperSonicGlobalConfig.mobileSDKSettings.deviceOs]["SDK"+SuperSonicGlobalConfig.mobileSDKSettings.SDKVersion]:sonicVersionByConfig.defaultVersion}function i(o){return o&&""!==o&&o!==SuperSonicGlobalConfig.mobileSDKSettings.cdn?!1:!0}function t(o){return"local.supersonicads.com"===o}function r(){var o=i(getQueryKeys(["domain"]).domain);return"../"+rootCacheFolder+"/"+SuperSonicGlobalConfig.mobileSDKSettings.controllerPathFolder+SuperSonicGlobalConfig.mobileSDKSettings.controllerVersion+"/sdk_controller"+(o?".min.gz":"")+".js"}function l(){var o,e,n=getQueryKeys(["domain"]).domain;return i(n)?(o=SuperSonicGlobalConfig.mobileSDKSettings.protocol+"//"+SuperSonicGlobalConfig.mobileSDKSettings.cdn,e=!1):(SuperSonicGlobalConfig.mobileSDKSettings.domain=n,o=SuperSonicGlobalConfig.mobileSDKSettings.protocol+"//"+n+"/ssastatic",e=!0),SuperSonicGlobalConfig.mobileSDKSettings.rootPath=o+"/mobileSDKController",SuperSonicGlobalConfig.mobileSDKSettings.imagePath=o+"/common/images/sdk",SuperSonicGlobalConfig.mobileSDKSettings.controllerJSUrl=SuperSonicGlobalConfig.mobileSDKSettings.rootPath+"/versions/"+SuperSonicGlobalConfig.mobileSDKSettings.controllerVersion+"/sdk_controller"+(e?"":".min.gz")+".js",SuperSonicGlobalConfig.mobileSDKSettings.controllerJSUrl}function S(){s()}function c(){window.downloadJSTime=Date.now()-p}function s(){++u<g.length?loadScript(g[u],d,c,S):a()}function a(){try{var o={sdkVersion:SuperSonicGlobalConfig.mobileSDKSettings.SDKVersion,controllerVersion:SuperSonicGlobalConfig.mobileSDKSettings.controllerVersion,applicationKey:SuperSonicGlobalConfig.controllerConfig.applicationKey,deviceOs:SuperSonicGlobalConfig.mobileSDKSettings.deviceOs,productType:"controller",eventName:"failedDownloadJS"},e={data:o,table:"supersonic.adunitanalytics.ad_unit_events"},n=btoa(JSON.stringify(e)),i="http:"===SuperSonicGlobalConfig.mobileSDKSettings.protocol?"http://supersonic.ironbeast.io":"https://secure.ironbeast.io",t=i+"?data="+n,r=new Image;r.src=t}catch(l){return}}window.sonicAsyncInit=function(){SonicCore.init(SuperSonicGlobalConfig)},o(),SuperSonicGlobalConfig.mobileSDKSettings.controllerVersion=n();var u=-1,g=[l()],d="sonic-jssdk";t(getQueryKeys(["domain"]).domain)||g.unshift(r());var p=Date.now();window.startDownloadJS=p-window.initCtrlTime,s(),SuperSonicGlobalConfig.mobileSDKSettings.protocol!==SuperSonicGlobalConfig.mobileSDKSettings.securedProtocol&&loadWebFont(document)}window=window||{},window.initCtrlTime=Date.now(),window.sonicVersionByConfig={defaultVersion:"2.0.34"},window.sonicVersionByConfig.android={"SDK5.0":"1.0.1","SDK5.1":"1.0.2","SDK5.32":sonicVersionByConfig.specificVersion},window.sonicVersionByConfig.ios={"SDK5.0":"1.0.1","SDK5.1":"1.0.2","SDK5.32":sonicVersionByConfig.specificVersion},window.SuperSonicGlobalConfig={mobileSDKSettings:{deviceOs:"",SDKVersion:"",debug:0,protocol:"http:",defaultProtocol:"http:",securedProtocol:"https:",cdn:"supersonicads-a.akamaihd.net",scdn:"supersonicads-a.akamaihd.net",domain:"www.supersonicads.com",serviceCdn:"www.ssacdn.com",webviewType:"ui",purgeCampaignsCache:!1,purgeGlobalsCache:!1,controllerPathFolder:"controller_"},controllerConfig:{isSecured:!1}},WebFontConfig={google:{families:["Roboto:300,400,500,600,700,800,900,900italic"]}},setProtocolInMobileSDKSettings();var rootCacheFolder="ios"==getQueryKeys(["deviceOs"]).deviceOs?"SSAPublisher":"supersonicads";SuperSonicGlobalConfig.mobileSDKSettings.jQueryUrls=[SuperSonicGlobalConfig.mobileSDKSettings.protocol+"//code.jquery.com/jquery-1.9.1.min.js",SuperSonicGlobalConfig.mobileSDKSettings.protocol+"//"+SuperSonicGlobalConfig.mobileSDKSettings.cdn+"/libs/jquery-1.9.1.min.js"];var jQueryUrlsToLoad=["../"+rootCacheFolder+"/assets/jquery-1.9.1.min.js"],jQueryRetriesCounter=-1;Array.prototype.push.apply(jQueryUrlsToLoad,SuperSonicGlobalConfig.mobileSDKSettings.jQueryUrls),preLoadController();</script><!-- endinject --></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement