|
@@ -1,3 +1,14 @@
|
|
|
|
+$(".popular").hide();
|
|
|
|
+
|
|
|
|
+$(document).on("click", ".likeSee__state__filter--item", function (event) {
|
|
|
|
+ $(".News").toggle();
|
|
|
|
+ $(".popular").toggle();
|
|
|
|
+ $(".likeSee__state__filter--item").removeClass('active');
|
|
|
|
+ $(this).addClass("active");
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
function get_data() {
|
|
function get_data() {
|
|
$.ajax({
|
|
$.ajax({
|
|
method: "GET",
|
|
method: "GET",
|
|
@@ -16,7 +27,7 @@ function get_data() {
|
|
let breadcrumbTitle="";
|
|
let breadcrumbTitle="";
|
|
let article_info="";
|
|
let article_info="";
|
|
let OtherColumns="";
|
|
let OtherColumns="";
|
|
-
|
|
|
|
|
|
+ let PopularColumns="";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -58,6 +69,27 @@ function get_data() {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ for(let i=0; i<msg[0].PopularColumns.length; i++){
|
|
|
|
+ PopularColumns+=
|
|
|
|
+ '<div class="col-12 col-md-4 ps-0"><div class="cardList__items">\
|
|
|
|
+ <a target="_blank" href="https://hhh.com.tw/columns/detail/'+msg[0].PopularColumns[i].Columnsid+'/"> <img src="'+msg[0].PopularColumns[i].ColumnsCoverImg+'" alt="">\
|
|
|
|
+ <div class="cardList__items__content">\
|
|
|
|
+ <a href="https://hhh.com.tw/columns/detail/'+msg[0].PopularColumns[i].Columnsid+'/"" target="_blank">\
|
|
|
|
+ <div class="cardList__items--title cardList__items--ellipse">\
|
|
|
|
+ '+msg[0].PopularColumns[i].Columnstitle+'\
|
|
|
|
+ </div>\
|
|
|
|
+ </a>'
|
|
|
|
+ PopularColumns+='<p>'
|
|
|
|
+ for(k=0; k<msg[0].PopularColumns[i].ColumnsTag.length; k++){
|
|
|
|
+ PopularColumns+='\
|
|
|
|
+ <a class="likeSee__tag--item" href="https://hhh.com.tw/columns/lists/'+msg[0].PopularColumns[i].ColumnsTag[k].tag+'-keyword/all-columntypea/" arget="_blank">'+msg[0].PopularColumns[i].ColumnsTag[k].Tag+'</a>'
|
|
|
|
+ }
|
|
|
|
+ PopularColumns+='</p>'
|
|
|
|
+ PopularColumns+='</div></div></div>'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -71,6 +103,10 @@ function get_data() {
|
|
|
|
|
|
$('.OtherColumns').html(OtherColumns);
|
|
$('.OtherColumns').html(OtherColumns);
|
|
|
|
|
|
|
|
+ $('.PopularColumns').html(PopularColumns);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
});
|
|
});
|