|
@@ -0,0 +1,128 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
+ <META HTTP-EQUIV="Expires" CONTENT="-1">
|
|
|
+ <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
|
|
|
+ <title>風的通行證 | ARK Cards</title>
|
|
|
+
|
|
|
+
|
|
|
+ <link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
|
|
|
+ <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" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css" />
|
|
|
+ <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="sec01" class="sec01 container-fluid px-0 mx-0 mb-5">
|
|
|
+ <div class="card bg-transparent text-white border-0">
|
|
|
+ <img src="./img/1618431559-GettyImages-1309739877.jpg" class="img-fluid" alt="...">
|
|
|
+ <div style="position: relative;" class="card-img-overlay p-0 d-flex align-items-end justify-content-center">
|
|
|
+ <h5 style="background: rgba(0,0,0,0.7); font-size: 16px; position: absolute; z-index: 20;" class="card-title p-4 w-50 text-center fw-bold">現場活動好康</h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </section>
|
|
|
+ <section id="sec05-moblie" class="sec05 my-4">
|
|
|
+ <div class="sec05-moblie container-fluid">
|
|
|
+ <div class="sec05-moblie-header">
|
|
|
+ <h1 class="secn-title ps-2">您可以獲得【風的通行證】</h1>
|
|
|
+ </div>
|
|
|
+ <p class="text-start mb-2">※點選【同意接收】按鈕,即可獲得【風的通行證】</p>
|
|
|
+
|
|
|
+ <div class="sec06-nft-mall row row-cols-1 row-cols-md-4 g-4">
|
|
|
+ <div class="col">
|
|
|
+ <div class="card h-100">
|
|
|
+ <a class="event-nft-send" target="_blank">
|
|
|
+ <img src="https://nftboard.today/wp-content/uploads/2021/09/222470998_128916062766762_7154517081215527386_n.jpeg" class="card-img-top" alt="風的通行證">
|
|
|
+ </a>
|
|
|
+ <div class="card-body mx-auto p-3">
|
|
|
+ <button type="button" class="event-nft-send btn btn-primary">同意接收</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </section>
|
|
|
+
|
|
|
+ <footer style="background: #484848;" class="py-4 w-100 px-0 mx-0">
|
|
|
+ <p class="text-white text-center mb-0">Copyright 2021 版權所有 © Ark.Cards</p>
|
|
|
+ </footer>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <script src="https://unpkg.com/aos@next/dist/aos.js"></script>
|
|
|
+ <script>
|
|
|
+ AOS.init();
|
|
|
+ </script>
|
|
|
+ <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
|
|
|
+ integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
|
|
|
+ crossorigin="anonymous"></script>
|
|
|
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js"
|
|
|
+ integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT"
|
|
|
+ crossorigin="anonymous"></script>
|
|
|
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
|
|
+ <script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
|
|
|
+ <script src="./goto.js"></script>
|
|
|
+ <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
|
|
+
|
|
|
+ <script charset="utf-8" src="https://static.line-scdn.net/liff/edge/2/sdk.js"></script>
|
|
|
+</body>
|
|
|
+
|
|
|
+<script>
|
|
|
+// 【風的通行證】已送出訊息通知
|
|
|
+function nft_sent_message() {
|
|
|
+ Swal.fire({
|
|
|
+ title: '【風的通行證】已送出',
|
|
|
+ icon: 'success',
|
|
|
+ confirmButtonColor: '#3085d6',
|
|
|
+ html: '加入Ark Cards好友,即可進入【我的NFT收藏】查看'
|
|
|
+ }).then((result) => {
|
|
|
+ if (result.isConfirmed) {
|
|
|
+ window.location.replace('https://liff.line.me/1645278921-kWRPP32q/?accountId=067ztnge');
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+$(".event-nft-send").click(function (e) {
|
|
|
+ // 取得liff_id
|
|
|
+ liff.init({
|
|
|
+ liffId: "1656404434-qeEpXmzx"
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ var context = liff.getContext();
|
|
|
+ console.log(context);
|
|
|
+
|
|
|
+ var profile = liff.getProfile();
|
|
|
+ console.log(profile);
|
|
|
+
|
|
|
+ // login
|
|
|
+ if (!liff.isLoggedIn()) {
|
|
|
+ console.log("您未登入");
|
|
|
+ console.log('context.userId = ' + context.userId); // test
|
|
|
+
|
|
|
+ // 呼叫fastAPI,贈送【風的通行證】
|
|
|
+
|
|
|
+ nft_sent_message();
|
|
|
+ } else {
|
|
|
+ console.log("您已登入");
|
|
|
+
|
|
|
+ // 呼叫fastAPI,贈送【風的通行證】
|
|
|
+
|
|
|
+ nft_sent_message();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.log('初始化失敗: ' + err.code + ", " + err.message);
|
|
|
+ });
|
|
|
+});
|
|
|
+</script>
|
|
|
+</html>
|