Advertisement
bronkmark

Untitled

Jun 28th, 2017
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.98 KB | None | 0 0
  1. <!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 controllerBootstrapModule(){function e(e){return"string"!=typeof e?null:{name:e.split(/\?(.+)/)[0],parameters:e.split(/parameters=(.+)/)[1]}}function n(e){var n={};if("string"!=typeof e)return null;try{n=JSON.parse(e)}catch(r){console.log(r.message)}return n}function r(){s&&(s=!1,setTimeout(function(){t(a.ready)},1))}function t(e){if("wk"===SuperSonicGlobalConfig.mobileSDKSettings.webviewType)"undefined"!=typeof window.webkit.messageHandlers&&"undefined"!=typeof window.webkit.messageHandlers.supersonicMainMsgHandler&&window.webkit.messageHandlers.supersonicMainMsgHandler.postMessage(e);else{var n=document.createElement("IFRAME");n.setAttribute("src",e),document.documentElement.appendChild(n),n.parentNode.removeChild(n),n=null}}function o(){t(a.loaded)}window.nativeQueue=[];var a={loaded:"supersonicads://initController?success=&fail=&stage=loaded&acknowledgeWith=acknowledgeMessage&declineWith=errorTest",ready:"supersonicads://initController?success=&fail=&stage=ready&acknowledgeWith=acknowledgeMessage&declineWith=errorTest"},s=!0;window.SSA_CORE={SDKController:{runFunction:function(t,o,a){var s=e(t);try{return"undefined"!=typeof s.name&&("acknowledgeMessage"===s.name?r():nativeQueue.push({name:s.name,parameters:n(s.parameters),successCallback:o,errorCallback:a})),!0}catch(i){return console.log("error running function:"+s.name+", error:"+i),!1}}}},o()}</script><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,r=document.createElement("script");if(r.type="text/javascript",e){if(document.getElementById(e))return;r.id=e}r.readyState?r.onreadystatechange=function(){("loaded"===r.readyState||"complete"===r.readyState)&&(r.onreadystatechange=null,t=n&&n())}:(r.onload=function(){t=n&&n()},r.onerror=function(){r.parentNode.removeChild(r),t=i&&i()}),r.src=o,document.getElementsByTagName("head")[0].appendChild(r)}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,window.isHotfixVersion="ios"===SuperSonicGlobalConfig.mobileSDKSettings.deviceOs.toLowerCase()&&("5.34"==SuperSonicGlobalConfig.mobileSDKSettings.SDKVersion||"5.32"==SuperSonicGlobalConfig.mobileSDKSettings.SDKVersion),window.isHotfixVersion&&controllerBootstrapModule(),s(),SuperSonicGlobalConfig.mobileSDKSettings.protocol!==SuperSonicGlobalConfig.mobileSDKSettings.securedProtocol&&loadWebFont(document)}window=window||{},window.initCtrlTime=Date.now(),window.sonicVersionByConfig={defaultVersion:"2.0.40"},window.sonicVersionByConfig.android={"SDK5.0":"1.0.1","SDK5.1":"1.0.2"},window.sonicVersionByConfig.ios={"SDK5.0":"1.0.1","SDK5.1":"1.0.2","SDK5.32":"2.0.41","SDK5.34":"2.0.41"},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