|
@@ -54,8 +54,8 @@ console.log(28);
|
|
|
// $(this).toggleClass('after-nav')
|
|
|
// })
|
|
|
|
|
|
-$(document).ready(function () {
|
|
|
|
|
|
+ function funcTest2(){
|
|
|
$.ajax({
|
|
|
method: "GET",
|
|
|
url: "designer4.json",
|
|
@@ -103,7 +103,7 @@ $(document).ready(function () {
|
|
|
</div>';
|
|
|
|
|
|
bodyBannerDes += ' \
|
|
|
- <img class="banner-img img-fluid" id="img_id" src="'+ msg[arrIndex].workimg[arrIndex].img + '" alt="">\
|
|
|
+ <img class="banner-img img-fluid" id="img_id" src="'+ msg[arrIndex].workimg[0].img + '" alt="">\
|
|
|
';
|
|
|
|
|
|
|
|
@@ -116,10 +116,12 @@ $(document).ready(function () {
|
|
|
// $('#jsontest').append(test);
|
|
|
});
|
|
|
|
|
|
+ // window.setInterval("funcTest2()",5000);
|
|
|
+
|
|
|
+ }
|
|
|
+ window.onload = funcTest2();
|
|
|
|
|
|
|
|
|
-});
|
|
|
-
|
|
|
// 點選該設計師,導至其對應id的參數網址
|
|
|
|
|
|
$('#278').click(function () {
|
|
@@ -277,11 +279,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);
|
|
|
+// }
|
|
|
|
|
|
-$("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.onload = funcTest();
|