|
@@ -55,7 +55,7 @@ console.log(28);
|
|
|
// })
|
|
|
|
|
|
|
|
|
- function funcTest2(){
|
|
|
+function funcTest2() {
|
|
|
$.ajax({
|
|
|
method: "GET",
|
|
|
url: "designer4.json",
|
|
@@ -94,13 +94,15 @@ console.log(28);
|
|
|
<img class="img-fluid" src="./img/banner/banner-mobile.png" alt="">\
|
|
|
</div>\
|
|
|
<div class="bannerm-2 col-7 order-2 col-lg-2 order-3 px-0 mx-0">\
|
|
|
- <img class="img-fluid" src="'+ msg[arrIndex].Designerimg + '" alt="">\
|
|
|
+ <a href="./about/index.html?id='+ msg[arrIndex].id + '"><img class="img-fluid" src="' + msg[arrIndex].Designerimg + '" alt=""></a>\
|
|
|
</div>\
|
|
|
<div class="bannerm-1 col-5 order-3 col-lg-5 order-2 text-white text-start py-3">\
|
|
|
- <div class="banner1-1" style="font-weight: 900;">'+ msg[arrIndex].WorkName + '</div>\
|
|
|
- <p><span class="fs-5">'+ msg[arrIndex].DesignerName + '</span>設計師</p>\
|
|
|
+ <a style="text-decoration: none;color:#fff;" href="./about/index.html?id='+ msg[arrIndex].id + '">\
|
|
|
+ <div class="banner1-1" style="font-weight: 900;">'+ msg[arrIndex].WorkName + '</div>\
|
|
|
+ <p><span class="fs-5">'+ msg[arrIndex].DesignerName + '</span>設計師</p>\
|
|
|
+ </a>\
|
|
|
</div>\
|
|
|
- </div>';
|
|
|
+ </div > ';
|
|
|
|
|
|
bodyBannerDes += ' \
|
|
|
<img class="banner-img img-fluid" id="img_id" src="'+ msg[arrIndex].workimg[0].img + '" alt="">\
|
|
@@ -116,10 +118,10 @@ console.log(28);
|
|
|
// $('#jsontest').append(test);
|
|
|
});
|
|
|
|
|
|
- // window.setInterval("funcTest2()",5000);
|
|
|
-
|
|
|
- }
|
|
|
- window.onload = funcTest2();
|
|
|
+ // window.setInterval("funcTest2()",5000);
|
|
|
+
|
|
|
+}
|
|
|
+window.onload = funcTest2();
|
|
|
|
|
|
|
|
|
// 點選該設計師,導至其對應id的參數網址
|
|
@@ -279,15 +281,15 @@ $('#491').click(function () {
|
|
|
|
|
|
|
|
|
|
|
|
-// function funcTest(){
|
|
|
-// $("div.sec01-designer div").sort(function(){
|
|
|
-// return Math.random()*10 > 5 ? 1 : -1;
|
|
|
-// },).each(function(){
|
|
|
-// var $t = $(this),
|
|
|
-// color = $t.attr("");
|
|
|
-// $t.css({backgroundColor: color}).appendTo( $t.parent() );
|
|
|
-// });
|
|
|
-// window.setInterval("funcTest()",5000);
|
|
|
-// }
|
|
|
+function funcTest() {
|
|
|
+ $("div.sec01-designer div").sort(function () {
|
|
|
+ return Math.random() * 10 > 5 ? 1 : -1;
|
|
|
+ }).each(function () {
|
|
|
+ var $t = $(this),
|
|
|
+ color = $t.attr("");
|
|
|
+ $t.css({ backgroundColor: color }).appendTo($t.parent());
|
|
|
+ });
|
|
|
+ // window.setInterval("funcTest()",5000);
|
|
|
+}
|
|
|
|
|
|
-// window.onload = funcTest();
|
|
|
+window.onload = funcTest();
|