if (typeof cls_InovaDiamonds_Iframe === 'undefined' || cls_InovaDiamonds_Iframe === 'lo') { class InovaDiamonds_Iframe { // 633 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 } // // function Get_Letter_Color(st) { var ret = ''; if (st.indexOf('white') == 0) { if (st.indexOf('yellow') > 0) { ret += 'y_w' } else if (st.indexOf('rose') > 0) { ret += 'r_w' } else { ret += 'w' } } else if (st.indexOf('yellow') == 0) { if (st.indexOf('white') > 0) { ret += 'w_y' } else if (st.indexOf('rose') > 0) { ret += 'r_y' } else { ret += 'y' } } else if (st.indexOf('rose') == 0) { if (st.indexOf('white') > 0) { ret += 'w_r' } else if (st.indexOf('yellow') > 0) { ret += 'y_r' } else { ret += 'r' } } else if (st.indexOf('plat') == 0) { ret += 'p' } if (ret.length > 0) { if (st.indexOf('14k') > 0) { ret += '-14' } else if (st.indexOf('18k') > 0) { ret += '-18' } else if (st.indexOf('9k') > 0) { ret += '-9' } else if (st.indexOf('21k') > 0) { ret += '-21' } } return (ret) } /* if (document.location.href.indexOf('633-0.html') >= 0 || document.location.href.indexOf('633.html') >= 0) { cls_InovaDiamonds_Iframe.User_Ring = 'YDHH16' cls_InovaDiamonds_Iframe.Param_3D = '"colors:y-14,r-14,w-18,y-18,r-18,p,w-14,^color_defa:y-14,^cuts:Round,Cushion,Oval,Pear,Princess,Radiant,Emerald,Asscher,Heart^cut_defa:Round"'; cls_InovaDiamonds_Iframe.m3d_360 = '2'; } else if (document.location.href.indexOf('633-1.html') >= 0) { cls_InovaDiamonds_Iframe.User_Ring = 'YDA-8' } else { */ if (document.location.href.indexOf('633-0.html') >= 0 || document.location.href.indexOf('633.html') >= 0) { cls_InovaDiamonds_Iframe.User_Ring = 'YDHH16' } else { var rr = document.getElementsByClassName('rounded-full bg-gray-dark'); for (var i = 0; i < rr.length; i++) { if (rr[i].parentNode.innerHTML.indexOf('SKU:') >= 0) { st_SKU = rr[i].parentNode.innerHTML.split(':')[1].trim(); break; } } var C_4 = st_SKU.substring(st_SKU.length - 4); var C_3 = st_SKU.substring(st_SKU.length - 3); if (C_4 == '14TT' || C_4 == '18TT' || C_4 == 'TT14' || C_4 == 'TT18') { st_SKU = st_SKU.substring(0, st_SKU.length - 4); } else if (C_3 == '18R' || C_3 == '14R' || C_3 == '18Y' || C_3 == '14Y' || C_3 == '18W' || C_3 == '14W' || C_3 == 'R18' || C_3 == 'R14' || C_3 == 'Y18' || C_3 == 'Y14' || C_3 == 'W18' || C_3 == 'W14' || C_3 == 'PLT') { st_SKU = st_SKU.substring(0, st_SKU.length - 3); } } // 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_Carat = '1.50'; function Work_Colors() { var ar = document.getElementsByClassName('VariantRound_tinyCircle__MNjz8') for (var i = 0; i < ar.length; i++) { var m, c; if (ar[i].className.toLocaleLowerCase().indexOf('white') >= 0) { m = 'w' } else if (ar[i].className.toLocaleLowerCase().indexOf('yellow') >= 0) { m = 'y' } else if (ar[i].className.toLocaleLowerCase().indexOf('rose') >= 0) { m = 'r' } c = ar[i].childNodes[0].innerHTML.replace('K', ''); var th = '' if (c == 'PT') { th = 'p' } else { th = m + '-' + c; } if (st_Colors != '') { st_Colors += ',' } st_Colors += th; if (ar[i].parentNode.className.indexOf('border-') >= 0) { st_Color = th; } } } function Work_Shapes() { var Ret = ''; var ar = document.getElementsByClassName('md:text-sm md:leading-5 leading-4') var ar_Shapes = ('').split(','); for (var i = 0; i < ar.length; i++) { if (ar[i].innerHTML != '') { ar_Shapes[i] = ar[i].innerHTML } } Ret = ar_Shapes[0] Work_Shapes_Relation(Ret, ar_Shapes) } Work_Shapes() Work_Colors() 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' _View = 'none'; //if (document.location.href.indexOf('/633') >= 0) { // _View = 'block'; //} //else { const Num1 = ('1,2,4,8').split(','); const Dis1 = ('flex,block,flex,flex').split(','); for (var i = 0 ; i < 4; i ++){ var o = document.getElementById('try_vto_' + Num1[i]); if (o){ o.style.display = Dis1[i]; o.setAttribute('onclick', 'cls_InovaDiamonds_Iframe.Inova__OpenFrame()') } } //if (document.location.href.indexOf('mode=view') >= 0) { if (rng_3DM == '1'){ const Num2 = ('3,5,6,7').split(','); const Dis2 = ('flex,flex,block,flex').split(','); for (var i = 0; i < 4; i++) { var o = document.getElementById('try_vto_' + Num2[i]); if (o) { o.style.display = Dis2[i]; o.setAttribute('onclick', 'cls_InovaDiamonds_Iframe.Inova__OpenFrame("m3d")') } } } //} //} return (_View); } Before_Open_iFrame() { //// By Open try { document.getElementById("g-rating").style.opacity = '0'; document.getElementById("g-rating").style.zIndex = '-111111' } catch (e) { } try { document.getElementById("intercom-container").style.opacity = '0'; document.getElementById("intercom-container").style.zIndex = '-111111' } catch (e) { } try { document.getElementsByClassName("intercom-lightweight-app")[0].style.opacity = '0'; document.getElementsByClassName("intercom-lightweight-app")[0].style.zIndex = '-111111' } catch (e) { } try { document.getElementById("xs-menu-button").style.opacity = '0'; document.getElementById("xs-menu-button").style.zIndex = '-111111' } catch (e) { } try { document.getElementById("intercom-custom-launcher-open").style.opacity = '0'; document.getElementById("intercom-custom-launcher-open").style.zIndex = '-111111' } catch (e) { } try { document.getElementsByTag_Name("header")[0].style.zIndex = '111' } catch (e) { } } After_Close_iFrame() { //// By Close try { document.getElementById("g-rating").style.opacity = '1'; document.getElementById("g-rating").style.zIndex = '10000' } catch (e) { } try { document.getElementById("intercom-container").style.opacity = '1'; document.getElementById("intercom-container").style.zIndex = '0' } catch (e) { } try { document.getElementsByClassName("intercom-lightweight-app")[0].style.opacity = '1'; document.getElementsByClassName("intercom-lightweight-app")[0].style.zIndex = '2147483000' } catch (e) { } try { document.getElementById("xs-menu-button").style.opacity = '1'; document.getElementById("xs-menu-button").style.zIndex = '200' } catch (e) { } try { document.getElementById("intercom-custom-launcher-open").style.opacity = '1'; document.getElementById("intercom-custom-launcher-open").style.zIndex = '2147483000' } catch (e) { } try { document.getElementsByTag_Name("header")[0].style.zIndex = '999999999'} catch (e) { } } Init_User_Code() { // } Get_Product_Images() { // } Go_User_Event(Param, obj) { // Param = Param.replace(/ /g, '') // var ar = Param.split('^'); if (!document.getElementById("vto_mod_Y")) { var o = document.createElement('DIV'); o.className = 'Modal_root__4gN_y'; o.id = 'vto_mod_Y'; if (document.location.href.indexOf('localhost') >= 0) { o.setAttribute('style', 'z-index:2147483646;display:block;position:fixed;top:100px;left:0px;'); } else{ o.setAttribute('style', 'z-index:2147483646'); } o.innerHTML = '' + '
' + '
' + '
' + '
' + '
' + '
' + '
' + '
Great choice! now we need a nice stone
' + '
' + '
' + '
' + '
Combine this setting with a
' + '
' + '
' + '
' + '
' + '
Natural Diamond
' + '
' + '
' + '
Lab Diamond
' + '
' + '
' + '
' + '
' + '
'; document.body.appendChild(o); return ('') } var URL = '/natural-loose-diamonds/'; if (ar[2] == '2') { URL = '/lab-created-diamonds/'; } var Pa = ar[1].toLowerCase().split('-'); URL += (Pa[0] * 0.9).toFixed(2) + '-' + (Pa[0] * 1.1).toFixed(2) + '-carat/'; URL += Pa[1] + '-diamonds/excellent-cut/l-d-color/si2-fl-clarity?ring='; ar = document.location.href.split('/') ar = ar[ar.length - 1].split('-'); URL += ar[0]; for (var i = 1; i < ar.length; i++) { if (ar[i] == 'platinum' || ar[i] == 'yellow' || ar[i] == 'white' || ar[i] == 'rose') { break; } URL += '-' + ar[i]; } if (Pa[2] == 'platinum') { URL += '-platinum' } else { ar = Pa[2].split('_'); URL += '-' + ar[1] + '-gold-' + ar[0] } document.location.href = URL; } //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://tryon.vto.jewelry/'; this.URL_Execute_Page = ''; this.Parent_Domain = 'https://tryon.vto.jewelry'; this.Ring_Try_Yourself = ''; this.SID = '5dix9m5_250317225834'; 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 = 'https://stat.vto.jewelry/index.aspx'; this.Flag_Parent_Page = ''; this.Flag_UnLoad = ''; this.Flag_Load_Button = ''; this.Flag_Show_SID = ''; this.Product_Code = ''; this.xmlObj; this.This_IP = '3.17.177.21'; 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=633') > 0 || Ar[i].getAttribute('src').indexOf('&d=633') > 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 ('633' == '633' || '633' == '676' || '633' == lCode) { el.style.width = '55px'; el.style.height = '55px'; } else if ('633' == '641' || '633' == '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 ('633' == '640') { try { document.getElementById("inova-image").style.display = 'block'; } catch (e) { } } else if ('633' == '670' || '633' == '676' || '633' == '677' || '633' == '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('