jeter20131220 il y a 3 ans
Parent
commit
86843c5a07
1 fichiers modifiés avec 9 ajouts et 29 suppressions
  1. 9 29
      index.html

+ 9 - 29
index.html

@@ -1,5 +1,6 @@
 <!DOCTYPE html>
 <html lang="en">
+
 <head>
     <meta charset="UTF-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -12,6 +13,7 @@
     <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css" />
     <link rel="stylesheet" href="./style.css">
 </head>
+
 <body>
     <!-- 主選單 -->
     <section id="Navigation" class="container-fluid">
@@ -383,7 +385,7 @@
                                         <div>
                                             <h1>EXCEL實戰速成</h1>
                                             <h1 style="opacity: 0;">EXCEL實戰速成</h1>
-                                          
+
                                         </div>
                                         <div>
                                             <p>職場晉升加薪秘密武器</p>
@@ -725,7 +727,8 @@
                                         lead-in to additional content. This content is a little bit longer.</p>
                                     <p class="card-text row">
                                         <small class="text-muted col-8">
-                                            <img class="m-1" style="width: 20px;" src="./img/sec05/time.png"alt=""><span>125分鐘</span>
+                                            <img class="m-1" style="width: 20px;" src="./img/sec05/time.png"
+                                                alt=""><span>125分鐘</span>
                                         </small>
                                         <small style="color:#eb144c; font-size:20px;" class="col-4">NT$1200</small>
 
@@ -954,38 +957,14 @@
             $.ajax({
                 method: "POST",
                 url: "https://welife.asia:8002/get_courses",
-                data:'[15]',
+                data: '[15]',
                 dataType: "json",
             })
 
                 .done(function (msg) {
                     var sec05course = '';
                     console.log(msg);
-                    const limit = 7;
-                    for (var i = 0; i < limit; i++) {
-                        sec05course += ' \
-                <div  class="col-12 col-lg-6">\
-                    <div class="card mb-3" style="max-width: 540px;">\
-                        <div class="row g-0">\
-                            <div class="col-6  col-lg-4">\
-                                <img src="'+ msg[i].cover_img +'" class="img-fluid rounded-start" alt="">\
-                                <small class="text-muted"><img class="m-1" style="width: 20px;" src="./img/sec05/master.png" alt="">'+ msg[i].units +'</small>\
-                            </div>\
-                            <div class="col-6  col-lg-8">\
-                               <h5 class="card-title">'+ msg[i].title +'</h5>\
-                              <p class="card-text">'+ msg[i].profile +'</p>\
-                                <p class="card-text row">\
-                                     <small class="text-muted col-8">\
-                                        <img class="m-1" style="width: 20px;" src="./img/sec05/time.png"alt=""><span>'+ msg[i].hours +'</span>\
-                                    </small>\
-                                    <small style="color:#eb144c; font-size:20px;" class="col-4">'+ msg[i].price_discount +'</small>\
-                                </p>\
-                            </div>\
-                        </div> \
-                    </div> \
-                </div>';
-
-                    }
+                   
                     // $('#sec-work-box').html(sec05course);
                     // var test = msg[0].newstext1;
 
@@ -997,4 +976,5 @@
         });
     </script>
 </body>
-</html>
+
+</html>