' + Icons_850( '
if (cls_InovaDiamonds_Iframe.WA___Flag_Mobile == '1') {
var p = document.getElementsByClassName('product__title')[0]
p.parentNode.insertBefore(o, p)
document.getElementById('inv_tbl').style.margin = '0px auto'
}
else {
var p = document.getElementsByClassName('product__text richtext')[0]
p.parentNode.insertBefore(o, p)
}
//p.appendChild(o)
}
return (_View);
}
Before_Open_iFrame() {
//
}
After_Close_iFrame() {
//
}
Init_User_Code() {
//
}
Get_Product_Images() {
//
}
Go_User_Event(Param, obj) {
// Param = Param.replace(/ /g, '')
//
}
//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 = 'lks0st9_250405152222';
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 = '18.222.154.109';
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=858') > 0 ||
Ar[i].getAttribute('src').indexOf('&d=858') > 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 ('858' == '633' ||
'858' == '676' ||
'858' == lCode) {
el.style.width = '55px';
el.style.height = '55px';
}
else if ('858' == '641' ||
'858' == '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 ('858' == '640') {
try { document.getElementById("inova-image").style.display = 'block'; } catch (e) { }
}
else if ('858' == '670' ||
'858' == '676' ||
'858' == '677' ||
'858' == '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(' |