123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta content="width=device-width, initial-scale=1.0" name="viewport">
- <title>Ark Cards</title>
- <meta content="" name="description">
- <meta content="" name="keywords">
- <!-- Favicons -->
- <link href="assets/img/favicon.png" rel="icon">
- <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
- <!-- Google Fonts -->
- <link href="https://fonts.gstatic.com" rel="preconnect">
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
- <!-- Vendor CSS Files -->
- <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
- <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
- <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
- <link href="assets/vendor/quill/quill.snow.css" rel="stylesheet">
- <link href="assets/vendor/quill/quill.bubble.css" rel="stylesheet">
- <link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
- <link href="assets/vendor/simple-datatables/style.css" rel="stylesheet">
- <!-- Template Main CSS File -->
- <link href="assets/css/style.css" rel="stylesheet">
- <!-- Ark Cards -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
- <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
- <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
- <!-- =======================================================
- * Template Name: NiceAdmin - v2.2.0
- * Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
- * Author: BootstrapMade.com
- * License: https://bootstrapmade.com/license/
- ======================================================== -->
- </head>
- <body>
- <!-- ======= Header ======= -->
- <header id="header" class="header fixed-top d-flex align-items-center">
- <div class="d-flex align-items-center justify-content-between">
- <a href="index.html" class="logo d-flex align-items-center">
- <!-- <img src="assets/img/logo.png" alt=""> -->
- <img src="assets/img/ark_logo.png" alt="Ark Cards">
- <span class="d-none d-lg-block">Ark Cards</span>
- </a>
- <i class="bi bi-list toggle-sidebar-btn"></i>
- </div>
- <!--
- <div class="search-bar">
- <form class="search-form d-flex align-items-center" method="POST" action="#">
- <input type="text" name="query" placeholder="Search" title="Enter search keyword">
- <button type="submit" title="Search"><i class="bi bi-search"></i></button>
- </form>
- </div>
- <nav class="header-nav ms-auto">
- <ul class="d-flex align-items-center">
- <li class="nav-item d-block d-lg-none">
- <a class="nav-link nav-icon search-bar-toggle " href="#">
- <i class="bi bi-search"></i>
- </a>
- </li>
- <li class="nav-item dropdown">
- <a class="nav-link nav-icon" href="#" data-bs-toggle="dropdown">
- <i class="bi bi-bell"></i>
- <span class="badge bg-primary badge-number">4</span>
- </a>
- <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow notifications">
- <li class="dropdown-header">
- You have 4 new notifications
- <a href="#"><span class="badge rounded-pill bg-primary p-2 ms-2">View all</span></a>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li class="notification-item">
- <i class="bi bi-exclamation-circle text-warning"></i>
- <div>
- <h4>Lorem Ipsum</h4>
- <p>Quae dolorem earum veritatis oditseno</p>
- <p>30 min. ago</p>
- </div>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li class="notification-item">
- <i class="bi bi-x-circle text-danger"></i>
- <div>
- <h4>Atque rerum nesciunt</h4>
- <p>Quae dolorem earum veritatis oditseno</p>
- <p>1 hr. ago</p>
- </div>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li class="notification-item">
- <i class="bi bi-check-circle text-success"></i>
- <div>
- <h4>Sit rerum fuga</h4>
- <p>Quae dolorem earum veritatis oditseno</p>
- <p>2 hrs. ago</p>
- </div>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li class="notification-item">
- <i class="bi bi-info-circle text-primary"></i>
- <div>
- <h4>Dicta reprehenderit</h4>
- <p>Quae dolorem earum veritatis oditseno</p>
- <p>4 hrs. ago</p>
- </div>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li class="dropdown-footer">
- <a href="#">Show all notifications</a>
- </li>
- </ul>
- </li>
- <li class="nav-item dropdown">
- <a class="nav-link nav-icon" href="#" data-bs-toggle="dropdown">
- <i class="bi bi-chat-left-text"></i>
- <span class="badge bg-success badge-number">3</span>
- </a>
- <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow messages">
- <li class="dropdown-header">
- You have 3 new messages
- <a href="#"><span class="badge rounded-pill bg-primary p-2 ms-2">View all</span></a>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li class="message-item">
- <a href="#">
- <img src="assets/img/messages-1.jpg" alt="" class="rounded-circle">
- <div>
- <h4>Maria Hudson</h4>
- <p>Velit asperiores et ducimus soluta repudiandae labore officia est ut...</p>
- <p>4 hrs. ago</p>
- </div>
- </a>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li class="message-item">
- <a href="#">
- <img src="assets/img/messages-2.jpg" alt="" class="rounded-circle">
- <div>
- <h4>Anna Nelson</h4>
- <p>Velit asperiores et ducimus soluta repudiandae labore officia est ut...</p>
- <p>6 hrs. ago</p>
- </div>
- </a>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li class="message-item">
- <a href="#">
- <img src="assets/img/messages-3.jpg" alt="" class="rounded-circle">
- <div>
- <h4>David Muldon</h4>
- <p>Velit asperiores et ducimus soluta repudiandae labore officia est ut...</p>
- <p>8 hrs. ago</p>
- </div>
- </a>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li class="dropdown-footer">
- <a href="#">Show all messages</a>
- </li>
- </ul>
- </li>
- <li class="nav-item dropdown pe-3">
- <a class="nav-link nav-profile d-flex align-items-center pe-0" href="#" data-bs-toggle="dropdown">
- <img src="assets/img/profile-img.jpg" alt="Profile" class="rounded-circle">
- <span class="d-none d-md-block dropdown-toggle ps-2">K. Anderson</span>
- </a>
- <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow profile">
- <li class="dropdown-header">
- <h6>Kevin Anderson</h6>
- <span>Web Designer</span>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li>
- <a class="dropdown-item d-flex align-items-center" href="users-profile.html">
- <i class="bi bi-person"></i>
- <span>My Profile</span>
- </a>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li>
- <a class="dropdown-item d-flex align-items-center" href="users-profile.html">
- <i class="bi bi-gear"></i>
- <span>Account Settings</span>
- </a>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li>
- <a class="dropdown-item d-flex align-items-center" href="pages-faq.html">
- <i class="bi bi-question-circle"></i>
- <span>Need Help?</span>
- </a>
- </li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li>
- <a class="dropdown-item d-flex align-items-center" href="#">
- <i class="bi bi-box-arrow-right"></i>
- <span>Sign Out</span>
- </a>
- </li>
- </ul>
- </li> -->
- </ul>
- </nav>
- </header>
- <!-- ======= Sidebar ======= -->
- <aside id="sidebar" class="sidebar">
- <ul class="sidebar-nav" id="sidebar-nav">
- <li class="nav-item">
- <a class="nav-link collapsed" href="transaction.html">
- <i class="bi bi-grid"></i>
- <span>交易記錄</span>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" href="nft.html">
- <i class="bi bi-grid"></i>
- <span>NFT管理</span>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" href="user.html">
- <i class="bi bi-grid"></i>
- <span>會員帳號管理</span>
- </a>
- </li>
- <!-- <li class="nav-item">
- <a class="nav-link collapsed" href="mint.html">
- <i class="bi bi-grid"></i>
- <span>Mint管理</span>
- </a>
- </li> -->
- <!-- <li class="nav-item">
- <a class="nav-link collapsed" href="index.html">
- <i class="bi bi-grid"></i>
- <span>Dashboard</span>
- </a>
- </li>
-
- <li class="nav-item">
- <a class="nav-link collapsed" data-bs-target="#components-nav" data-bs-toggle="collapse" href="#">
- <i class="bi bi-menu-button-wide"></i><span>Components</span><i class="bi bi-chevron-down ms-auto"></i>
- </a>
- <ul id="components-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
- <li>
- <a href="components-alerts.html">
- <i class="bi bi-circle"></i><span>Alerts</span>
- </a>
- </li>
- <li>
- <a href="components-accordion.html">
- <i class="bi bi-circle"></i><span>Accordion</span>
- </a>
- </li>
- <li>
- <a href="components-badges.html">
- <i class="bi bi-circle"></i><span>Badges</span>
- </a>
- </li>
- <li>
- <a href="components-breadcrumbs.html">
- <i class="bi bi-circle"></i><span>Breadcrumbs</span>
- </a>
- </li>
- <li>
- <a href="components-buttons.html">
- <i class="bi bi-circle"></i><span>Buttons</span>
- </a>
- </li>
- <li>
- <a href="components-cards.html">
- <i class="bi bi-circle"></i><span>Cards</span>
- </a>
- </li>
- <li>
- <a href="components-carousel.html">
- <i class="bi bi-circle"></i><span>Carousel</span>
- </a>
- </li>
- <li>
- <a href="components-list-group.html">
- <i class="bi bi-circle"></i><span>List group</span>
- </a>
- </li>
- <li>
- <a href="components-modal.html">
- <i class="bi bi-circle"></i><span>Modal</span>
- </a>
- </li>
- <li>
- <a href="components-tabs.html">
- <i class="bi bi-circle"></i><span>Tabs</span>
- </a>
- </li>
- <li>
- <a href="components-pagination.html">
- <i class="bi bi-circle"></i><span>Pagination</span>
- </a>
- </li>
- <li>
- <a href="components-progress.html">
- <i class="bi bi-circle"></i><span>Progress</span>
- </a>
- </li>
- <li>
- <a href="components-spinners.html">
- <i class="bi bi-circle"></i><span>Spinners</span>
- </a>
- </li>
- <li>
- <a href="components-tooltips.html">
- <i class="bi bi-circle"></i><span>Tooltips</span>
- </a>
- </li>
- </ul>
- </li>
- <li class="nav-item">
- <a class="nav-link " data-bs-target="#forms-nav" data-bs-toggle="collapse" href="#">
- <i class="bi bi-journal-text"></i><span>Forms</span><i class="bi bi-chevron-down ms-auto"></i>
- </a>
- <ul id="forms-nav" class="nav-content collapse show" data-bs-parent="#sidebar-nav">
- <li>
- <a href="nft_add.html" class="active">
- <i class="bi bi-circle"></i><span>Form Elements</span>
- </a>
- </li>
- <li>
- <a href="forms-layouts.html">
- <i class="bi bi-circle"></i><span>Form Layouts</span>
- </a>
- </li>
- <li>
- <a href="forms-editors.html">
- <i class="bi bi-circle"></i><span>Form Editors</span>
- </a>
- </li>
- <li>
- <a href="forms-validation.html">
- <i class="bi bi-circle"></i><span>Form Validation</span>
- </a>
- </li>
- </ul>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" data-bs-target="#tables-nav" data-bs-toggle="collapse" href="#">
- <i class="bi bi-layout-text-window-reverse"></i><span>Tables</span><i class="bi bi-chevron-down ms-auto"></i>
- </a>
- <ul id="tables-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
- <li>
- <a href="tables-general.html">
- <i class="bi bi-circle"></i><span>General Tables</span>
- </a>
- </li>
- <li>
- <a href="user.html">
- <i class="bi bi-circle"></i><span>Data Tables</span>
- </a>
- </li>
- </ul>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" data-bs-target="#charts-nav" data-bs-toggle="collapse" href="#">
- <i class="bi bi-bar-chart"></i><span>Charts</span><i class="bi bi-chevron-down ms-auto"></i>
- </a>
- <ul id="charts-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
- <li>
- <a href="charts-chartjs.html">
- <i class="bi bi-circle"></i><span>Chart.js</span>
- </a>
- </li>
- <li>
- <a href="charts-apexcharts.html">
- <i class="bi bi-circle"></i><span>ApexCharts</span>
- </a>
- </li>
- <li>
- <a href="charts-echarts.html">
- <i class="bi bi-circle"></i><span>ECharts</span>
- </a>
- </li>
- </ul>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" data-bs-target="#icons-nav" data-bs-toggle="collapse" href="#">
- <i class="bi bi-gem"></i><span>Icons</span><i class="bi bi-chevron-down ms-auto"></i>
- </a>
- <ul id="icons-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
- <li>
- <a href="icons-bootstrap.html">
- <i class="bi bi-circle"></i><span>Bootstrap Icons</span>
- </a>
- </li>
- <li>
- <a href="icons-remix.html">
- <i class="bi bi-circle"></i><span>Remix Icons</span>
- </a>
- </li>
- <li>
- <a href="icons-boxicons.html">
- <i class="bi bi-circle"></i><span>Boxicons</span>
- </a>
- </li>
- </ul>
- </li>
- <li class="nav-heading">Pages</li>
- <li class="nav-item">
- <a class="nav-link collapsed" href="users-profile.html">
- <i class="bi bi-person"></i>
- <span>Profile</span>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" href="pages-faq.html">
- <i class="bi bi-question-circle"></i>
- <span>F.A.Q</span>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" href="pages-contact.html">
- <i class="bi bi-envelope"></i>
- <span>Contact</span>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" href="pages-register.html">
- <i class="bi bi-card-list"></i>
- <span>Register</span>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" href="login.html">
- <i class="bi bi-box-arrow-in-right"></i>
- <span>Login</span>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" href="pages-error-404.html">
- <i class="bi bi-dash-circle"></i>
- <span>Error 404</span>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link collapsed" href="pages-blank.html">
- <i class="bi bi-file-earmark"></i>
- <span>Blank</span>
- </a>
- </li> -->
- </ul>
- </aside>
- <main id="main" class="main">
- <div class="pagetitle">
- <h1>Mint 管理</h1>
- <nav>
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="index.html">Home</a></li>
- <li class="breadcrumb-item active">Mint</li>
- </ol>
- </nav>
- </div><!-- End Page Title -->
- <section class="section">
- <div class="row">
- <div class="col-lg-6">
- <div class="card">
- <div class="card-body">
- <h5 class="card-title">Mint</h5>
- <form>
- <div class="row mb-3">
- <label for="inputText" class="col-sm-2 col-form-label">目標地址</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" id="toaddress" name="toaddress" required>
- </div>
- </div>
- <div class="row mb-3">
- <label for="inputNumber" class="col-sm-2 col-form-label">數量</label>
- <div class="col-sm-10">
- <input type="number" class="form-control" id="amount" name="amount" required>
- </div>
- </div>
- <div class="row mb-3">
- <div class="text-center">
- <button id="btn_mint" type="submit" class="btn btn-primary btn-block">確認送出</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </section>
- </main><!-- End #main -->
- <!-- ======= Footer ======= -->
- <footer id="footer" class="footer">
- <div class="copyright">
- © Copyright <strong><span>Ark Cards</span></strong>. All Rights Reserved
- </div>
- <div class="credits">
- <!-- All the links in the footer should remain intact. -->
- <!-- You can delete the links only if you purchased the pro version. -->
- <!-- Licensing information: https://bootstrapmade.com/license/ -->
- <!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/ -->
- Designed by <a href="https://ai.choozmo.com/">Choozmo</a>
- </div>
- </footer><!-- End Footer -->
- <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
- <!-- Vendor JS Files -->
- <script src="assets/vendor/apexcharts/apexcharts.min.js"></script>
- <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
- <script src="assets/vendor/chart.js/chart.min.js"></script>
- <script src="assets/vendor/echarts/echarts.min.js"></script>
- <script src="assets/vendor/quill/quill.min.js"></script>
- <script src="assets/vendor/simple-datatables/simple-datatables.js"></script>
- <script src="assets/vendor/tinymce/tinymce.min.js"></script>
- <script src="assets/vendor/php-email-form/validate.js"></script>
- <!-- Template Main JS File -->
- <script src="assets/js/main.js"></script>
- <!-- Ark Cards JS File -->
- <script src="assets/js/ark.js"></script>
- <script>
- $(document).ready(function($) {
- var access_token = get_access_token();
- // 檢查是否可存取該頁面
- checkRoute();
- // 帳號登入
- $("#btn_mint").click(function() {
- var toaddress = $('#toaddress').val();
- var amount = $('#amount').val();
- var param_string = {
- toaddress: toaddress,
- amount: amount
- };
- $.ajax({
- type: 'POST',
- url: `https://api.ptt.cx:8750/api/v1/joyso/mint?address=${toaddress}&amount=${amount}`,
- headers: {
- 'accept': 'application/json',
- 'Authorization': `Bearer ${access_token}`
- },
- success: function(res, textStatus, jqXHR) {
- console.log(res); // test
- Swal.fire({
- title: '頁面網址不存在',
- icon: 'error',
- // text: res.detail[0].msg,
- text: 'API目前有問題,暫時無法執行此操作',
- confirmButtonColor: '#3085d6'
- });
- }, error: function(xhr, status, error) {
- // {"detail":[{"loc":["body"],"msg":"value is not a valid dict","type":"type_error.dict"}]}
- var res = JSON.parse(xhr.responseText);
- console.log(res.detail[0].msg); // test
-
- Swal.fire({
- title: '注意',
- icon: 'error',
- // text: res.detail[0].msg,
- text: 'API目前有問題,暫時無法執行此操作',
- confirmButtonColor: '#3085d6'
- });
- }
- });
- return false;
- });
- });
- </script>
-
- </body>
- </html>
|