Bells & Nook Miles Ticket DIY Recipe Sets Theme Packs Usables Tools Art Clothing Furniture Flowers & Fruit Critters 2.0 Items Bushes & Tree Other Hot Sales All Items
All Clothing All Critters All Flowers & Fruit All Furniture 2.0 Bundles Accessories Accessories All 2.0 Items Bag Bags Bags Bottoms Bottoms Ceiling Decor Decoration Dress-Up Dress-Up Fencing Fencing Floors Floors Food Fossils Fruit Gyroids Headwear Headwear Housewares Housewares Miscellaneous Miscellaneous Model Music Music Other Photos Photos Plant Posters Posters Rugs Rugs Shoes Shoes Socks Socks Tools Tops Tops Umbrellas Umbrellas Villagers Wall-mounted Wall-Mounted Wallpaper Wallpapers
- Poster Photo Wall Model Flooring
- Dress Bunny Day Cinnamoroll Hello Kitty
- My Melody Nook Inc Pompompurin Rug Plant
- Set Blue Red Shirt Hat
- Skirt White Umbrella Yellow Tee
Recipebrown-sugar cupcakes
0.19 USD
Recipebrown-sugar pound cake
0.19 USD
Brown-sugar cupcakes
0.19 USD
Brown-sugar pound cake
0.19 USD
Brown sugar x50
0.19 USD
"; if (url == null || number == null) { $(".shopping-cart").html(html); ShowCar(result); } else { $(".shopping-cart").html(html); ShowCar(result); } } } } $(".items-quantity").live("change keyup", function () { var value = $(this).val(); var row = $(this).parents(".goldrl-box"); row.find("input.rlbtn").each(function () { var input = $(this); $.each([ { attr: "tag", value: input.attr("tag") }, { attr: "href", value: input.attr("href") }], function (i, e) { var v = e.value; v = v.replace(/goldNum=\d*&/gi, "goldNum=" + value + "&"); input.attr(e.attr, v); }); }); }); var resetPanel = function (tag) { $(".gold-list").hide(); if (!initSearch) { $(".itemname").val(""); $(".gold-list[data-method='" + tag + "']").show(); $(".search-list").html("").hide(); } $(window).scroll(); window.searchItems = null; }; var doSearch = function () { window.searchItems = []; $(".gold-list").hide(); //$(".gold-list .goldrl-box").each(function (i) { // var method = $(this).parents(".gold-list:first").data("method"); // if (method == 99) { return; } // if (item.length == 0) { // var item2 = $($(this).prop("outerHTML")); // window.searchItems.push({ // i: i, // item: item2, // name: item2.find(".rl-name").text(), // price: parseFloat(item2.find(".poeprice").text()) // }); // return; // } // var f = true, e = $(this); // if (item.length > 0) { // var itemname = e.find(".rl-name").text(); // var regExp = new RegExp(item, "gi"); // var n0 = itemname.replace(/[\s+\-]+/gi, "").toLowerCase(); // var n1 = item.replace(/[\s+\-]+/gi, "").toLowerCase(); // if (!(regExp.test(itemname) || n0.indexOf(n1) > -1)) { // f &= false; // } // } // if (f) { // var item2 = $(e.prop("outerHTML")); // window.searchItems.push({ // i: i, // item: item2, // name: item2.find(".rl-name").text(), // price: parseFloat(item2.find(".poeprice").text()) // }); // } //}); sortSearchItems(); } //$(".itemname").live("keyup", doSearch); $(".priceup select").live("change", function () { var expires = new Date(); expires.setHours(expires.getHours() + 4); $.cookie("_gasort", $(this).val(), { expires: expires }); sortSearchItems(); }); var sortSearchItems = function () { setTimeout(loadItemImages, 100); return; if ($(".rl-title-hotsales").attr("class").indexOf("on") > -1) { return; } //排序方法 var s = parseInt($.cookie("_gasort") || "1"); var itemSort = function (a, b, c) { var v = 0; switch (s) { case 2: v = b.price - a.price; if (v != 0) { return v; } case 3: v = a.price - b.price; if (v != 0) { return v; } } var array1 = [(a.name + (a.text || "")).replace(/[^a-z\d]+/gi, "").toLowerCase(), (b.name + (b.text || "")).replace(/[^a-z\d]+/gi, "").toLowerCase()]; var array2 = array1.slice(0); array1.sort(); return array1[0] == array2[0] ? -1 : 1; }; if (window.searchItems) { var thisSearchItems = [], copySearchItems = window.searchItems.slice(0), searchPanel = $(".search-list").html(""); $.each(copySearchItems, function (i, e) { var items = derivedItems(e); thisSearchItems = thisSearchItems.concat(items); }); thisSearchItems.sort(itemSort); $.each(thisSearchItems, function (i, e) { searchPanel.append(e.item).show(); if (e.change) e.change(); }); pagingItems(searchPanel); setTimeout(function () { loadItemImages(true); }, 100); } else { //排序当前选中分类 $(".gold-list").each(function () { var gl = $(this); if (!gl.is(":hidden")) { var j = Number(gl.attr("data-method")); if (j == 1 || j == 11) { return; } var categoryItems = [], originalItems = []; gl.find(".goldrl-box").each(function (i, e) { var item2 = $(this).clone(true); var item = { i: parseInt(item2.attr("data-index")), item: item2, name: item2.find(".rl-name").text(), price: parseFloat(item2.find(".poeprice").text()), sort: parseInt(item2.attr("data-sort")) }; if (s == 1 && item.sort > 0) { originalItems.push(item); } else { categoryItems.push(item); } }); categoryItems.sort(itemSort); if (originalItems.length > 0) { originalItems.sort(function (a, b) { return a.i - b.i; }) $.each(originalItems, function (i, e) { categoryItems.splice(e.i, 0, e); }); } gl.find(".goldrl-box").remove(); $.each(categoryItems, function (i, e) { gl.append(e.item).show(); }); } }); setTimeout(loadItemImages, 100); } }; var derivedItems = function (obj) { //展示不同颜色只针对输入了物品名称 var searchItemname = $(".itemname").val().trim(); if (searchItemname == "") { return [obj]; } var html = obj.item.prop("outerHTML"), item = $(html); return [{ i: obj.id, name: obj.name, item: item, price: obj.price }];; }; var pagingItems = function (panel) { var size = 35; var count = $(panel).find(".goldrl-box").length; var pageDiv = $("
"); if (count > size) { $(".search-list").append(pageDiv); var total = (count + size - 1) / size; for (var i = 1; i <= total; i++) { pageDiv.append("" + i + "\r\n"); } pageDiv.find("a").each(function () { $(this).live("click", function () { pageDiv.find("a").removeClass("on"); $(this).addClass("on"); var page = parseInt($(this).text()); var skip = (page - 1) * size; $(panel).find(".goldrl-box").each(function (i, e) { if (i < skip || i > (skip + size - 1)) { $(this).hide(); } else { $(this).show(); } }); }); })[0].click(); } else { $(".items-page").remove(); } }; function loadItemImages(isSearch) { if (!isSearch) { isSearch = $(".search-list .rl-img").length > 0; } if (isSearch) { if ($(".search-list .rl-img .rl-load").length > 0) { $(".search-list .rl-img").each(function () { var img = $(this).find("img[data-src]"), load = $(this).find("img.rl-load"); if (img.length == 0) { load.remove(); } }); } } var items = $(isSearch ? ".search-list .rl-img img[data-src]" : ".gold-list:visible .rl-img img[data-src]"); var loadImg = ""; items.each(function () { var _this = $(this), _parent = $(this).parents(".rl-img"); var dis = 200; var wh = $(window).height(), stop = $(document).scrollTop(), etop = _this.offset().top; if ((wh + stop + dis) >= etop) { var src = _this.attr("data-src"), ing = _parent.find(".rl-load"), error = parseInt(_this.attr("data-error") || 0); if (src && (ing.length == 0 || isSearch) && error < 3) { var newSrc = src; //加随机数强制刷新 if (error == 1) { newSrc += "?t=" + Math.random(); } //使用默认颜色图片 if (error == 2) { var segments = newSrc.split('/'); var filename = segments.pop(); var args = filename.split('-'); args.pop(); segments.push(args.join("-") + ".png"); newSrc = segments.join("/"); } var imageCallback = function (e) { _parent.find(".rl-load").remove(); if (e.type == "load") { _this.removeAttr("data-src").attr("src", newSrc); } else if (error < 3) { _this.attr("data-error", error + 1); } } var image = new Image(); image.onload = imageCallback; image.onerror = imageCallback; image.src = newSrc; _parent.append($(loadImg)); } } }); } $(".items-color .default,.items-certified .default").die().live("click", function () { var ul = $(this).parents("div:first").find("ul"); if (ul.attr("disabled")) { return; } if (ul.is(":visible")) { ul.hide(); } else { $(".items-color ul,.items-certified ul").hide(); ul.show(); } }); $(".items-color ul li,.items-certified ul li").die().live("click", function () { var arr = unescape($(this).find("i").attr("data-val")).split('$'); var row = $(this).parents(".goldrl-box"); var col = (arr[1].split('|').length > 1 ? arr[1].split('|')[1] : ""); var cer = (arr[1].split('_').length > 1 ? arr[1].split('_')[1] : "").replace("|" + col, ""); var src = row.find(".rl-img img:first").attr("src").toLowerCase(); var newSrc = arr[3]; if (newSrc.toLowerCase() != src) { var imageCallback = function (e) { loadImg.remove(); if (e.type == "load") { row.find(".rl-img img:first").attr("src", $(this).attr("src")); } if (col != null) { row.find(".rl-color2").removeClass().addClass("rl-color2 " + col.toString().toLowerCase().replace(/[\s\+]/gi, "")); } } var loadImg = $("
"); var image = new Image(); image.onload = imageCallback; image.onerror = imageCallback; image.src = arr[3]; row.find(".rl-img").append(loadImg); } else if (col != null) { row.find(".rl-color2").removeClass().addClass("rl-color2 " + col.toString().toLowerCase().replace(/[\s\+]/gi, "")); } row.find(".poeprice").text(arr[2]); row.find(".rl-deliv b").text(arr[4]); row.find(".rl-rarebox").text(arr[5]).removeClass().addClass("rl-rarebox rl-" + arr[5].replace(" ", "").toLowerCase()); row.find(".rl-center").removeClass().addClass("rl-center bg-" + arr[5].replace(" ", "").toLowerCase()); row.find("input.rlbtn").each(function () { var input = $(this); $.each([ { attr: "tag", value: input.attr("tag") }, { attr: "href", value: input.attr("href") }], function (i, e) { var v = e.value; v = v.replace(/AddGold\/\d+/gi, "AddGold/" + arr[0]); v = v.replace(/Token=.+/gi, "Token=" + escape(arr[1])); input.attr(e.attr, v); }); }); //debugger; $(this).parent("ul").hide(); var df = $(this).parents("div:first").find(".default"); if (cer != "") { cer = cer.replace("+", " ").replace("+", " ").replace("+", " ").replace("+", " "); if (col == "") { df.html(cer); } else { df.html(col.replace("+", " ") + " [" + cer + "]"); } } else if ("0" == "1") { df.html($(this).find("span,div").text()); } else { df.html(arr[1].split('|')[1].replace("+", " ").replace("+", " ").replace("+", " ").replace("+", " ")); } df.attr("data-val", $(this).find("i").attr("data-val")); }); $(document).ready(function () { initSort(); $(".loupe").swipebox(); $(window).scroll(function () { var scrollTop = $(this).scrollTop(); var scrollHeight = $(document).height(); var windowHeight = $(this).height(); var p1 = $(".animal-crossing-title em.on"); if (p1.attr("tdata") != null && p1.attr("tdata") != "") { p1 = $(".animal-crossing-title-child em.on"); } var page = parseInt(p1.attr("p")); if (isNaN(page)) { page = 1; } var tid = p1.attr("tag"); if (tid == null) { return; } var isloadall = p1.attr("load"); if (isloadall == null || isloadall == "") { isloadall = "0"; } var isAkrpgv='False'; if(isAkrpgv=="True"&&parseInt(tid)==31) { return; } if (parseInt(tid)==36) { return; } var groupname = ""; var ugroup; if (parseInt(tid) == 37 || parseInt(tid) == 38) { ugroup = $(".gold-list[data-method='" + tid + "'] .setquicklink .on"); groupname = ugroup.attr("tag"); page = parseInt(ugroup.attr("p")); if (isNaN(page)) { page = 0; } } if (page == -1) { return; } var tssw = scrollHeight - scrollTop - windowHeight; var tu = 1750; if ($(".sl-bottom").length == 1) { tu += $(".sl-bottom").height(); } if (tssw < tu && isloadall == "0") { $("#tipDiv").show(); p1.attr("load", 1); try { $.get("/GoldList/Findex?gamesort=Animal Crossing&serverlist=Switch&page=" + page + "&tid=" + tid + "&groupname=" + groupname, function (result) { $(".lastall").html(result); $(".gold-list").each(function (i, item) { if ($(item).attr("data-method") == tid) { var tempid = "#temptypeid" + $(item).attr("data-method"); result = $(tempid).text().trim(); if (tid == "37" || tid == "38") { $(item).find(".gold-list2[data-method='" + tid + groupname.replace("'", "") + "']").append($(tempid).html()); } else { $(item).append($(tempid).html()); } } }); $(".lastall").html(""); // initSort(); if (tid == "37" || tid == "38") { if (result == "") { ugroup.attr("p", -1); } else { ugroup.attr("p", page + 1); } } else { if (result == "") { p1.attr("p", -1); } else { p1.attr("p", page + 1); } } p1.attr("load", 0); $("#tipDiv").hide(); }); } catch (e) { p1.attr("load", 0); $("#tipDiv").hide(); } } }); if (!initSearch) { $(".animal-crossing-title em.on").eq(0).click(); } initSearch = false; }); $('.itemname').bind('keyup', function (event) { if (event.keyCode == "13") { $(".itemnamesearch").click(); } }); $(".setsingleall").live("click", function () { var temp = $(this).attr("tag").split('^'); var td = $(this).parents(".setitemgroup").next(); if (td.html() != "") { td.show(); if (td.attr("c") == "1") { td.hide(); td.attr("c", "0"); } else { td.attr("c", "1"); } return; } try { $("#tipDiv").show(); $.get("/GoldList/Search?gamesort=Animal Crossing&serverlist=Switch&token=" + temp[1] + "&temptype=" + temp[0], function (result) { $("#tipDiv").hide(); $(".lastall").html(result); $(".lastall .rl-img img").each(function (i, item) { $(item).attr("src", $(item).attr("data-src")); }); $(".temptypeidasyn").each(function (i, item) { td.append(($(this).html())); }); $(".lastall").html(""); td.show(); td.attr("c", "1"); }); } catch (e) { $("#tipDiv").hide(); } }); $(".itemnamesearch").live("click", function () { doSearch(); if ($(".search-list").html() != "") { $(".search-list").html(""); } try { $("#tipDiv").show(); $.get("/GoldList/Search?gamesort=Animal Crossing&serverlist=Switch&token=" + $(".itemname").val(), function (result) { $("#tipDiv").hide(); $(".lastall").html(result); $(".lastall .rl-img img").each(function (i, item) { $(item).attr("src", $(item).attr("data-src")); }); $(".gold-list").each(function (i, item) { var tempid = "#temptypeid" + $(item).attr("data-method"); $(".search-list").append(($(tempid).html())); }); $(".lastall").html(""); if ($(".search-list").html() == "") { $(".search-list").html("
No Product
"); } $(".search-list").show(); }); } catch (e) { $("#tipDiv").hide(); } }); $(".min, .add").live("click", function () { var value = $(this).attr("class"); if (value == "min") { var tinput = $(this).next(); var min = parseInt( tinput.attr("min")); var current = parseInt(tinput.val()); if (current - 1 >= min) { tinput.val((current - 1)); tinput.change(); } } else { var tinput = $(this).prev(); var current = parseInt(tinput.val()); tinput.val((current + 1)); tinput.change(); } }); $(".setquicklink span").click(function () { $(".setallchild").hide(); $(".setallchild").attr("c", "0"); if (1==0) { $("html,body").animate({ scrollTop: 410 }, 200); } $(this).parent().find("span").removeClass("on"); $(this).addClass("on"); if ($(this).attr("class").indexOf('othersetgroup') > -1) { var tp = $(this).parent().parent(); var md = tp.attr("data-method") + $(this).attr("tag"); tp.find(".gold-list2").hide(); tp.find(".gold-list2[data-method='" + md.replace("'", "") + "']").show(); $(window).scroll(); } else { $(".setitemgroup").show(); var thisname = $(this).attr("tag"); if (thisname=="All") { return; } $(".setitemgroup").each(function () { if ($(this).text().indexOf(thisname) == -1) { $(this).hide(); } else { $(this).find("img[data-src]").each(function () { $(this).attr("src", $(this).attr("data-src")); $(this).removeAttr("data-src"); }); } }); } });