12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta name="description" content="Webpage description goes here" />
- <meta charset="utf-8">
- <title>Change_me</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="author" content="">
- <link rel="stylesheet" href="css/style.css">
- <script src="http://code.jquery.com/jquery-latest.min.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
- <script src="https://static.line-scdn.net/liff/edge/2/sdk.js"></script>
- </head>
- <body>
- <div class="container">
- </div>
- <div id="like_button_container"></div>
- <button onclick="exportcsv();">123</button>
- <button onclick="login();">in</button>
- <button onclick="logout();">out</button>
- <button onclick="test();">test</button>
- <div id="myGrid" style="height: 600px;width:800px;" class="ag-theme-alpine"></div>
- <script>
- var liffID = '1656493448-Oz6Xrx97';
- function login() {
-
- liff.login({
-
- redirectUri: 'https://m3.hhh.com.tw/yo/test.html',
- target: '_blank'
- });
- }
- function logout() {
-
- liff.logout();
- }
- liff.init({
- liffId: liffID
- }).then(function () {
- console.log('LIFF init');
- });
- function test() {
-
-
- var context = liff.getContext();
- console.log(context);
-
-
- liff.getProfile()
- .then(function (profile) {
- console.log(profile);
- });
-
-
-
-
- var user = liff.getDecodedIDToken();
- var email = user.email;
- console.log(email);
- }
- </script>
- </body>
- </html>
|