// $('.sec05-moblie-container').slick({ // arrows: false, // slidesToShow: 1, // slidesToScroll: 1, // infinite: false, // centerMode: true, // }); $(".sendbox").hide(); $(document).on("click", ".collectcard", function (event) { // $(this).siblings('.collectcard').removeClass('select'); $(".sendbox").show(500); $(this).toggleClass("select"); }); $(document).on("click", ".close", function (event) { // $(this).siblings('.collectcard').removeClass('select'); $(".sendbox").hide(500); $(".collectcard").removeClass("select"); }); // 收藏頁面 $(document).ready(function () { collecturl = location.search; getcollect = collecturl.split("?") console.log(getcollect[0]); console.log(getcollect[1]); var collectuserid = getcollect[1]; $.ajax({ method: "GET", url: "https://api.ptt.cx:8228/collection/" + collectuserid + "", // url:"https://api.ptt.cx:8228/collection/Uf161c92b16f84357987a78c2b4b47719", dataType: "json", }) .done(function (msg) { console.log(msg); // console.log(Object.keys(msg).length); let msgLen =Object.keys(msg).length; console.log(msgLen) var collectcontent = ''; for(var i = 0; i < msgLen; i++){ collectcontent+='\