iPhone Straight Edge Glass Phone Case
Sale price
¥16.99
Regular price
¥21.99
if(window.location.href.indexOf('morningfast.com') != -1 || window.location.href.indexOf('morningfast') != -1 ){
window.localStorage.setItem('exist',window.location.host)
}
var store_type;
function getCookie(name) {
let cookieValue = null;
if (document.cookie && document.cookie !== '') {
let cookies = document.cookie.split(';');
for (let i = 0; i < cookies.length; i++) {
let cookie = cookies[i].trim();
if (cookie.substring(0, name.length + 1) === (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}
if(typeof Shopify!="undefined"){
store_type = 1
}else if(typeof SHOPLAZZA!="undefined"){
store_type = 2
}else if(document.documentElement.innerHTML.indexOf('https://cdn.xpdcdn.com')!= -1){
store_type = 3
}else if(getCookie('utm_medium') == 'shopyy.com'){
store_type = 4
}else{
store_type = -1
}
var product_link;
var str = window.location.href;
let newstr = str.match(/\/\/(.*?)\//i)[1];
var indexOf = newstr.indexOf('-com');
len = newstr.substring(indexOf,newstr.length);
var newHref = newstr.replace(len,'.com');
let http = str.split('//')[0];
let iplength = str.split('//')[1].split('/')[0].length+1;
let pashlen = str.substring((http.length+1+iplength),str.length);
product_link = http+'//'+newHref+pashlen;
var domain = document.domain;
var store_name = domain.replace(/^http:\/\/[^/]+/, "").split('.')[0] == 'www'?domain.replace(/^http:\/\/[^/]+/, "").split('.')[1]:domain.replace(/^http:\/\/[^/]+/, "").split('.')[0];
var product_image = -1;
if(store_type == 1){
for(var i=0;i response.json())
.then(data=> {
if(data.code == 200){
window.sessionStorage.setItem('exist',window.location.host)
}
});
}