if (typeof cls_InovaDiamonds_Iframe === 'undefined' || cls_InovaDiamonds_Iframe === 'lo') { class InovaDiamonds_Iframe { // 819 Get_Info_Product(Query_From, mode) { cls_InovaDiamonds_Iframe.check_Browser(); function To_Form(val) { return (val.replace(/ /g, '').replace(/-/g, '').replace(/\./g, '').replace(/-/g, '').toLowerCase()).replace(/\n/g, '') } function isDecimal(str) { if (typeof str !== "string") return false; const num = parseFloat(str); return !isNaN(num) && isFinite(num) && str.trim() !== ""; } function Carat_To_Form(val) { val = val.toLowerCase().replace('ct.', '').replace('ct', '') val =val.replace(/ /g, '').replace(/-/g, '').replace(/,/g, '.').replace(/-/g, '').toLowerCase().replace(/\n/g, '') if (isDecimal(val)){ if (val.indexOf('.') == 0) { val = '0' + val_Post } var ar = val.split('.') if (ar.length == 2) { if (ar[1].length == 1) { return (val + '0') } return (ar[0] + '.' + ar[1].substring(0, 2)) } else if (ar.length == 1) { return (ar[0] + '.00') } } if (document.location.href.indexOf('localhost') > 0) { alert('Carat_To_Form - val: ' + val); } return('') } function Color_To_Form(val) { val = val.toLowerCase().trim().replace(/ /g, ' ').replace(/ /g, ' '); if (!val || val == '') { return ""; } let key = null; if (val.indexOf("yellow") >= 0) { key = "y"; } else if (val.indexOf("rose") >= 0) { key = "r"; } else if (val.indexOf("white") >= 0) { key = "w"; } else if (val.indexOf("platin") >= 0) { key = "p"; } else { if (val.indexOf("y")) { key = "y"; } else if (val.indexOf("r") >= 0) { key = "r"; } else if (val.indexOf("w") >= 0) { key = "w"; } else if (val.indexOf("p") >= 0) { key = "p"; } } if (!key) { return ""; } let karat = null; if (val.indexOf("9k") >= 0) { karat = "-9"; } else if (val.indexOf("14k") >= 0) { karat = "-14"; } else if (val.indexOf("18k") >= 0) { karat = "-18"; } else if (val.indexOf("21k") >= 0) { karat = "-21"; } else { if (val.indexOf("9") >= 0) { karat = "-9"; } else if (val.indexOf("14") >= 0) { karat = "-14"; } else if (val.indexOf("18") >= 0) { karat = "-18"; } else if (val.indexOf("21") >= 0) { karat = "-21"; } } if (karat) { return key + karat; } return key; } function Work_Shapes_Relation(Ret, ar_Site) { st_Shape = ''; st_Shapes = ''; Ret = To_Form(Ret); var ar_Mod = cls_InovaDiamonds_Iframe.Shape_Relation.split(',') for (var sh = 0; sh < ar_Site.length; sh++) { var st_Site = To_Form(ar_Site[sh]); for (var j = 0; j < ar_Mod.length; j++) { var ar_2 = ar_Mod[j].split('='); if (ar_2.length == 2) { var st_Mod = To_Form(ar_2[1]); if (st_Mod == st_Site) { if (st_Mod == Ret) { st_Shape = ar_2[0]; } if (st_Shapes != '') { st_Shapes += ',' } st_Shapes += ar_2[0]; break; } } } } if (st_Shape == '') { st_Shape = cls_InovaDiamonds_Iframe.Default_3D_Shape } if (st_Shapes == '') { st_Shapes = st_Shape } } function Work_Textures_Relation(Cur_Texture, ar_Site) { st_Texture = ''; st_Textures = ''; st_Text_Color = ','; Cur_Texture = To_Form(Cur_Texture); if (cls_InovaDiamonds_Iframe.Texture_Relation == '') { st_Texture = cls_InovaDiamonds_Iframe.Default_3D_Texture.toLowerCase(); st_Textures = st_Texture } var ar_Mod = cls_InovaDiamonds_Iframe.Texture_Relation.split('#')[0].split(',') for (var i = 0; i < ar_Site.length; i++) { var st_Site = To_Form(ar_Site[i]) if (st_Site != '') { for (var j = 0; j < ar_Mod.length; j++) { var ar_3 = ar_Mod[j].split('='); if (ar_3.length == 3) { var st_Mod = To_Form(ar_3[2]); if (st_Site == st_Mod) { if (st_Mod == Cur_Texture) { st_Texture = ar_3[0]; st_Text_Color = ar_3[1]; } if (st_Textures != '') { st_Textures += ',' } st_Textures += ar_3[0] ar_3[1] = To_Form(ar_3[1]) if (st_Text_Colors.indexOf(',' + ar_3[1] + ',') < 0) { st_Text_Colors += ar_3[1] + ',' } } } } } } if (st_Texture == '') { st_Texture = cls_InovaDiamonds_Iframe.Default_3D_Texture.toLowerCase(); } if (st_Textures == '') { st_Textures = st_Texture } } var st_SKU = ''; var st_Colors = ''; var st_Color = ''; var st_Carats = ''; var st_Carat = ''; var st_Textures = ''; var st_Texture = ''; var st_Text_Colors = ''; var st_Text_Color = ''; var st_Shapes = ''; var st_Shape = ''; if (this.This_IP == '149.106.241.237') { debugger } // // var ct = document.getElementsByClassName('catproducts') if (ct.length > 0) { cls_InovaDiamonds_Iframe.User_Ring = ''; cls_InovaDiamonds_Iframe.Mode = 'list'; for (var i = 0; i < ct.length; i++) { if (ct[i].getAttribute('ino_supp')){ } else{ var aa = ct[i].getElementsByTagName('DIV') for (var j = 0; j < aa.length; j++) { if (aa[j].getAttribute('data-sku')){ cls_InovaDiamonds_Iframe.User_Ring += ',' + aa[j].getAttribute('data-sku'); } } } } return ('') } function Work_Shapes() { var Ret = ''; var ar = document.getElementById('rtr_shapes').getElementsByTagName('LI') var ar_Shapes = ('').split(','); for (var i = 0; i < ar.length; i++) { var sh = ar[i].getElementsByTagName('SPAN')[0].textContent; if (ar[i].getElementsByTagName('A')[0].classList.contains('active')) { Ret = sh; } ar_Shapes[i] = sh } Work_Shapes_Relation(Ret, ar_Shapes) } function Work_Metal() { var ar = document.getElementById('rtr_color').getElementsByTagName('LI') for (var i = 0; i < ar.length; i++) { var cla = ar[i].getElementsByTagName('SPAN')[0].className; var cl = ''; if (cla.indexOf('rose') >= 0) { cl = 'r' } else if (cla.indexOf('yellow') >= 0) { cl = 'y' } else { cl = 'w' } if (st_Colors.indexOf(cl) < 0) { if (st_Colors != '') { st_Colors += ',' } st_Colors += cl } if (cla.indexOf('selectedMetal') >= 0) { st_Color += cl } } } function Work_Textures() { var Ret = '' var ar = document.getElementById('rtr_tex').getElementsByTagName('LI') var ar_Textures = ('').split(','); for (var i = 0; i < ar.length; i++) { var txt = ar[i].getElementsByTagName('SPAN')[0].textContent; ar_Textures[i] = txt; if (ar[i].getElementsByTagName('A')[0].className.indexOf('active') >= 0) { Ret = txt } } Work_Textures_Relation(Ret, ar_Textures) } function Work_Carat() { //rtr_carat if (cls_InovaDiamonds_Iframe.Type_Product == '40') { var o = document.getElementById('rtr_carat'); if (!o) { return ('') } var ar = o.getElementsByTagName('LI') for (var i = 0; i < ar.length; i++) { var val = ((ar[i].textContent * 1) / 2) val = parseFloat(val.toFixed(2)) + ''; if (st_Carats != '') { st_Carats += ',' } st_Carats += val; if (ar[i].getElementsByTagName('A')[0].classList.contains('active')) { st_Carat = val } } if (st_Carat == '0.05' && cls_InovaDiamonds_Iframe.Default_Carat_02 == '') { st_Carat = '0.50' } else { if (st_Carat != '0.05') { cls_InovaDiamonds_Iframe.Default_Carat_02 = '1'; } } } else { var o = document.getElementById('rtr_carat'); if (! o){ return ('') } st_Carat = o.textContent; st_Carat = Carat_To_Form(st_Carat) if (st_Carat == '0.20' && cls_InovaDiamonds_Iframe.Default_Carat_02 == '') { st_Carat = '1.00' } else { if (st_Carat != '0.20') { cls_InovaDiamonds_Iframe.Default_Carat_02 = '1'; } } st_Carats = '0.30,0.40,0.50,0.75,1.00,1.25,1.50,1.75,2.00,2.50,3.00,3.50' } } st_SKU = document.getElementsByClassName('productSKU')[0].innerHTML if (st_SKU == '') { throw new Error("Data is required!") } var cnt = document.getElementById('rtr_try_on') if (cnt) { cnt = document.getElementById('rtr_try_on_mobile') if (!cnt) { throw new Error("Data is required!") } } else { throw new Error("Data is required!") } //https://test.abelini.com/product/solitaire-engagement-rings-platinum-rose-white-gold-brilliant-cut-diamond-rine3170?Dev_wRk=57537 debugger Work_Shapes() Work_Metal() Work_Textures() Work_Carat() if (cls_InovaDiamonds_Iframe.Shape_Relation != '') { if (st_Color != '' || st_Carat != '') { if (st_Shape == '' || st_Texture == '') { cls_InovaDiamonds_Iframe.User_Ring = 'ABBA' return ('') } } } if (st_SKU == 'RINH2015B-RND' || st_SKU == 'RINE2427-RND' || st_SKU == 'RINE2863-RND' || st_SKU == 'RINE3061-RND' || st_SKU == 'RINE3128-RND' || st_SKU == 'RINE3149-RND' || st_SKU == 'RINE3170-RND' || st_SKU == 'RINE3584-RND' || st_SKU == 'RINE4820-RND' || st_SKU == 'RINE5737-RND') { } else { var ar = st_SKU.split('-'); if (ar.length == 3) { st_SKU = ar[0] + '-' + ar[2]; } } cls_InovaDiamonds_Iframe.User_Ring = st_SKU.replace(/-/g, '_').replace(/\//g, '_').replace(/\./g, '_').replace(/ /g, '') + '^colors:' + st_Colors + '^color:' + st_Color + '^carat:' + st_Carat + '^carats:' + st_Carats + '^texture:' + st_Texture + '^textures:' + st_Textures + '^text_colors:' + st_Text_Colors + '^shape:' + st_Shape + '^shapes:' + st_Shapes; if (Query_From == 'Print_Button') { return (User_Ring) } if (Query_From == 'event') { return (st_Shape + '^' + st_Text_Color + '^' + st_Color + '^' + st_Carat) } return ('') } Default_For_Design() { var Def_Value = '4069'; // return (Def_Value) } Print_Buttons(data, type_prod, rng_3DM){ var _View = ''; // _View = 'none' var o; //var im = document.createElement('IMG') //im.src = '/catalog/view/theme/default/img/try_on.jpeg'; //im.setAttribute('onclick', 'cls_InovaDiamonds_Iframe.Inova__OpenFrame()') //im.setAttribute('style', 'width:90px;position:absolute;left:0px;bottom:0px;z-index:555;cursor:pointer') //document.getElementById('image_div').appendChild(im) var icon = ''; var o_Div = document.createElement('DIV'); o_Div.id = 'Inova_Try_A'; //o_Div.style.display = 'none' o_Div.innerHTML = '' + '' + '
' + icon.replace('[~clr~]', 'CH') + ' Try On
' if ((type_prod * 1) < 25){ var p = document.getElementById('image_div') if (cls_InovaDiamonds_Iframe.WA___Flag_Mobile == '1') { o_Div.setAttribute('style', 'position:absolute;z-index:55555;top:-44px;float:left;background-color:black;border-radius:17px;width:110px;margin-left:22px') p = document.getElementById('image-section-tab') p.parentNode.insertBefore(o_Div, p) } else { o_Div.setAttribute('style', 'background-color:black;border-radius:17px;width:90px;position:absolute;left:0px;bottom:0px;z-index:555;cursor:pointer') p.appendChild(o_Div) } } cls_InovaDiamonds_Iframe.Default_Carat_02 = ''; if (rng_3DM == '1') { setTimeout(function () { cls_InovaDiamonds_Iframe.Print_Button_Go(); }, 200); } else { o_Div.style.display = 'block' } return (_View) } Print_Button_iFrame_Put(isMobile){ function Del_Child() { for (var i = 0; i < ar.length; i++) { if (ar[i].tagName != 'IFRAME') { cls_InovaDiamonds_Iframe.container_3D.removeChild(ar[i]) return (true) } } return (false) } cls_InovaDiamonds_Iframe.Count_Check_iFrame += 1 if (cls_InovaDiamonds_Iframe.Count_Check_iFrame > 50 || cls_InovaDiamonds_Iframe.flag_load_3D == true) { var ar = cls_InovaDiamonds_Iframe.container_3D.childNodes for (var i = 0; i < ar.length; i++) { if (ar[i].tagName) { if (ar[i].tagName != 'IFRAME') { ar[i].setAttribute('style', '-webkit-transition:2s;-o-transition:2s;transition:2s;opacity:0') } } } setTimeout(function () { for (var i = 0; i < 100; i++) { if (! Del_Child()) { break; } } }, 2000); return ('') } setTimeout(function () { cls_InovaDiamonds_Iframe.Print_Button_iFrame_Put(isMobile); }, 100); } Print_Button_Go(){ const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent); if (isMobile) { cls_InovaDiamonds_Iframe.container_3D = document.getElementById('rtr_try_on_mobile'); if (cls_InovaDiamonds_Iframe.container_3D) { cls_InovaDiamonds_Iframe.container_3D.style.minHeight = '100px' cls_InovaDiamonds_Iframe.container_3D.style.height = 'auto' } } else { cls_InovaDiamonds_Iframe.container_3D = document.getElementById('rtr_try_on'); } if (cls_InovaDiamonds_Iframe.container_3D) { if (cls_InovaDiamonds_Iframe.container_3D.style.display == 'none') { } else { var ch = cls_InovaDiamonds_Iframe.container_3D.childNodes if (ch.length == 0 || cls_InovaDiamonds_Iframe.container_3D.childNodes[0].tagName != 'IFRAME') { var IFRAME = document.createElement('IFRAME'); IFRAME.setAttribute('style', 'border:0px solid white;z-index:-1'); IFRAME.id = 'id_vto_show'; cls_InovaDiamonds_Iframe.container_3D.appendChild(IFRAME) if (isMobile) { IFRAME.style.width = window.screen.width + 'px'; IFRAME.style.height = window.screen.width + 'px'; } else { IFRAME.style.width = '100%'; IFRAME.style.height = '100%'; } cls_InovaDiamonds_Iframe.Inova__OpenFrame("Mod_3D:2^iFrm_Targ:id_vto_show^Btn_Close:1^Left_Panel_No:no"); document.getElementById('Inova_Try_A').style.display = 'block'; setTimeout(function () { cls_InovaDiamonds_Iframe.Print_Button_iFrame_Put(isMobile); }, 500); cls_InovaDiamonds_Iframe.Count_Check_iFrame = 0 try{document.getElementById('slider').parentNode.setAttribute('onmouseup', 'setTimeout(function(){cls_InovaDiamonds_Iframe.Go_User_Event("carat")},100)')}catch(_e){} try{document.getElementById('slider').parentNode.setAttribute('onclick', 'setTimeout(function(){cls_InovaDiamonds_Iframe.Go_User_Event("carat")},100)')}catch(_e){} try { document.getElementById('div_carat').parentNode.setAttribute('onclick', 'setTimeout(function(){cls_InovaDiamonds_Iframe.Go_User_Event("color")},100)') } catch (_e) { } try { document.getElementById('rtr_color').parentNode.setAttribute('onclick', 'setTimeout(function(){cls_InovaDiamonds_Iframe.Go_User_Event("color")},100)') } catch (_e) { } try{document.getElementById('rtr_shapes').parentNode.setAttribute('onclick', 'setTimeout(function(){cls_InovaDiamonds_Iframe.Go_User_Event("shape")},100)')}catch(_e){} try{document.getElementById('rtr_tex').parentNode.setAttribute('onclick', 'setTimeout(function(){cls_InovaDiamonds_Iframe.Go_User_Event("text_stone")},100)')}catch(_e){} return ('') } } } setTimeout(function () { cls_InovaDiamonds_Iframe.Print_Button_Go(); }, 200); var _View = ''; return (_View); } Before_Open_iFrame() { // } After_Close_iFrame() { // } Init_User_Code() { // } Get_Product_Images() { // } Go_User_Event(Param, obj) { // Param = Param.replace(/ /g, '') // var Ar_Val = cls_InovaDiamonds_Iframe.Get_Info_Product('event').split('^') cls_InovaDiamonds_Iframe.Prepare_Post_Message(Ar_Val,'^' + Param + '^') } //Get_info_From_Page(URL) { Get_info_From_Page(URL) { } //} constructor() { this.WA___Flag_Mobile = '0'; this.WA___Flag_iPhone = false; this.WA___iPhone_Stat = false; this.WA___Flag_Load = 0; this.WA___Frame_SRC = 0; this.WA___Flag_Open = 0; this.WA___TagVieport = ''; this.WA___TagText = ''; this.WA___ViewPort_K = 1; this.Parent_Body_Style = ''; this.Parent_HTML_Style = ''; this.Flag_Block_Rotate = ''; this.Type_Product = ''; this.Window_Height = 0; this.Interval = ''; this.User_Parent = ''; this.Flag_Page_Success = ''; this.User_Ring = ''; this.User_Ring_Checked = ''; this.User_Diam = ''; this.Count_Time = 0; this.Old_Product_Name = ''; this.z_Back = '2147483644'; this.z_iFrame = '2147483645'; this.z_Mess = '2147483646'; this.z_Close = '2147483647'; this.WA_aoCalls = new Array(); this.DontShow_Button = '1'; this.m3d_360 = ''; this.Flag_No_Wait_Click = ''; this.If_No_Exists_Chang_To = ''; this.User_Ring_No_Exist = ''; this.Flag_Put_Button = ''; this.Count_Repite_Print_HTML = 1; this.WA___User_Array = (',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,').split(','); this.iFrame_Orientation = ''; this.Flag_Work_BO = ''; this.URL_Execute_Domain = 'https://rtr.vto.jewelry/'; this.URL_Execute_Page = ''; this.Parent_Domain = 'https://rtr.vto.jewelry'; this.Ring_Try_Yourself = ''; this.SID = 'u1kt8l6_250131023314'; this.Mode = ''; this.Btn_Close_No_Show = '0'; this.Flag_Use_Google_Tag_Events = '0'; this.Icon_Parent_Button = 'Include/Inova/Images/Buttons/en/hand_1.png'; this.Icon_Parent_Style = ''; this.Flag_Block_Ring_ID = ''; this.From_Check_Exists_Ring = ''; this.BO_Parameter_URL = ''; this.Cur_Language = 'en'; this.Product_Page = ''; this.Server_Stat = ''; this.Flag_Parent_Page = ''; this.Flag_UnLoad = ''; this.Flag_Load_Button = ''; this.Flag_Show_SID = ''; this.Product_Code = ''; this.xmlObj; this.This_IP = '18.118.0.93'; this.Dop_URL_Param = ''; this.Ring_Show_Change = ''; this.Work_Mode_Design = ''; this.Colors_3D = ''; this.Param_3D = ''; this.iFrame_Target = ''; this.Left_Panel_No = ''; this.Flag_3D_Not_Resizable = ''; this.Texture_Relation = ''; this.Shape_Relation = ''; this.Mode_Open_iFrame = ''; //this.Algo_3D_Mode = '1'; this.Algo_3D_Mode = ''; this.ID_iFrame_Mod_3D = ''; this.Default_3D_Shape = ''; this.Default_3D_Texture = ''; this.flag_load_3D = false; this.Temp_Var_iFrame = ''; try { window.addEventListener("beforeunload", function () { cls_InovaDiamonds_Iframe.Send_Unload(); }); window.addEventListener("resize", function () { cls_InovaDiamonds_Iframe.Put_Size_iFrame(); }); window.addEventListener("orientationchange", function () { cls_InovaDiamonds_Iframe.Orientation_Change(); }); window.addEventListener("message", function (event) { cls_InovaDiamonds_Iframe.WA___Listener(event); }); } catch (_e) { } } Prepare_Post_Message(Ar_Val){ var st_ch = Ar_Val[0] + '=' + Ar_Val[1]; if (st_ch != '=') { if (Ar_Val[0] == '') { Ar_Val[0] = this.Default_3D_Shape; st_ch = Ar_Val[0] + '=' + Ar_Val[1]; } if (Ar_Val[1] == '') { Ar_Val[1] = this.Default_3D_Texture; st_ch = Ar_Val[0] + '=' + Ar_Val[1]; } if (this.Shape_3D_Test != st_ch) { this.Shape_3D_Test = st_ch; cls_InovaDiamonds_Iframe.iFrame_postMessage("shape_center:" + st_ch, cls_InovaDiamonds_Iframe.ID_iFrame_Mod_3D) } } if (Ar_Val[2] != this.Color_3D_Test) { this.Color_3D_Test = Ar_Val[2] if (Ar_Val[2].length == 1) { Ar_Val[2] += '-14' } cls_InovaDiamonds_Iframe.iFrame_postMessage("color:" + Ar_Val[2], cls_InovaDiamonds_Iframe.ID_iFrame_Mod_3D); } if (this.isNumeric(Ar_Val[3].replace(/ /g, '').replace('.', ''))) { if (Ar_Val[3] != this.Carat_3D_Test) { this.Carat_3D_Test = Ar_Val[3] cls_InovaDiamonds_Iframe.iFrame_postMessage("carat:" + Ar_Val[3], cls_InovaDiamonds_Iframe.ID_iFrame_Mod_3D); } } } Currient_IP() { if (this.This_IP == '149.106.241.237') { return (true) } return (false) } check_Browser() { if (cls_InovaDiamonds_Iframe.Work_Mode_Design != '') { cls_InovaDiamonds_Iframe.WA___Flag_Mobile = cls_InovaDiamonds_Iframe.Work_Mode_Design; return ('') } cls_InovaDiamonds_Iframe.WA___Flag_Mobile = '0'; if (cls_InovaDiamonds_Iframe.Get_Orientation() == '1') { cls_InovaDiamonds_Iframe.WA___Flag_Mobile = '1'; } else { if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) { cls_InovaDiamonds_Iframe.WA___Flag_Mobile = '1'; } } var userAgent = navigator.userAgent || navigator.vendor || window.opera; if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) { cls_InovaDiamonds_Iframe.WA___Flag_iPhone = true cls_InovaDiamonds_Iframe.WA___iPhone_Stat = true } if (cls_InovaDiamonds_Iframe.WA___Flag_Mobile != '1') { cls_InovaDiamonds_Iframe.WA___Flag_iPhone = false if (navigator.userAgent.indexOf('Mac') > 0) { cls_InovaDiamonds_Iframe.WA___iPhone_Stat = true } } } stopEvent(event) { event.stopPropagation(); event.stopImmediatePropagation(); } Get_Orientation() { if (cls_InovaDiamonds_Iframe.Work_Mode_Design != '') { return (cls_InovaDiamonds_Iframe.Work_Mode_Design) } try { var orientation; try { orientation = (screen.orientation.type || screen.mozOrientation || screen.msOrientation); } catch (e) { orientation = (screen.orientation || screen.mozOrientation || screen.msOrientation); } if (orientation != undefined) { if (orientation.indexOf('landscape') >= 0) { return ('0') } else if (orientation.indexOf('portrait') >= 0) { return ('1') } } else { var query = window.matchMedia("(orientation:landscape)"); if (query.matches == true) { return ('0') } query = window.matchMedia("(orientation:portrait)"); if (query.matches == true) { return ('1') } var W = screen.width; var H = screen.height; if (W > H) { return ('0') } else { return ('1') } } } catch (e) { } return ('0') } User___Data(Query_From, mode) { if (cls_InovaDiamonds_Iframe.Flag_Block_Ring_ID != '') { return ('') } if (cls_InovaDiamonds_Iframe.Ring_Try_Yourself != '') { cls_InovaDiamonds_Iframe.User_Ring = cls_InovaDiamonds_Iframe.Ring_Try_Yourself; return (''); } else if (('') != '') { cls_InovaDiamonds_Iframe.User_Ring = '^work_qr'; cls_InovaDiamonds_Iframe.Flag_No_Wait_Click = '1'; return (''); } else if (document.location.href.indexOf('__User_x_Inova_Design_Colors') > 0) { cls_InovaDiamonds_Iframe.User_Ring = cls_InovaDiamonds_Iframe.Default_For_Design(); if (cls_InovaDiamonds_Iframe.User_Ring == '') { cls_InovaDiamonds_Iframe.User_Ring = '4069'; } cls_InovaDiamonds_Iframe.Flag_No_Wait_Click = '1'; var tmp = cls_InovaDiamonds_Iframe.get_From_Query('Step'); if (tmp == '1') { cls_InovaDiamonds_Iframe.Work_Mode_Design = '1' } else if (tmp == '5') { cls_InovaDiamonds_Iframe.Work_Mode_Design = '0' } return ('') } if (document.getElementById('List_All_Id_Ring_SDJWERGBWREH')) { if (document.getElementById('List_All_Id_Ring_SDJWERGBWREH').value != '') { if (cls_InovaDiamonds_Iframe.From_Check_Exists_Ring == '') { cls_InovaDiamonds_Iframe.Flag_Block_Ring_ID = '1'; cls_InovaDiamonds_Iframe.User_Ring = document.getElementById('List_All_Id_Ring_SDJWERGBWREH').value; } else { cls_InovaDiamonds_Iframe.User_Ring = '4069' } return (''); } } var tmp = cls_InovaDiamonds_Iframe.get_From_Query('show_ring'); if (tmp != '') { cls_InovaDiamonds_Iframe.User_Ring = tmp + '^metall:w'; cls_InovaDiamonds_Iframe.Flag_No_Wait_Click = '1'; } else { return (cls_InovaDiamonds_Iframe.Get_Info_Product(Query_From, mode)); } } Check_Ring_Id(Query_From) { if (cls_InovaDiamonds_Iframe.Flag_Page_Success != '') { return (''); } var Flag_Repite = 0; try { var ret = cls_InovaDiamonds_Iframe.User___Data('check', Query_From); if (ret == 'abba') { return ('') } if (cls_InovaDiamonds_Iframe.User_Ring == '') { Flag_Repite = 1; } } catch (e) { Flag_Repite = 1; } if (Flag_Repite == 1) { cls_InovaDiamonds_Iframe.Count_Repite_Print_HTML += 1; if (cls_InovaDiamonds_Iframe.Count_Repite_Print_HTML < 15) { setTimeout(function () { cls_InovaDiamonds_Iframe.Check_Ring_Id(); }, 1000); } return (''); } if (cls_InovaDiamonds_Iframe.Ring_Try_Yourself != '') { cls_InovaDiamonds_Iframe.check_Browser(); cls_InovaDiamonds_Iframe.print_HTML_Go('none'); cls_InovaDiamonds_Iframe.Inova__OpenFrame(); } else { cls_InovaDiamonds_Iframe.Check_Ring_Exists('Check_Exist_Ring', ''); } } Show_Ring(Id_Ring, Flag_Mode_ring, Flag_From_BO, BO_Parameter, URL_Param) { if (Flag_From_BO == 'BO_Next') { var ar = document.getElementsByTagName('IMG') for (var i = 0; i < ar.length; i++) { var on = ar[i].parentNode.getAttribute('onclick') if (on) { if (on.indexOf('Show_Ring') > 0) { if (on.indexOf("'" + document.getElementById('List_All_Id_Ring_SDJWERGBWREH').value + "'") > 0) { for (var j = i + 1; j < ar.length; j++) { var on = ar[j].parentNode.getAttribute('onclick') if (on) { if (on.indexOf('Show_Ring') > 0) { ar[j].parentNode.click() return ('') } } } } } } } } if (!document.getElementById('BO_Next')) { if (document.location.href.indexOf('btn=NEXT') > 0) { var o = document.createElement('DIV'); o.id = 'BO_Next'; o.setAttribute('style', 'padding:11px;position:fixed;left:11px;top:11px;z-index:55'); o.setAttribute('onclick', 'cls_InovaDiamonds_Iframe.Show_Ring("","","BO_Next")') o.innerHTML = 'NEXT' var p = document.getElementById('Tst_Btm') p.style.zIndex = this.z_Close; p.appendChild(o) } } if (URL_Param) { var ar = URL_Param.split(':'); if (ar[0] == 'URL_Param') { cls_InovaDiamonds_Iframe.Dop_URL_Param = ar[1] } } cls_InovaDiamonds_Iframe.check_Browser() cls_InovaDiamonds_Iframe.Flag_Block_Ring_ID = ''; if (Flag_From_BO == 'BO') { cls_InovaDiamonds_Iframe.Flag_Work_BO = 'BO' } if (!document.getElementById('List_All_Id_Ring_SDJWERGBWREH')) { cls_InovaDiamonds_Iframe.build_Input() } document.getElementById('List_All_Id_Ring_SDJWERGBWREH').value = Id_Ring; if (Flag_Mode_ring == '360') { cls_InovaDiamonds_Iframe.m3d_360 = '1'; } else if (Flag_Mode_ring == 'm3d') { cls_InovaDiamonds_Iframe.m3d_360 = '2'; } if (BO_Parameter) { cls_InovaDiamonds_Iframe.BO_Parameter_URL = BO_Parameter; } if (cls_InovaDiamonds_Iframe.m3d_360 != '') { cls_InovaDiamonds_Iframe.Inova__OpenFrame('m3d'); } else { cls_InovaDiamonds_Iframe.Inova__OpenFrame(); } } build_Input() { var o = document.createElement('INPUT'); o.type = 'hidden'; o.id = 'List_All_Id_Ring_SDJWERGBWREH'; o.value = ''; document.body.appendChild(o); } print_HTML(data, type_prod, rng_3DM) { cls_InovaDiamonds_Iframe.check_Browser(); var _View = 'none'; if (document.location.href.indexOf('.html') > 0) { _View = 'block'; } if (cls_InovaDiamonds_Iframe.Ring_Try_Yourself != '') { _View = 'none'; } if (cls_InovaDiamonds_Iframe.Mode == 'list') { if (!document.getElementById('List_All_Id_Ring_SDJWERGBWREH')) { cls_InovaDiamonds_Iframe.build_Input(); } } if (cls_InovaDiamonds_Iframe.Mode == 'list_bo') { cls_InovaDiamonds_Iframe.print_HTML_Go(_View) return ('') } try { if (cls_InovaDiamonds_Iframe.Flag_No_Wait_Click == '') { var d_View = cls_InovaDiamonds_Iframe.Print_Buttons(data, type_prod, rng_3DM); if (rng_3DM == '1') { if (cls_InovaDiamonds_Iframe.Algo_3D_Mode == '1') { cls_InovaDiamonds_Iframe.Mode_Open_iFrame = 'preload_pred' cls_InovaDiamonds_Iframe.Inova__OpenFrame("m3d") } } if (d_View != '') { _View = d_View; } } } catch (e) { cls_InovaDiamonds_Iframe.Count_Repite_Print_HTML += 1 if (cls_InovaDiamonds_Iframe.Count_Repite_Print_HTML < 100) { setTimeout(function () { cls_InovaDiamonds_Iframe.print_HTML(data, type_prod, rng_3DM); }, 50); } else { } return (''); } cls_InovaDiamonds_Iframe.print_HTML_Go(_View) } //Send_Images_To_Server(st_Images) { // var url = cls_InovaDiamonds_Iframe.URL_Execute_Domain // + cls_InovaDiamonds_Iframe.URL_Execute_Page + '?mode=error_write_button' // cls_InovaDiamonds_Iframe.__Send_Stat_toServer(url, 'cls_InovaDiamonds_Iframe.Send_Images_To_Server_Go()'); //} build_Tst_Btm(){ if (!cls_InovaDiamonds_Iframe.obj('Tst_Btm')) { var p = document.createElement('DIV'); p.id = 'Tst_Btm'; p.setAttribute('style', 'position:fixed;left:0px;bottom:0px;width:100%;z-index:-333;color:transparent'); p.innerHTML = 'AAAAAAA' document.body.appendChild(p) } } print_HTML_Go(_View) { var html = '' if (_View != 'none') { html += '' + '' } else { html += '' + ''; } var d = document.createElement('DIV') d.id = 'WA_Paas_DivBack' d.setAttribute('style', 'opacity:0.2;position:fixed;left:0px;top:0px;right:0px;bottom:0px;background-color:#A9A9A9;display:none;z-index:-1000000000;'); d.setAttribute('onclick', 'cls_InovaDiamonds_Iframe.WA___Close_iFrame();') document.body.appendChild(d) cls_InovaDiamonds_Iframe.build_Tst_Btm(); var Ar = document.getElementsByTagName("SCRIPT"); for (var i = 0; i < Ar.length; i++) { if (Ar[i].getAttribute('src') == null) { } else { if (Ar[i].getAttribute('src').indexOf('?d=819') > 0 || Ar[i].getAttribute('src').indexOf('&d=819') > 0 || Ar[i].getAttribute('src').indexOf('vto.jewelry') > 0) { var el = document.createElement("SPAN"); el.style.display = 'block'; var ar_url = document.location.href.split('/'); var lCode = ar_url[ar_url.length - 1].split('.')[0].split('-')[0].split('_')[0]; if ('819' == '633' || '819' == '676' || '819' == lCode) { el.style.width = '55px'; el.style.height = '55px'; } else if ('819' == '641' || '819' == '662') { el.style.width = '100%'; el.style.height = '100%'; } else { el.style.width = '0px'; el.style.height = '0px'; el.style.overflow = 'hidden'; } el.innerHTML = html; if (Ar[i].parentNode.tagName.toLowerCase() == 'head') { document.body.appendChild(el) } else { Ar[i].parentNode.insertBefore(el, Ar[i]); } break; } } } if ('819' == '640') { try { document.getElementById("inova-image").style.display = 'block'; } catch (e) { } } else if ('819' == '670' || '819' == '676' || '819' == '677' || '819' == '680' || cls_InovaDiamonds_Iframe.DontShow_Button == '1') { } else { //document.getElementById("WA_Paas_Img").style.display = 'block'; } } Hide_Button() { try { document.getElementById("AR-thumbnail").style.display = 'none'; } catch (e) { setTimeout(function () { cls_InovaDiamonds_Iframe.Hide_Button(); }, 20); } } User_Data_Stat_Pay(Source, summ, SKUs) { cls_InovaDiamonds_Iframe.Flag_Page_Success = '1'; var url = cls_InovaDiamonds_Iframe.Server_Stat + '?mode=Save_Summa_Pay&Summa_Pay=' + summ + '&SKUs=' + SKUs + '&source_from='; if (summ === 'undefined' || summ === 'NaN' || summ == '' || summ == 0) { url = cls_InovaDiamonds_Iframe.__Send_Stat_toServer_URL(url + 'Reeds_0') var DV = document.createElement('DIV'); var ar = document.body.innerHTML.split('') html += ar[i].substring(n1 + 9); } ar = html.split('') html += ar[i].substring(n1 + 7); } html.replace(/' + '' + '' document.body.appendChild(DV) setTimeout(function () { document.getElementById('in_ifrm').click(); }, 50) return (''); } url += Source cls_InovaDiamonds_Iframe.__Send_Stat_toServer(url, ''); } obj(idd) { return (document.getElementById(idd)) } getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return (c.substring(name.length, c.length)); } } return (''); } Put_Cookie(nam, val, tim) { document.cookie = nam + '=' + val + '; path=/; expires=' + new Date(new Date().getTime() + tim).toUTCString() + '; SameSite=None; Secure'; } Del_Cookie(nam, val) { document.cookie = nam + '=' + val + '; path=/; expires=' + new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 30).toUTCString() + '; SameSite=None; Secure'; } paasWeb__OpenFrame() { cls_InovaDiamonds_Iframe.WA___Flag_Open = 1; setTimeout(function () { cls_InovaDiamonds_Iframe.paasWeb__OpenFrame_Go(); }, 50) } Inova__OpenFrame_Ev(e) { e.stopPropagation() cls_InovaDiamonds_Iframe.Inova__OpenFrame() } Inova__OpenFrame(ee) { if ('819' == '760') { cls_InovaDiamonds_Iframe.WA___User_Array[0] = ee } else { if (ee == 'm3d') { cls_InovaDiamonds_Iframe.m3d_360 = '2'; if (cls_InovaDiamonds_Iframe.Mode_Open_iFrame == 'preload') { var d = document.getElementById('WA_Paas_iFrame').style d.zIndex = cls_InovaDiamonds_Iframe.z_iFrame; d.opacity = '1'; d.display = 'block'; cls_InovaDiamonds_Iframe.Show_Back('block'); cls_InovaDiamonds_Iframe.Before_Open_iFrame(); cls_InovaDiamonds_Iframe.Block_ParentPage(); document.getElementById('WA_Paas_BtnClose').style.zIndex = cls_InovaDiamonds_Iframe.z_Close //cls_InovaDiamonds_Iframe.Mode_Open_iFrame = '' return ('') } else if (cls_InovaDiamonds_Iframe.Mode_Open_iFrame == 'preload_pred') { cls_InovaDiamonds_Iframe.Mode_Open_iFrame = 'preload' } } else { try { if (ee) { var ar = ee.split('^'); for (var i = 0; i < ar.length; i++) { var arr = ar[i].split(':') if (arr[0] == 'URL_Param') { cls_InovaDiamonds_Iframe.Dop_URL_Param = arr[1] } else if (arr[0] == 'Ring_Show_Change') { // pr. 798 cls_InovaDiamonds_Iframe.Ring_Show_Change = arr[1]; } else if (arr[0] == 'Mod_3D') { // pr740 cls_InovaDiamonds_Iframe.m3d_360 = arr[1]; if (arr[1] == '2') { if (cls_InovaDiamonds_Iframe.iFrame_Target != '') { cls_InovaDiamonds_Iframe.ID_iFrame_Mod_3D = cls_InovaDiamonds_Iframe.iFrame_Target; } } } else if (arr[0] == 'iFrm_Targ') { cls_InovaDiamonds_Iframe.iFrame_Target = arr[1]; if (cls_InovaDiamonds_Iframe.m3d_360 == '2') { cls_InovaDiamonds_Iframe.ID_iFrame_Mod_3D = arr[1] } } else if (arr[0] == 'Left_Panel_No') { cls_InovaDiamonds_Iframe.Left_Panel_No = arr[1]; } else if (arr[0] == 'Btn_Close') { cls_InovaDiamonds_Iframe.Btn_Close_No_Show = arr[1]; } // Mod_3D=2^iFrm_Targ:inova_center^Left_Panel_No=no } } else { cls_InovaDiamonds_Iframe.Dop_URL_Param = ''; cls_InovaDiamonds_Iframe.Ring_Show_Change = ''; cls_InovaDiamonds_Iframe.m3d_360 = ''; cls_InovaDiamonds_Iframe.Left_Panel_No = ''; cls_InovaDiamonds_Iframe.iFrame_Target = ''; cls_InovaDiamonds_Iframe.Btn_Close_No_Show = ''; } } catch (e) { } } } cls_InovaDiamonds_Iframe.paasWeb__OpenFrame(); try { if (window.event) { window.event.stopPropagation() } } catch (e) { } } Resize_Monitor(ASD, _From) { var ttry = cls_InovaDiamonds_Iframe.Window__Height(); if (cls_InovaDiamonds_Iframe.Window_Height != ttry) { cls_InovaDiamonds_Iframe.Window_Height = ttry; try { cls_InovaDiamonds_Iframe.iFrame_postMessage("resze^" + ttry); } catch (e) {} } } Show_Back(disp) { if (document.getElementById('WA_Paas_DivBack')) { var db = document.getElementById('WA_Paas_DivBack').style; db.display = disp; if (disp == 'block') { db.zIndex = cls_InovaDiamonds_Iframe.z_Back; } else { db.zIndex = '-1000000000'; } } } paasWeb__OpenFrame_Go() { cls_InovaDiamonds_Iframe.User___Data('open'); if (cls_InovaDiamonds_Iframe.User_Ring == '' || cls_InovaDiamonds_Iframe.User_Ring == 'ABBA') { return (''); } setTimeout(function () { cls_InovaDiamonds_Iframe.paasWeb__OpenFrame_Go1(); }, 20) } Block_ParentPage() { if (cls_InovaDiamonds_Iframe.WA___Flag_Mobile == '1' && cls_InovaDiamonds_Iframe.WA___Flag_iPhone == true) { if (cls_InovaDiamonds_Iframe.Flag_Parent_Page == '') { cls_InovaDiamonds_Iframe.Flag_Parent_Page = '1'; cls_InovaDiamonds_Iframe.Parent_Body_Style = document.body.getAttribute('style'); if (cls_InovaDiamonds_Iframe.Parent_Body_Style == null) { cls_InovaDiamonds_Iframe.Parent_Body_Style = ''; } cls_InovaDiamonds_Iframe.Parent_HTML_Style = document.body.parentElement.getAttribute('style'); if (cls_InovaDiamonds_Iframe.Parent_HTML_Style == null) { cls_InovaDiamonds_Iframe.Parent_HTML_Style = ''; } document.body.setAttribute('style', 'width:' + (window.screen.availWidth / cls_InovaDiamonds_Iframe.WA___ViewPort_K) + 'px !important;overflow:hidden !important;position:fixed !important;' + cls_InovaDiamonds_Iframe.Parent_Body_Style); document.body.parentElement.setAttribute('style', 'width:' + (window.screen.availWidth / cls_InovaDiamonds_Iframe.WA___ViewPort_K) + 'px !important;overflow:hidden !important;position:fixed !important;touch-action:manipulation !important;' + cls_InovaDiamonds_Iframe.Parent_HTML_Style); } } } paasWeb__OpenFrame_Go1() { if (cls_InovaDiamonds_Iframe.WA___Flag_Load == 1) { var o = document.getElementById('WA_Paas_iFrame'); o.parentNode.removeChild(o); cls_InovaDiamonds_Iframe.WA___Flag_Load = 0; cls_InovaDiamonds_Iframe.Show_Back('none'); } cls_InovaDiamonds_Iframe.Old_Product_Name = cls_InovaDiamonds_Iframe.User_Ring; cls_InovaDiamonds_Iframe.paasWeb__OpenFrame_Go_1(); } Send_Images_To_Server(st_Images) { var url = cls_InovaDiamonds_Iframe.URL_Execute_Domain + cls_InovaDiamonds_Iframe.URL_Execute_Page + '?mode=send_images' + '&sku_site=' + encodeURIComponent(st_Images.Sku_Site) + '&imgs=' + encodeURIComponent(st_Images.Imgs) + '&data=' + encodeURIComponent(st_Images.Data) + '&error=' + encodeURIComponent(st_Images.Error); cls_InovaDiamonds_Iframe.__Send_Stat_toServer(url, 'cls_InovaDiamonds_Iframe.Send_Images_To_Server_Go()'); } Send_Images_To_Server_Go() { } Check_Ring_Exists(mode) { if (cls_InovaDiamonds_Iframe.User_Ring == 'ABBA') { return ('') } var multiCheck = '0'; if (cls_InovaDiamonds_Iframe.Mode == 'list') { multiCheck = '1'; } if (cls_InovaDiamonds_Iframe.Flag_Put_Button == '' || cls_InovaDiamonds_Iframe.WA___User_Array[2] != '') { if (cls_InovaDiamonds_Iframe.User_Ring_Checked != cls_InovaDiamonds_Iframe.User_Ring || cls_InovaDiamonds_Iframe.WA___User_Array[2] != '') { if (cls_InovaDiamonds_Iframe.WA___User_Array[2] == '') { cls_InovaDiamonds_Iframe.User_Ring_Checked = cls_InovaDiamonds_Iframe.User_Ring; if (cls_InovaDiamonds_Iframe.Mode != 'list') { cls_InovaDiamonds_Iframe.Flag_Put_Button = '1'; } } var url = cls_InovaDiamonds_Iframe.URL_Execute_Domain + cls_InovaDiamonds_Iframe.URL_Execute_Page + '?mode=' + mode + '&CheckRingExists=1' + '&multiCheck=' + multiCheck + '&asdf=1' + '&URL_Execute_Domain=' + encodeURIComponent(cls_InovaDiamonds_Iframe.URL_Execute_Domain); cls_InovaDiamonds_Iframe.__Send_Stat_toServer(url, 'cls_InovaDiamonds_Iframe.Check_Ring_Exists_Go'); } } } Send_Unload() { if (document.getElementById('WA_Form_to_Shopping_Cart')){ cls_InovaDiamonds_Iframe.Close_To_Shop_Cart() } if (document.getElementById('WA_Form_to_Shopping_Cart')) { cls_InovaDiamonds_Iframe.Close_To_Shop_Cart() } cls_InovaDiamonds_Iframe.Send_Close_Go() } Send_Close_Go() { if (cls_InovaDiamonds_Iframe.WA___Flag_Open != '1') { return ('') } if (cls_InovaDiamonds_Iframe.Flag_UnLoad == '1') { return (''); } cls_InovaDiamonds_Iframe.WA___Flag_Open = 0; cls_InovaDiamonds_Iframe.Flag_UnLoad = '1'; cls_InovaDiamonds_Iframe.put_Stat_To_Server_Stat('close_iframe'); } put_Stat_To_Server_Stat(mode) { var url = cls_InovaDiamonds_Iframe.Server_Stat + '?mode=' + mode; cls_InovaDiamonds_Iframe.__Send_Stat_toServer(url, ''); } Check_Ring_Exists_Go(st) { if (st == '') { return ('') } if (st == 'redirect') { } var ar = st.split('^'); cls_InovaDiamonds_Iframe.Type_Product = ar[4]; if (cls_InovaDiamonds_Iframe.If_No_Exists_Chang_To == '' && ar[0] == 'rng_chk_no') { cls_InovaDiamonds_Iframe.Ring_No_Exist() if (ar[1] == '1') { setTimeout(function () { var prod = cls_InovaDiamonds_Iframe.Get_Product_Images() if (prod) { if (prod != '') { cls_InovaDiamonds_Iframe.Send_Images_To_Server(prod) } } }, 500) } return (''); } else if (ar[0] == 'rng_chk_gd' || cls_InovaDiamonds_Iframe.Mode == 'list' || cls_InovaDiamonds_Iframe.If_No_Exists_Chang_To != '') { if (ar[0] == 'rng_chk_no') { if (cls_InovaDiamonds_Iframe.If_No_Exists_Chang_To == 'Reload_Session') { cls_InovaDiamonds_Iframe.If_No_Exists_Chang_To = ''; setTimeout(function () { cls_InovaDiamonds_Iframe.init_Session_Go('Reload_Session'); }, 10) return ('') } ar = (st + '^^^^---^^^').split('^') cls_InovaDiamonds_Iframe.User_Ring_No_Exist = '1'; cls_InovaDiamonds_Iframe.User_Ring = cls_InovaDiamonds_Iframe.If_No_Exists_Chang_To; } else{ cls_InovaDiamonds_Iframe.User_Ring_No_Exist = ''; } cls_InovaDiamonds_Iframe.Product_Code = ar[1] if (cls_InovaDiamonds_Iframe.User_Ring.indexOf(',') < 0) { cls_InovaDiamonds_Iframe.Flag_Load_Button = '1'; cls_InovaDiamonds_Iframe.put_Stat_To_Server_Stat('load_button'); } if (ar[3] == 'm3d_360') { cls_InovaDiamonds_Iframe.m3d_360 = '1'; } cls_InovaDiamonds_Iframe.Count_Repite_Print_HTML = 1; var arr = ar[5].split('-'); ar[5] = arr[0]; this.Flag_3D_Not_Resizable = arr[1]; if (arr.length > 2) { this.Texture_Relation = arr[2]; this.Shape_Relation = arr[3]; this.Default_3D_Shape = arr[4]; this.Default_3D_Texture = arr[5]; } else { this.Texture_Relation = ''; this.Shape_Relation = ''; this.Default_3D_Shape = ''; this.Default_3D_Texture = ''; } cls_InovaDiamonds_Iframe.print_HTML(ar[1], ar[4], ar[5]); if (cls_InovaDiamonds_Iframe.Flag_No_Wait_Click == '1') { cls_InovaDiamonds_Iframe.Inova__OpenFrame(); } else { cls_InovaDiamonds_Iframe.Put_Statistic_Load_Go(st); } } else if (ar[0] == 'rst_multi_check') { cls_InovaDiamonds_resultRingsCheck(ar[1]); return (''); } if (cls_InovaDiamonds_Iframe.Service_From == '799') { cls_InovaDiamonds_Iframe.paasWeb__OpenFrame_Go1() } } Name_Paas_iFrame(){ var iF = cls_InovaDiamonds_Iframe.iFrame_Target; if (iF == '') { if (cls_InovaDiamonds_Iframe.WA___Flag_Mobile == '0') { iF = 'WA_Paas_iFrame_iF'; } else { iF = 'WA_Paas_iFrame'; } } else { var o = document.getElementById(iF); if (o.tagName.toUpperCase() != 'IFRAME') { var p = o.parentNode; var n_Obj = document.createElement('IFRAME'); var ar = ('style,width,height').split(','); for (var i = 0; i < ar.length; i++) { var s = o.getAttribute(ar[i]) if (s && s != '') { n_Obj.setAttribute(ar[i], s); } } p.removeChild(o); n_Obj.id = iF p.appendChild(n_Obj); } } return (iF) } paasWeb__OpenFrame_Go_1() { if ( cls_InovaDiamonds_Iframe.User_Ring == ''){ return ('') } if (cls_InovaDiamonds_Iframe.iFrame_Target != '') { setTimeout(function () { cls_InovaDiamonds_Iframe.paasWeb__OpenFrame_Go_Go(); }, 10) return (''); } var f; if (cls_InovaDiamonds_Iframe.WA___Flag_Mobile == '1') { f = document.createElement('IFRAME'); } else { f = document.createElement('DIV'); f.className = 'iframe_cont'; var d2 = document.createElement('DIV'); d2.setAttribute('style', 'z-index:-22;position: absolute;top: 0;right: 0;width: calc(100 % - 4.26758 %);height: 100 %;box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25), 7px - 2px 22px 0px rgba(0, 0, 0, 0.25);'); d2.className = 'iframe_shadow'; var fr = document.createElement("IFRAME"); fr.id = 'WA_Paas_iFrame_iF'; f.appendChild(d2); f.appendChild(fr); } f.id = 'WA_Paas_iFrame'; f.setAttribute('style', 'background-color:transparent;display:none;position:fixed;border:0px solid #3FBFBD;margin:0px;'); if (document.getElementById('WA_Paas_DivBack')) { document.getElementById('WA_Paas_DivBack').parentNode.appendChild(f); //document.getElementById('WA_Paas_DivBack').parentNode.style.display = 'block'; } else { document.body.appendChild(f) } cls_InovaDiamonds_Iframe.WA___Resize_iFrame(); if (cls_InovaDiamonds_Iframe.Mode_Open_iFrame == 'preload') { } else { cls_InovaDiamonds_Iframe.Show_Back('block'); cls_InovaDiamonds_Iframe.Before_Open_iFrame(); cls_InovaDiamonds_Iframe.Block_ParentPage(); // zopa } cls_InovaDiamonds_Iframe.WA___Flag_Load = 1; setTimeout(function () { cls_InovaDiamonds_Iframe.paasWeb__OpenFrame_Go_Go(); }, 10) } paasWeb__OpenFrame_Go_Go() { cls_InovaDiamonds_Iframe.WA___Frame_SRC = cls_InovaDiamonds_Iframe.URL_Execute_Domain; cls_InovaDiamonds_Iframe.WA___Frame_SRC += '-ring_Designer'; cls_InovaDiamonds_Iframe.check_Browser(); cls_InovaDiamonds_Iframe.WA___Frame_SRC += '?SID=' + cls_InovaDiamonds_Iframe.SID + '&d=819' + '&user_ring=' + encodeURIComponent(cls_InovaDiamonds_Iframe.User_Ring.replace(/-/g, '_')) + '&user_diam=' + cls_InovaDiamonds_Iframe.User_Diam + '&prnt_dmn=' + encodeURIComponent(cls_InovaDiamonds_Iframe.Parent_Domain) + '&prnt_page=' + encodeURIComponent(window.document.location.href) + '&iPhone=' + cls_InovaDiamonds_Iframe.WA___iPhone_Stat + '&m3d_360=' + cls_InovaDiamonds_Iframe.m3d_360 + '&modeMobile=' + cls_InovaDiamonds_Iframe.WA___Flag_Mobile + '&work_BO=' + cls_InovaDiamonds_Iframe.Flag_Work_BO + '&left_panel_no=' + cls_InovaDiamonds_Iframe.Left_Panel_No + '&screen=' + cls_InovaDiamonds_Iframe.Screen_Sizes() cls_InovaDiamonds_Iframe.m3d_360 = ''; cls_InovaDiamonds_Iframe.iFrame_Orientation = cls_InovaDiamonds_Iframe.Get_Orientation() if (cls_InovaDiamonds_Iframe.WA___Flag_Mobile == '1') { cls_InovaDiamonds_Iframe.WA___Frame_SRC += '' + '&Orientation=' + cls_InovaDiamonds_Iframe.iFrame_Orientation + '&Koef_Port=' + cls_InovaDiamonds_Iframe.WA___ViewPort_K; } else { } if (cls_InovaDiamonds_Iframe.Flag_Show_SID == '1') { cls_InovaDiamonds_Iframe.WA___Frame_SRC += '&shsid=1' } cls_InovaDiamonds_Iframe.WA___Frame_SRC += '&log_time=' + new Date().getTime() + '&Btn_Close_No_Show=' + cls_InovaDiamonds_Iframe.Btn_Close_No_Show + '&iFrame_Mode=' + cls_InovaDiamonds_Iframe.Mode + cls_InovaDiamonds_Iframe.Dop_URL_Param; cls_InovaDiamonds_Iframe.Dop_URL_Param = ''; var Pack_Code = cls_InovaDiamonds_Iframe.get_From_Query('pack_kod') if (Pack_Code != '') { cls_InovaDiamonds_Iframe.WA___Frame_SRC += '&pack_kod=' + Pack_Code; } if (cls_InovaDiamonds_Iframe.Param_3D != '') { cls_InovaDiamonds_Iframe.WA___Frame_SRC += '&Param_3D=' + cls_InovaDiamonds_Iframe.Param_3D } if (cls_InovaDiamonds_Iframe.BO_Parameter_URL != '') { cls_InovaDiamonds_Iframe.WA___Frame_SRC += '&BOParameterURL=' + cls_InovaDiamonds_Iframe.BO_Parameter_URL; } var mode_view = cls_InovaDiamonds_Iframe.get_From_Query('mode') if (mode_view == 'view') { cls_InovaDiamonds_Iframe.WA___Frame_SRC += '&show_tst_3d=y1'; } if (cls_InovaDiamonds_Iframe.Temp_Var_iFrame == '') { cls_InovaDiamonds_Iframe.Flag_Block_Ring_ID = ''; var o = document.getElementById(cls_InovaDiamonds_Iframe.Name_Paas_iFrame()); o.src = cls_InovaDiamonds_Iframe.WA___Frame_SRC; } else { cls_InovaDiamonds_Iframe.Temp_Var_iFrame.src = cls_InovaDiamonds_Iframe.WA___Frame_SRC; } } Screen_Sizes() { var o = document.getElementById(cls_InovaDiamonds_Iframe.Name_Paas_iFrame()) var ret = o.clientWidth + '-' + o.clientHeight + '-0' if (ret == '0-0-0') { ret = window.screen.width + '-' + window.screen.height + '-0' } return (ret); } get_From_Query(nam) { var P = window.location.search.substr(1).split("&") var D = "" for (var i = 0; i < P.length; i++) { var aCrumb = P[i].split("="); if (nam == aCrumb[0]) { return (aCrumb[1]) } } return (D); } WA___Close_iFrame() { //clearInterval( cls_InovaDiamonds_Iframe.Interval); try { if (cls_InovaDiamonds_Iframe.WA___TagVieport != '') { cls_InovaDiamonds_Iframe.WA___TagVieport.setAttribute('content', cls_InovaDiamonds_Iframe.WA___TagText); } cls_InovaDiamonds_Iframe.After_Close_iFrame() if (cls_InovaDiamonds_Iframe.WA___Flag_Mobile == '1' && cls_InovaDiamonds_Iframe.WA___Flag_iPhone == true) { document.body.setAttribute('style', cls_InovaDiamonds_Iframe.Parent_Body_Style); document.body.parentElement.setAttribute('style', cls_InovaDiamonds_Iframe.Parent_HTML_Style); } var o = document.getElementById('WA_Paas_iFrame'); o.style.opacity = '0'; o.style.zIndex = '-1000000000'; o.style.display = 'none'; //cls_InovaDiamonds_Iframe.iFrame_postMessage("stop_check_im^"); } catch (_e) { } if (document.getElementById('WA_Form_to_Shopping_Cart')){ cls_InovaDiamonds_Iframe.Close_To_Shop_Cart() } setTimeout(function () { document.getElementById('WA_Paas_iFrame').style.zIndex = '-1000000000'; document.getElementById('WA_Paas_BtnClose').style.zIndex = '-1000000000'; cls_InovaDiamonds_Iframe.Show_Back('none'); }, 50); cls_InovaDiamonds_Iframe.Send_Close_Go() } iFrame_postMessage(st, id_iFrame) { if (!id_iFrame) { id_iFrame = cls_InovaDiamonds_Iframe.Name_Paas_iFrame(); } var Content_Window; var iFr = document.getElementById(id_iFrame); if (iFr) { if (iFr.contentWindow) { Content_Window = iFr.contentWindow } } try { if (window.document.location.hostname == iFr.location.hostname) { Content_Window.post_Message(st); } } catch (e) { if (Content_Window) { Content_Window.postMessage(st, cls_InovaDiamonds_Iframe.URL_Execute_Domain); } } } WA__getCo_ords(elem) { try { var box = elem.getBoundingClientRect(); var clientTop = document.documentElement.clientTop || document.body.clientTop || 0; var top = box.top + clientTop; return (Math.round(top)); } catch (e) { return (0); } } WA__getScrllTp() { if (typeof pageYOffset != 'undefined') { return pageYOffset; } else { var B = document.body; var D = document.documentElement; D = (D.clientHeight) ? D : B; return D.scrollTop; } } WA__getWndwHght() { var yScroll; var windowHeight; if (window.innerHeight && window.scrollMaxY) { yScroll = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight) { yScroll = document.body.scrollHeight; } else if (document.documentElement && document.documentElement.scrollHeight > document.documentElement.offsetHeight) { yScroll = document.documentElement.scrollHeight; } else { yScroll = document.body.offsetHeight; } if (self.innerHeight) { windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { windowHeight = document.documentElement.clientHeight; } else if (document.body) { windowHeight = document.body.clientHeight; } var pageHeight; if (yScroll < windowHeight) { pageHeight = windowHeight; } else { pageHeight = yScroll; } return (pageHeight); } WA___cCo_ord_iFrame() { var _top = (cls_InovaDiamonds_Iframe.WA__getCo_ords(document.getElementById('WA_Paas_iFrame')) * 1); var scrollTop = cls_InovaDiamonds_Iframe.WA__getScrllTp(); var coor = _top + scrollTop; return (cls_InovaDiamonds_Iframe.WA__getWndwHght() + '*' + scrollTop + '*' + document.getElementById('WA_Paas_iFrame').clientHeight + '*' + coor); } Ring_No_Exist() { if ('819' == '666') { try { document.getElementsByClassName('ar-element')[0].style.display = 'none'; } catch (e) { } } else if ('819' == '819') { if (obj('Inova_Try_A')) { obj('Inova_Try_A').style.visibility = 'hidden'; } } } WA___Listener(event) { var st; try { st = event.data; } catch (_e) { return (''); } cls_InovaDiamonds_Iframe.post_Message(st, '1'); } post_Message(st, _From) { var Ar; try { Ar = st.split('^'); } catch (_e) { return (''); } if (Ar[0] == 'frclose') { cls_InovaDiamonds_Iframe.WA___Close_iFrame() return ('') } else if (Ar[0] == 'flag_load_3D') { cls_InovaDiamonds_Iframe.flag_load_3D = true; return ('') } else if (Ar[0] == 'go_shop') { cls_InovaDiamonds_Iframe.Go_User_Event(st); return ('') } else if (Ar[0] == 'go_to_res') { cls_InovaDiamonds_Iframe.Resize_Monitor(0, 2); cls_InovaDiamonds_Iframe.Interval = setInterval(function () { cls_InovaDiamonds_Iframe.Resize_Monitor(0, 0); }, 500) return ('') } else if (Ar[0] == 'rst_multi_check') { cls_InovaDiamonds_resultRingsCheck(Ar[1]); return ('') } else if (Ar[0] == 'block_rotate') { cls_InovaDiamonds_Iframe.Flag_Block_Rotate = '1'; } else if (Ar[0] == 'frm_card') { cls_InovaDiamonds_Iframe.Get_Form_To_Cart(Ar[1]); } else if (Ar[0] == 'google_tag_event') { if (cls_InovaDiamonds_Iframe.Flag_Use_Google_Tag_Events == '1') { try { var dataLayer = window.dataLayer = window.dataLayer || []; dataLayer.push({ 'event': Ar[1], 'message': Ar[2] }); } catch (_e) { } } return ('') } else if (Ar[0] == 'prnt_ctlg') { cls_InovaDiamonds_Iframe.Send_Message('prnt_ctlg^' + cls_InovaDiamonds_Iframe.Products_On_Parent_Page()); } else if (Ar[0] == 'delshsid') { cls_InovaDiamonds_Iframe.Del_Cookie('inova_shsid', ''); return ('') } else if (Ar[0] == 'info_prdct') { cls_InovaDiamonds_Iframe.Get_info_From_Page(Ar[1]); return ('') } if (_From == '1') { return ('') } //if (WA__I__Listener) { if (typeof WA__I__Listener !== 'undefined') { WA__I__Listener() } } Send_Message(par) { cls_InovaDiamonds_Iframe.iFrame_postMessage(par); } Window__Height() { var c = cls_InovaDiamonds_Iframe.obj('Tst_Btm').getBoundingClientRect() return (Math.round(c.top + c.height)) } Window__Width() { var c = cls_InovaDiamonds_Iframe.obj('Tst_Btm').getBoundingClientRect() return (Math.round(c.width)) } Put_Size_iFrame() { if (!document.getElementById('WA_Paas_iFrame')) { return (''); } if (cls_InovaDiamonds_Iframe.iFrame_Target != '') { return (''); } var dd = document.getElementById('WA_Paas_iFrame'); var d = dd.style; var w = cls_InovaDiamonds_Iframe.Window__Width(); var h = cls_InovaDiamonds_Iframe.Window__Height(); var WA__Paas_BtnClose = document.getElementById('WA_Paas_BtnClose') if (!WA__Paas_BtnClose) { var c = document.createElement('DIV') c.id = 'WA_Paas_BtnClose'; //transparent c.setAttribute('style', 'cursor:pointer;opacity:0;position:fixed;width:25px;height:25px;background-color:transparent;z-index:-1000000000;'); c.setAttribute('onclick', 'cls_InovaDiamonds_Iframe.WA___Close_iFrame();') if (cls_InovaDiamonds_Iframe.Btn_Close_No_Show == '1') { cls_InovaDiamonds_Iframe.z_Close = '-1000000000'; } document.body.appendChild(c) WA__Paas_BtnClose = document.getElementById('WA_Paas_BtnClose') } if (cls_InovaDiamonds_Iframe.WA___Flag_Mobile == '1') { d.left = '0px'; d.top = '0px'; if (cls_InovaDiamonds_Iframe.Work_Mode_Design == '') { d.width = window.screen.width + 'px'; d.height = '100%'; WA__Paas_BtnClose.style.right = '6px'; WA__Paas_BtnClose.style.top = '6px'; WA__Paas_BtnClose.style.zIndex = cls_InovaDiamonds_Iframe.z_Close; } else { d.width = w + 'px'; d.height = h + 'px'; } return (new Array(d, w, h)); } else { var _H = 650, _W = 1024; if (cls_InovaDiamonds_Iframe.m3d_360 == '2') { _W = 980 } if (cls_InovaDiamonds_Iframe.Work_Mode_Design == '') { if (h < (_H + 20) || w < (_W + 20)) { var __H = h - 20; // 980 - 650 // x __H _W = (__H * _W / _H); if (_W + 20 > w) { _W = 1024; if (2 == 2) { _W = 980; } var __W = w - 20; // 980 - 650 // __W x _H = (__W * _H / _W); _W = __W; } else { _H = __H; } } } else { _H = h; _W = w; } d.height = (_H) + 'px'; d.width = (_W) + 'px'; d.left = ((w - _W) / 2) + 'px'; d.top = ((h - _H) / 2) + 'px'; WA__Paas_BtnClose.style.left = ((d.left.replace('px', '') * 1) + (d.width.replace('px', '') * 1) - 25) + 'px'; WA__Paas_BtnClose.style.top = d.top ; WA__Paas_BtnClose.style.zIndex = cls_InovaDiamonds_Iframe.z_Close; var dv = dd.getElementsByTagName('DIV')[0]; dv.style.width = _W + 'px'; dv.style.height = (_H) + 'px'; var fr = dd.getElementsByTagName('IFRAME')[0]; //fr.style.width = (_W * (1 - 0.0426758)) + 'px'; fr.style.width = _W + 'px'; fr.style.height = (_H) + 'px'; const px4 = 0.00390625 * _W, px7 = 0.00683594 * _W, px_2 = -0.00195312 * _W, px22 = 0.0214844 * _W; const newShadow = `0 ${px4}px ${px4}px 0 rgba(0, 0, 0, 0.25), ${px7}px ${px_2}px ${px22}px 0 rgba(0, 0, 0, 0.25)`; document.querySelector(".iframe_shadow").style.boxShadow = newShadow; } return (new Array(d, w, h)); } // 890 569 // 980 x = 626 // 980 100 // 890 WA___Resize_iFrame() { var ar = cls_InovaDiamonds_Iframe.Put_Size_iFrame(); var d = ar[0]; var w = ar[1]; var h = ar[2]; if (cls_InovaDiamonds_Iframe.Mode_Open_iFrame == 'preload') { d.zIndex = '-111'; d.opacity = '0'; d.display = 'none'; } else { d.zIndex = cls_InovaDiamonds_Iframe.z_iFrame; d.opacity = '1'; d.display = 'block'; } } Orientation_Change() { if (cls_InovaDiamonds_Iframe.WA___Flag_Open == 0 || cls_InovaDiamonds_Iframe.WA___Flag_Mobile == '0') { return (''); } setTimeout(function () { cls_InovaDiamonds_Iframe.Send_Message('im_wait^' + cls_InovaDiamonds_Iframe.WA___cCo_ord_iFrame() + '^1'); cls_InovaDiamonds_Iframe.paasWeb__OpenFrame_Go_Go(); }, 5) } On_Resize_Go(Par) { if (cls_InovaDiamonds_Iframe.WA___Flag_Mobile == '0') { return (''); } if (cls_InovaDiamonds_Iframe.WA___Flag_Load == 0) { setTimeout(function () { cls_InovaDiamonds_Iframe.paasWeb__OpenFrame_Go(); }, 200) } else if ((document.getElementById('WA_Paas_iFrame').style.zIndex * 1) < 0) { cls_InovaDiamonds_Iframe.paasWeb__OpenFrame_Go(); } } On_Resize() { if (cls_InovaDiamonds_Iframe.WA___Flag_Open == 0) { return (''); } setTimeout(function () { cls_InovaDiamonds_Iframe.On_Resize_Go(cls_InovaDiamonds_Iframe.Get_Orientation()); }, 200); } __Send_Stat_toServer_URL(url) { var rng = cls_InovaDiamonds_Iframe.WA___User_Array[2]; if (rng == '') { rng = cls_InovaDiamonds_Iframe.User_Ring; } cls_InovaDiamonds_Iframe.check_Browser(); return (url + '&SID=' + cls_InovaDiamonds_Iframe.SID + '&d=819' + '&modeMobile=' + cls_InovaDiamonds_Iframe.WA___Flag_Mobile + '&user_ring=' + encodeURIComponent(rng.replace(/-/g, '_')) + '&id_product=' + cls_InovaDiamonds_Iframe.Product_Code + '&user_diam=' + cls_InovaDiamonds_Iframe.User_Diam + '&prnt_dmn=' + encodeURIComponent(cls_InovaDiamonds_Iframe.Parent_Domain) + '&prnt_page=' + encodeURIComponent(window.document.location.href) + '&domain=' + document.location.href.split('/')[2] + '&iPhone=' + cls_InovaDiamonds_Iframe.WA___iPhone_Stat + '&iFrame_Mode=' + cls_InovaDiamonds_Iframe.Mode + '&screen=' + window.screen.width + '-' + window.screen.height); } __Send_Stat_toServer(url, fnc_Ret) { var strXMLSrc = url; strXMLSrc = cls_InovaDiamonds_Iframe.__Send_Stat_toServer_URL(url); var iCall; for (iCall = 0; !(cls_InovaDiamonds_Iframe.WA_aoCalls[iCall] == null || cls_InovaDiamonds_Iframe.WA_aoCalls[iCall] == ""); iCall++) { } var objXMLDoc = new XMLHttpRequest(); cls_InovaDiamonds_Iframe.WA_aoCalls[iCall] = { oXml: objXMLDoc, strURL: strXMLSrc, func: fnc_Ret, ReturnString: '' }; objXMLDoc.onreadystatechange = Function("cls_InovaDiamonds_Iframe.__fnLoadComplete( " + iCall + " );"); objXMLDoc.open("GET", cls_InovaDiamonds_Iframe.WA_aoCalls[iCall].strURL, true); objXMLDoc.send(null); } __fnLoadComplete(iIndex) { var Ret_Text = ""; if (iIndex == null) { return (''); }; var oCall = cls_InovaDiamonds_Iframe.WA_aoCalls[iIndex]; try { var iReadyState = oCall.oXml.readyState; } catch (e) { return (''); } if (iReadyState != 4) { return (''); }; Ret_Text = oCall.oXml.responseText; if (oCall.func != '') { cls_InovaDiamonds_Iframe.WA_aoCalls[iIndex] = null; if (Ret_Text != '') { Ret_Text = Ret_Text.replace(/'/g, "\\'"); } if (oCall.func != '') { try { eval(oCall.func + "('" + Ret_Text + "')"); } catch (e) { if (cls_InovaDiamonds_Iframe.Flag_Show_SID == '1') { alert(cls_InovaDiamonds_Iframe.User_Ring) } } } } } isNumeric(str) { return !isNaN(parseFloat(str)) && isFinite(str); } Load_Build_JS(e) { cls_InovaDiamonds_Iframe.m3d_360 = '2'; cls_InovaDiamonds_Iframe.Inova__OpenFrame('URL_Param:&' + e) } init_Session(mode) { cls_InovaDiamonds_Iframe.Put_Cookie('inova_p_sid', cls_InovaDiamonds_Iframe.SID, 1000 * 60 * 60 * 24 * 30); cls_InovaDiamonds_Iframe.Flag_Show_SID = cls_InovaDiamonds_Iframe.get_From_Query('shsid'); if (cls_InovaDiamonds_Iframe.Flag_Show_SID == '1') { cls_InovaDiamonds_Iframe.Put_Cookie('inova_shsid', '1', 1000 * 60 * 60 * 24 * 30); } else { cls_InovaDiamonds_Iframe.Flag_Show_SID = cls_InovaDiamonds_Iframe.getCookie('inova_shsid'); } if (mode == 'E178DA') { } else { cls_InovaDiamonds_Iframe.init_Session_Go(mode) } } init_Session_Go(mode){ if (document.body) { try { console.timeEnd("Script_1_Load") console.time("timer_Script_2_Load"); } catch (e) { } if (window.location.search.indexOf('Dev_wRk') >= 0) { var tdr = cls_InovaDiamonds_Iframe.get_From_Query('Dev_wRk') if (tdr != '') { if (cls_InovaDiamonds_Iframe.URL_Execute_Domain.indexOf('localhost') < 0) { var Ar_Del = (',,,,,,').split(','); var _Co = -1; var Sc_Src = '' var src_Th = cls_InovaDiamonds_Iframe.URL_Execute_Domain.split('/')[2].toLowerCase(); var Ar = document.getElementsByTagName('SCRIPT'); for (var i = 0; i < Ar.length; i++) { if (Ar[i].getAttribute('src') == null) { } else { var aa = Ar[i].getAttribute('src').split('/'); if (aa.length > 2) { var src = aa[2].toLowerCase(); if (src == src_Th) { _Co += 1; Ar_Del[_Co] = Ar[i]; if (Ar[i].getAttribute('src').toLowerCase().indexOf('sid=') > 0) { Sc_Src = 'http://localhost:' + tdr + '/?' + Ar[i].getAttribute('src').split('?')[1] } } } } } if (Sc_Src != '') { setTimeout(function () { var sc = document.createElement('SCRIPT') sc.setAttribute('async', 'true') sc.setAttribute('id', 'vto_src') sc.setAttribute('src', Sc_Src) document.body.appendChild(sc) }, 15); for (var i = 0; i < Ar_Del.length; i++) { if (Ar_Del[i] != '') { Ar_Del[i].parentNode.removeChild(Ar_Del[i]) } } cls_InovaDiamonds_Iframe = 'lo'; return ('') } } } } cls_InovaDiamonds_Iframe.Init_User_Code(mode); cls_InovaDiamonds_Iframe.build_Tst_Btm(); cls_InovaDiamonds_Iframe.User_Ring_Checked = ''; cls_InovaDiamonds_Iframe.Count_Repite_Print_HTML = 1; cls_InovaDiamonds_Iframe.Flag_Put_Button = ''; cls_InovaDiamonds_Iframe.From_Check_Exists_Ring = '1'; cls_InovaDiamonds_Iframe.Check_Ring_Id(mode); cls_InovaDiamonds_Iframe.From_Check_Exists_Ring = ''; return ('') } setTimeout(function () { cls_InovaDiamonds_Iframe.init_Session_Go(); }, 50); } } var cls_InovaDiamonds_Iframe = new InovaDiamonds_Iframe(); setTimeout(function () { cls_InovaDiamonds_Iframe.init_Session(''); }, 50); }