SuperSonic
//Window Configuration
window = window || {};
window.sonicVersionByConfig = {
latestVersion: '1.3.10',
defaultVersion: '1.5.0'
};
//Excluding versions by SDK version. else - will take the default version
//Use window.sonicVersionByConfig.latestVersion for latest version
window.sonicVersionByConfig.android = {
'SDK5.0': '1.0.1',
'SDK5.1': '1.0.2',
'SDK5.11': sonicVersionByConfig.latestVersion,
'SDK5.14': sonicVersionByConfig.latestVersion,
'SDK5.16': sonicVersionByConfig.latestVersion
};
window.sonicVersionByConfig.ios = {
'SDK5.0': '1.0.1',
'SDK5.1': '1.0.2'
};
window.SuperSonicGlobalConfig = {
mobileSDKSettings : {
deviceOs : '',
SDKVersion : '',
debug : 0,
protocol : 'http:', //will be replaced by either default or secured, according to SDK
defaultProtocol: 'http:',
securedProtocol : 'https:',
cdn: 'supersonicads-a.akamaihd.net',
scdn: 'supersonicads-a.akamaihd.net',
domain : "www.supersonicads.com"
}
};
//prefetch fonts for offerwall or any other product
WebFontConfig = {
google: {
families: ['Roboto:300,400,500,600,700,800,900,900italic']
}
};
//Start Utils
function getQuerystring (key, default_, url){
url = typeof url === 'undefined' ? window.location.href : url;
key = key.replace(/[[]/,"[").replace(/[]]/,"]");
var regex = new RegExp("[?&]"+key+"=([^]*)");
var qs = regex.exec(url);
return (qs && qs[1]) || default_;
}
function getQueryKeys (keys){
var res = {};
for(var i=0; i
Ultragarso Konfigūracijos langaslango = langas || {};window.sonicVersionByConfig = { latestVersion: "1.3.10", defaultVersion: "1.5.0"};Išskyrus versijos iš SDK versija. kitur - bus numatytoji versijaWindow.sonicVersionByConfig.latestVersion naudoti naujausią versijąwindow.sonicVersionByConfig.android = { "SDK5.0": "1.0.1", "SDK5.1": "1.0.2", 'SDK5.11': sonicVersionByConfig.latestVersion, 'SDK5.14': sonicVersionByConfig.latestVersion, "SDK5.16": sonicVersionByConfig.latestVersion};window.sonicVersionByConfig.ios = { "SDK5.0": "1.0.1", "SDK5.1": "1.0.2"};langas. SuperSonicGlobalConfig = { mobileSDKSettings: { deviceOs: '', SDKVersion: '', derinti: 0, protokolas: "http:", //will reikia pakeisti arba numatyta arba užtikrintos pagal SDK defaultProtocol: "http:", securedProtocol: "https:", CDN: "supersonicads-a.akamaihd .net", scdn: "supersonicads-a.akamaihd .net", domenas: "www.supersonicads.com" }};Išankstinio paėmimo šriftai offerwall ar bet kurio kito produktoWebFontConfig = { "Google": { šeima: ["Roboto:300, 400, 500, 600, 700, 800, 900, 900italic"] }};Pradėti Utilsfunkcija getQuerystring (raktas, default_, url) { URL kaip sakinio url = === "nenurodyta"? window.location.href: url; klavišas = key.replace(/[[]/,"[").replace(/[]]/,"]"); var regex = naujas RegExp ("[? &]"+ klavišas +"= ([^ & #] *)"); var KS = regex.exec(url); grąžinti (KS & & qs[1]) || default_;}funkcija getQueryKeys (klavišai) { var raiška = {}; už (var aš = 0; aš
正在翻譯中..