_username_
_date_
_content_


In order to maintain stability and speed, It is recommended to upload photos through Wi-Fi or infinite 3G cellular network!
|
Item Detail
Trial
Up
|
},
success: function (res) {
if (res["error"]) {
document.cookie = "uchome_where=" + window.location.href;
alert(res["message"]);
document.location.href = "index.php?act=login";
} else {
jQuery(".superCollector" + classNum).addClass("coll0");
jQuery(".superCollector" + classNum).addClass("coll1");
jQuery(".superCollector" + classNum).removeClass("coll" + num);
if (num) {
jQuery(".dis" + classNum).html("Hide");
jQuery(".superCollector" + classNum).attr("onclick", "collectcoupon(" + couponid + ",'coupon',0," + classNum + ")");
} else {
jQuery(".dis" + classNum).html("Hidden");
jQuery(".superCollector" + classNum).attr("onclick", "collectcoupon(" + couponid + ",'coupon',1," + classNum + ")");
}
}
},
complete: function () {
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
}
})
}
function swipe1(id,dir){
element = document.getElementById(id);
console.log(element);
console.log(dir);
dx = dir*600;
if (element==null) return;
element.scrollBy(dx,0);
z=document.getElementById(id+"holder");
arrows=Array.from(z.querySelectorAll("[class*=arrow]"));
if (typeof(arrows)=="undefined"){
console.log("arrows are not an object");
return;
}
arrows[0].hidden=!(element.scrollLeft);
arrows[1].hidden=!(element.scrollWidth!=element.scrollLeft+element.clientWidth);
}
lock = false;
function scrollView(id,ele){
lock = true;
target = document.getElementById(id);
if (target==null) return;
if (banner_pos.classList.contains("ghoul")){
toTop = $(target).offset().top-ele.clientHeight;
}else{
toTop = $(target).offset().top-2*ele.clientHeight;
}
$('html, body').animate({
scrollTop:toTop
}, {
duration:500,
before:lock = true,
complete:function(){
lock = false;
console.log("animate_complete");
$(".fastbutton_item").removeClass("item_on");
$(ele).addClass("item_on");
}
});
}
urkidding();
window.addEventListener("resize", urkidding);
var hello = document.getElementById("cavapie");
if (fullwidth > 767) {
picwidth = fullwidth - 324;
if (picwidth > 1200) {
picwidth = 1200
changeClaSS("plankwalk", ".layer", "max-width", (fullwidth - picwidth) + "px");
} else {
changeClaSS("plankwalk", ".layer", "max-width", "324px");
}
} else {
changeClaSS("plankwalk", ".layer", "max-width", fullwidth + "px");
}
var cumulativeOffset = function (element) {
var top = 0, left = 0;
do {
top += element.offsetTop || 0;
left += element.offsetLeft || 0;
element = element.offsetParent;
} while (element);
return {
top: top,
left: left
};
};
banner_pos = document.getElementById("corpsebar");
banner_pos2 = document.getElementById("zombiebar");
banner_pos3 = document.getElementById("relatedshops");
if (banner_pos != null)
offset = cumulativeOffset(banner_pos).top;
if (banner_pos2 != null)
offset2 = cumulativeOffset(banner_pos2).top;
if (banner_pos3 != null)
offset3 = cumulativeOffset(banner_pos3).top;
document.addEventListener("scroll", function () {
dx = window.pageYOffset;
if (banner_pos != null) {
if (dx >= offset) {
banner_pos.classList.add("ghoul");
}
else {
banner_pos.classList.remove("ghoul");
}
}
if (banner_pos2 != null) {
if (dx >= offset2 && (typeof(offset3) == "undefined" || dx <= offset3 - banner_pos2.clientHeight)) {
banner_pos2.classList.add("zombie");
}
else {
banner_pos2.classList.remove("zombie");
}
}
holds = document.getElementsByClassName("fastbutton_item");
len2 = holds.length;
if (!lock) {
for (var i = 0; i < len2; i++) {
tar = holds[i].id;
mainid = tar.slice(1, tar.length);
temp = document.getElementById(mainid);
if (temp == null) continue;
if (dx>=cumulativeOffset(temp).top-document.getElementById(tar).clientHeight && dx<=cumulativeOffset(temp).top+100){
for (j = 0; j < len2; j++) {
if (holds[j].id.indexOf(mainid) > -1)
holds[j].classList.add("item_on");
else
holds[j].classList.remove("item_on");
}
}
}
} else {
}
});
function clickbook() {
document.getElementById('xappointment').click();
$("#appointment>div>.maintitle").addClass("rembook_wd");
$("#appointment>div>.maintitle>span").show();
$("#appointment>div>.maintitle+*").addClass("rembook_bd");
setTimeout(function () {
$("#appointment>div>.maintitle").removeClass("rembook_wd");
$("#appointment>div>.maintitle>span").hide();
$("#appointment>div>.maintitle+*").removeClass("rembook_bd");
}, 5000);
}
function doweirdthing(ele, index) {
if (ele.nextElementSibling == null)
ele.parentNode.style.display = "none";
}
Array.from(document.getElementsByClassName("titletag")).forEach(doweirdthing);
$(document).ready(function () {
setTimeout(function () {
getCookies().done(function (data) {
if (data['error']) {
var now = new Date();
var time = now.getTime();
var expireTime = time + 1000 * 36000;
now.setTime(expireTime);
document.cookie = "uchome_auth=" + data['auth'] + ";expires=" + now.toGMTString() + ";path=/";
document.cookie = "uchome_api=" + data['api'] + ";expires=" + now.toGMTString() + ";path=/";
document.cookie = "uchome_show_popup=false;expires=" + now.toGMTString() + ";path=/";
location.reload();
return true;
}
})
}, 1000);
});
function getCookies() {
return $.ajax({
type: "post",
url: "https://www.seewide.com/ajax_info.php",
crossDomain: true,
dataType: 'json',
data: "do=getAuth",
xhrFields: {
withCredentials: true
},
success: function (data) {
}
})
}
$('.windows-bg').on('click','.agree_btn',function(){
var userid = 0;
var placeid = 23635;
jQuery.ajax({
url:"https://beta.bookfun.com/api_v1/customer/"+userid+"/"+placeid+"/become_a_fans",
type:"POST",
dataType:"json",
xhrFields: {
withCredentials: true
},
success:function(data)
{
if(data.status === 200){
$('.windows-bg').hide();
Swal.fire({
title: 'Success become a fans from this shop.',
timer: 2000,
confirmButtonColor: '#E8283B',
confirmButtonText: 'Ok!',
}).then((result) => {
if (result.dismiss === Swal.DismissReason.timer) {
location.reload();
}else{
location.reload();
}
});
}else{
alert(data.msg);
}
},
error:function(XMLHttpRequest,textStatus,errorThrown)
{
msg=XMLHttpRequest.status+'/n'+XMLHttpRequest.readyState+'/n'+textStatus+'/n'+errorThrown;
if(!is_pro&&false){
Swal.fire(
'Error! 0x00003',
msg,
'error'
);
}
location.reload();
},
complete:function()
{
}
});
});
function show_already_is_fans_message(){
Swal.mixin({
toast: true,
position: 'bottom',
showConfirmButton: false,
customClass: 'bf-toast',
timer: 5000,
timerProgressBar: true,
onOpen: (toast) => {
toast.addEventListener('mouseenter', Swal.stopTimer)
toast.addEventListener('mouseleave', Swal.resumeTimer)
}
}).fire({
icon: 'success',
title: 'You are already a fans.'
});
}
$(document).ready(function(){
var placeid = 23635;
$.ajax({
url:"https://beta.bookfun.com/api_v1/public/web/1.0/1.2/Shop_Page/"+placeid+"?lang=en",
type:"GET",
dataType:"json",
xhrFields: {
withCredentials: true
},
success:function(data)
{
if(data.status==200){
$('#point_area').html("Point
"+data.result.message+""); }else{ $('#point_area').html("Point");//Disactivate } }, error:function(XMLHttpRequest,textStatus,errorThrown) { $('#point_area').html("Point");//Disactivate msg=XMLHttpRequest.status+'/n'+XMLHttpRequest.readyState+'/n'+textStatus+'/n'+errorThrown; if(!is_pro){ Swal.fire( 'Error 0x00005', msg, 'error' ); } }, complete:function() { } }); }); is_open=false; $('#fun_qwer12').on('click',function(){ $('#qwer12').toggle(function(){ if(is_open){ is_open=false; $('#fun_qwer12').find('i').removeClass("Aup").addClass("Adown"); }else{ is_open=true; $('#fun_qwer12').find('i').removeClass("Adown").addClass("Aup"); } }); });
"+data.result.message+""); }else{ $('#point_area').html("Point");//Disactivate } }, error:function(XMLHttpRequest,textStatus,errorThrown) { $('#point_area').html("Point");//Disactivate msg=XMLHttpRequest.status+'/n'+XMLHttpRequest.readyState+'/n'+textStatus+'/n'+errorThrown; if(!is_pro){ Swal.fire( 'Error 0x00005', msg, 'error' ); } }, complete:function() { } }); }); is_open=false; $('#fun_qwer12').on('click',function(){ $('#qwer12').toggle(function(){ if(is_open){ is_open=false; $('#fun_qwer12').find('i').removeClass("Aup").addClass("Adown"); }else{ is_open=true; $('#fun_qwer12').find('i').removeClass("Adown").addClass("Aup"); } }); });