Jared 2 år sedan
förälder
incheckning
2b4a9fb782
1 ändrade filer med 7 tillägg och 100 borttagningar
  1. 7 100
      index.html

+ 7 - 100
index.html

@@ -3,7 +3,7 @@
   <head>
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1" />
-    <title>LIFF 2.0 Example</title>
+    <title>ChoozMo LINE傳單</title>
     <link rel="shortcut icon" href="icon/icon.ico" type="image/x-icon" />
     <link rel="icon" href="icon/icon.ico" type="image/x-icon" />
     <style media="screen">
@@ -135,7 +135,7 @@
   </head>
   <body>
     <div id="message">
-      <center><h2>LIFF 2.0 | Example</h2></center>
+      <center><h2>ChoozMo LINE傳單</h2></center>
 
       <center>
         <img
@@ -147,107 +147,14 @@
         />
       </center>
       <center>
-        <button onclick="login()">liff.login()</button>
-        <button onclick="logout()">liff.logout()</button>
-        <button onclick="sendMessage()">liff.sendMessage()</button>
-        <button onclick="scanCode()">liff.scanCode()</button>
-        <button onclick="openWindow()">liff.openWindow()</button>
-        <button onclick="closeWindow()">liff.closeWindow()</button>
-        <button onclick="shareTargetPicker()">liff.shareTargetPicker()</button>
+        <button onclick="login()">登入LINE</button>
+        <button onclick="logout()">登出LINE</button>
+        <button onclick="shareTargetPicker()">發傳單給最多五個好友</button>
       </center>
-      <table>
-        <tr>
-          <td class="shrink_top">* Profile</td>
-          <td class="expand_top">
-            <button onclick="getProfile()">View raw JSON Data</button>
-          </td>
-        </tr>
-        <tr>
-          <td class="shrink">userId</td>
-          <td class="expand" id="userId">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink">displayName</td>
-          <td class="expand" id="displayName">Loading. . .</td>
-        </tr>
-        <tr>
-          <td class="shrink">statusMessage</td>
-          <td class="expand" id="statusMessage">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink">Email</td>
-          <td class="expand" id="email">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink">pictureUrl</td>
-          <td class="expand">
-            <a id="pictureUrl" target="_blank">Loading . . .</a>
-          </td>
-        </tr>
-        <tr>
-          <td class="shrink_top">* LIFF Context</td>
-          <td class="expand_top"></td>
-        </tr>
-        <tr>
-          <td class="shrink_context">liff.getOS()</td>
-          <td class="expand" id="getOS">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink_context">liff.getLanguage()</td>
-          <td class="expand" id="getLanguage">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink_context">liff.getVersion()</td>
-          <td class="expand" id="getVersion">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink_context">liff.isInClient()</td>
-          <td class="expand" id="isInClient">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink_context">liff.isLoggedIn()</td>
-          <td class="expand" id="isLoggedIn">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink_context">liff.getAccessToken()</td>
-          <td class="expand" id="getAccessToken">
-            <button onclick="getAccessToken()">show AccessToken</button>
-          </td>
-        </tr>
-        <tr>
-          <td class="shrink_context">liff.getContext()</td>
-          <td class="expand" id="">
-            <button onclick="getContext()">show raw JSON Data</button>
-          </td>
-        </tr>
-        <tr>
-          <td class="shrink_context">| -> type</td>
-          <td class="expand" id="context_type">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink_context">| -> viewType</td>
-          <td class="expand" id="context_viewType">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink_context">| -> userId</td>
-          <td class="expand" id="context_userId">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink_context">| -> utouId</td>
-          <td class="expand" id="context_utouId">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink_context">| -> roomId</td>
-          <td class="expand" id="context_roomId">Loading . . .</td>
-        </tr>
-        <tr>
-          <td class="shrink_context">| -> groupId</td>
-          <td class="expand" id="context_groupId">Loading . . .</td>
-        </tr>
-      </table>
+
     </div>
 
-    <p id="load">Develop with ♡ by Siratee K.</p>
+    <p id="load">ChoozMo</p>
     <script src="https://static.line-scdn.net/liff/edge/2.1/sdk.js"></script>
     <script src="js/liff-init.js?1234"></script>
     <script src="js/liff-functions.js?12345"></script>