是教堂還是廟?台南鹽水天主聖神堂 | 天主堂
].join();}).join();}//每一則新聞(最小單位)functiongenTplItem(post){return``;}jQuery.ajax({type:"GET",url:"https://bobee.nownews.com/wp-json/wp/v2/posts?per_page=18&page=1&categories=4726&_embed"}).done((res)=>{res.forEach(function(post,idx){post.no=idx+1});constgroup1=res.slice(0,6);constgroup2=res.slice(6,12);constgroup3=res.slice(12,18);constgroupList=[group1,group2,group3];consttpl=genTplGroup(groupList);//console.log(HTML,tpl);jQuery(#ad-carousel#carousel).html(tpl);setT...
].join(); }).join(); } // 每一則新聞(最小單位) function genTplItem(post) { return `
`; } jQuery.ajax({ type: "GET", url: "https://bobee.nownews.com/wp-json/wp/v2/posts?per_page=18&page=1&categories=4726&_embed" }).done((res) => { res.forEach(function(post, idx) { post.no = idx+1 }); const group1 = res.slice(0, 6); const group2 = res.slice(6, 12); const group3 = res.slice(12, 18); const groupList = [group1, group2, group3]; const tpl = genTplGroup(groupList); // console.log(HTML, tpl); jQuery(#ad-carousel #carousel).html(tpl); setTimeout(() => { jQuery(#ad-carousel #carousel).owlCarousel({ items: 1, loop: true, rewind: true, // autoplay: true, nav: false, dots: true }); }, 1000); });