| 12345678910111213141516171819202122232425262728293031323334353637383940 | 
							- <!DOCTYPE html>
 
- <html lang="en">
 
- <head>
 
-   <meta charset="UTF-8">
 
-   <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
-   <title>幸福空間 - 咖啡券控制顯示</title>
 
-   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
 
-   <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
 
-     crossorigin="anonymous">
 
-   <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
 
-   <link rel="stylesheet" href="./style.css">
 
-   <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
 
- </head>
 
- <body>
 
-     <div class="container text-center">
 
-         <h2 class="mt-5">咖啡券控制顯示</h2>
 
-         <div class="d-flex justify-content-center" style="margin-top: 10%;">
 
-             <button class="btn btn-warning d-inline-block" style="margin-right: 1rem;" onclick="onshow()">顯示咖啡券</button>
 
-             <button class="btn btn-warning" onclick="offshow()">不顯示咖啡券</button>
 
-         </div>
 
-     </div>
 
- <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
 
-   <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js'></script>
 
- <script>
 
-    function onshow() {
 
-     axios.get('http://q.ptt.cx/coffee/set/1').then(res => {
 
-         console.log(res.data);
 
-         window.alert('已開啟咖啡券顯示!咖啡券將顯示於頁尾');
 
-     });
 
-    }
 
-    function offshow() {
 
-     axios.get('http://q.ptt.cx/coffee/set/0').then(res => {
 
-         window.alert('關閉咖啡券顯示!');
 
-         console.log(res.data);
 
-     });
 
-    }
 
- </script>
 
- </body>
 
- </html>
 
 
  |