|
@@ -0,0 +1,428 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="zh-TW">
|
|
|
+
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="ie=edge, Chrome=1">
|
|
|
+ <meta http-equiv="Cache-Control" content="no-cache">
|
|
|
+ <title>AI Spokesgirl</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.1.0/css/all.css"
|
|
|
+ integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
|
|
|
+ <link rel="preconnect" href="https://fonts.googleapis.com">
|
|
|
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
|
+ <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
|
+ <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="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.18/dist/sweetalert2.min.css">
|
|
|
+ <link rel="stylesheet" href="./styleMV.css">
|
|
|
+ <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
|
|
+ <title>AI Spokesgirl</title>
|
|
|
+ <style>
|
|
|
+ .auto-date .card {
|
|
|
+ -webkit-box-shadow: 1px 1px 5px 1px rgba(201, 201, 201, 0.637);
|
|
|
+ box-shadow: 1px 1px 5px 1px rgba(201, 201, 201, 0.637);
|
|
|
+ }
|
|
|
+ .action-button {
|
|
|
+ width: 100px;
|
|
|
+ background: #1c7ce0;
|
|
|
+ font-weight: bold;
|
|
|
+ color: white;
|
|
|
+ border: 0 none;
|
|
|
+ border-radius: 1px;
|
|
|
+ cursor: pointer;
|
|
|
+ padding: 10px 5px;
|
|
|
+ margin: 10px auto;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+
|
|
|
+
|
|
|
+<body>
|
|
|
+ <!-- ================================================================= -->
|
|
|
+ <!-- navbar -->
|
|
|
+ <div class="text-center link-box" style="position: fixed; right: 2vw; bottom: 2vh;z-index: 10;padding: 1.2rem 1rem;width: 4rem;height: 4rem;
|
|
|
+ background-color: white; border-radius: 50%;box-shadow: 1px 1px 5px 1px rgba(201, 201, 201, 0.637);">
|
|
|
+ <i class="fas fa-link copy"></i>
|
|
|
+ </div>
|
|
|
+ <nav class="navbar navbar-expand-lg navbar-light">
|
|
|
+ <div class="container-fluid">
|
|
|
+ <a class="navbar-brand" href="index.html">>AI Spokesgirl</a>
|
|
|
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
|
|
|
+ aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
+ <span class="navbar-toggler-icon"></span>
|
|
|
+ </button>
|
|
|
+ <div class="collapse navbar-collapse" id="navbarSupportedContent" class="d-md-none">
|
|
|
+ <ul class="navbar-nav ms-auto my-2 mb-lg-0">
|
|
|
+ <li class="nav-list-item pb-1 mb-3" data-bs-toggle="modal" data-bs-target="#howto">
|
|
|
+ <i class="fas fa-book-open me-2"></i>
|
|
|
+ <lan set-lan="html:usage_intro">使用說明</lan>
|
|
|
+ </li>
|
|
|
+ <!-- <li class="nav-list-item pb-1" data-bs-toggle="modal" data-bs-target="#history" onclick="openNav()">
|
|
|
+ <i class="fas fa-history me-2"></i>
|
|
|
+ <lan set-lan="html:history">歷史紀錄</lan>
|
|
|
+ </li> -->
|
|
|
+ <!-- <li class="nav-item">
|
|
|
+ <a class="nav-link active" aria-current="page" href="pricing.html" set-lan="html:pricing">早鳥方案</a>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item dropdown">
|
|
|
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
|
+ 中/En
|
|
|
+ </a>
|
|
|
+ <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
|
+ <li><button class="nav-link lan-swtich" aria-current="page" set-lan="html:en" onclick="changeLan(this)" value="en">English</button></li>
|
|
|
+ <li><button class="nav-link lan-switch" aria-current="page" set-lan="html:zh" onclick="changeLan(this)" value="zh">中文</button></li>
|
|
|
+ </ul>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="nav-link active btn-login" aria-current="page" href="login.html" set-lan="html:login">登入</a>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="nav-link btn-userProfile" aria-current="page" href="./user_profile2.html" set-lan="html:user_profile">會員資料</a>
|
|
|
+ </li>
|
|
|
+ <li class="nav-item">
|
|
|
+ <a class="nav-link btn-logout" aria-current="page" set-lan="html:logout">登出</a>
|
|
|
+ </li> -->
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </nav>
|
|
|
+ <!-- ================================================================= -->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- ================================================================= -->
|
|
|
+ <!-- content -->
|
|
|
+ <div class="container-fluid px-0">
|
|
|
+ <div class="container-fluid">
|
|
|
+ <!-- <div id="mySidenav" class="sidenav">
|
|
|
+ <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
|
|
|
+ <h2 class="go_title" href="index.html"><a class="nav-link active" aria-current="page" href="index.html">AI Spokesgirl</a></h2>
|
|
|
+ <ul class="nav-list">
|
|
|
+ <li class="nav-list-item pb-1 mb-3" data-bs-toggle="modal" data-bs-target="#howto"><i class="fas fa-book-open me-2"></i><lan set-lan="html:usage_intro">使用說明</lan></li>
|
|
|
+ <li class="nav-list-item pb-1" data-bs-toggle="modal" data-bs-target="#history" onclick="openNav()"><i class="fas fa-history me-2"></i><lan set-lan="html:history">歷史紀錄</lan></li>
|
|
|
+ </ul>
|
|
|
+ <p class="right-text text-white d-inline-block">Choozmo All Rights Reserved</p>
|
|
|
+ </div> -->
|
|
|
+ <div id="mySidenav" class="sidenav">
|
|
|
+ <!-- <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a> -->
|
|
|
+ <div class="sidenav-content">
|
|
|
+ <div class="text-start mt-3">
|
|
|
+ <a style="font-size: 28px;" class="nav-link active ps-1 fw-bold" aria-current="page" href="index.html"> <img style="display: inline;" width="32" class="home-btn me-2 mb-3" src="./img/about/home_黑.png" alt="">AI
|
|
|
+ Spokesgirl</a>
|
|
|
+ </div>
|
|
|
+ <div class="userName"></div>
|
|
|
+ <img class="user img-fluid rounded-circle" src="img/userimg.png" alt="">
|
|
|
+ <p class="text-white my-3 text-center" set-lan="html:Createsthtoday">今天要做甚麼影片呢?</p>
|
|
|
+ <div class="navbar-nav mb-2 mb-lg-0 px-3 pe-4">
|
|
|
+ <a class="nav-link btn-gocreate text-white col btn-makev" aria-current="page"
|
|
|
+ href="./autoMaker.html" set-lan="html:make_video">影片製作</a>
|
|
|
+ <!-- <a class="nav-link btn-gocreate text-white col-6 btn-makelong" aria-current="page" href="./make_video_long.html" set-lan="html:make_video_long">長影片製作</a> -->
|
|
|
+ </div>
|
|
|
+ <!-- <div class="navbar-nav mb-2 mb-lg-0 px-3 pe-4">
|
|
|
+ <a class="nav-link btn-gocreate text-white col-6 btn-makeppt" aria-current="page" href="./make_video_slide.html" set-lan="html:make_slides">投影片影片製作</a>
|
|
|
+ <a class="nav-link btn-gocreate text-white col-6 btn-makeen" aria-current="page" href="./index_eng.html" set-lan="html:make_video_eng">純英文影片製作</a>
|
|
|
+ </div> -->
|
|
|
+ <hr>
|
|
|
+ <ul class="nav-list ps-0">
|
|
|
+ <li class="nav-list-item pb-1 mb-3" data-bs-toggle="modal" data-bs-target="#howto"><i
|
|
|
+ class="fas fa-book-open me-2"></i>
|
|
|
+ <lan set-lan="html:usage_intro">使用說明</lan>
|
|
|
+ </li>
|
|
|
+ <!-- <a style="text-decoration: none;color:white;" href="./user_profile2.html">
|
|
|
+ <li class="nav-list-item pb-1 mb-3" data-bs-toggle="modal">
|
|
|
+ <i class="fas fa-user me-2"></i>
|
|
|
+ <lan set-lan="html:user_profile">會員資料</lan>
|
|
|
+ </li>
|
|
|
+ </a> -->
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div class="right-text">
|
|
|
+ <a target="_blank" href="http://www.choozmo.com/">| 官網 |</a>
|
|
|
+ <a target="_blank" href="https://www.linkedin.com/company/choozmo/mycompany/"><img style="width: 20px;"
|
|
|
+ src="img/linkedin-logo-copy.png" alt=""></a>
|
|
|
+ <a target="_blank" href="https://www.facebook.com/choozmo/"><img style="width: 20px;"
|
|
|
+ src="img/facebook_logos_PNG19753.png" alt=""></a>
|
|
|
+ <a target="_blank" href="https://www.instagram.com/choozmo_cmm/"><img style="width: 20px;" src="img/IG.png"
|
|
|
+ alt=""></a>
|
|
|
+ <a target="_blank" href="https://line.me/R/ti/p/@choozmo?from=page"><img style="width: 20px;"
|
|
|
+ src="img/LINE_logo.svg.png" alt=""></a>
|
|
|
+ <a target="_blank" href="https://www.youtube.com/channel/UC2Qda9PhJWuiMTCZ-j7K_hg"><img style="width: 20px;"
|
|
|
+ src="img/youtube.png" alt=""></a>
|
|
|
+ <a target="_blank" href="https://twitter.com/ai_cmm"><img style="width: 20px;" src="img/twitter.png"
|
|
|
+ alt=""></a>
|
|
|
+ <p class="Reserved text-white text-start mt-3 ps-2">Choozmo All Rights Reserved</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- <span style="font-size:30px;cursor:pointer" onclick="openNav()">☰ 過去紀錄</span> -->
|
|
|
+ <div class="content ms-auto auto-date">
|
|
|
+ <div class="container">
|
|
|
+ <div class="text-center mb-4">
|
|
|
+ <h2><img src="https://i.imgur.com/Sb7ik9D.png" width="45" class="me-2"><lan set-lan="html:selectDate">選擇您想製作的日期</lan></h2>
|
|
|
+ </div>
|
|
|
+ <div class="row row-cols-2 row-cols-lg-4 g-3 mb-4">
|
|
|
+ <div class="col">
|
|
|
+ <div class="card border text-center py-5" data-date="2021-11-10" onclick="getDate('2021-11-10')">
|
|
|
+ <h5 class="card-title mb-0" style="font-size: 2.5rem;">11/10</h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col">
|
|
|
+ <div class="card border text-center py-5" data-date="2021-11-11" onclick="getDate('2021-11-11')">
|
|
|
+ <h5 class="card-title mb-0" style="font-size: 2.5rem;">11/11</h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col">
|
|
|
+ <div class="card border text-center py-5" data-date="2021-11-12" onclick="getDate('2021-11-12')">
|
|
|
+ <h5 class="card-title mb-0" style="font-size: 2.5rem;">11/12</h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col">
|
|
|
+ <div class="card border text-center py-5" data-date="2021-11-13" onclick="getDate('2021-11-13')">
|
|
|
+ <h5 class="card-title mb-0" style="font-size: 2.5rem;">11/13</h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col">
|
|
|
+ <div class="card border text-center py-5" data-date="2021-11-14" onclick="getDate('2021-11-14')">
|
|
|
+ <h5 class="card-title mb-0" style="font-size: 2.5rem;">11/14</h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col">
|
|
|
+ <div class="card border text-center py-5" data-date="2021-11-15" onclick="getDate('2021-11-15')">
|
|
|
+ <h5 class="card-title mb-0" style="font-size: 2.5rem;">11/15</h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col">
|
|
|
+ <div class="card border text-center py-5" data-date="2021-11-16" onclick="getDate('2021-11-16')">
|
|
|
+ <h5 class="card-title mb-0" style="font-size: 2.5rem;">11/16</h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col">
|
|
|
+ <div class="card border text-center py-5" data-date="2021-11-17" onclick="getDate('2021-11-17')">
|
|
|
+ <h5 class="card-title mb-0" style="font-size: 2.5rem;">11/17</h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- <div class="auto-date__result">
|
|
|
+
|
|
|
+ </div> -->
|
|
|
+ <div class="auto-date__cards">
|
|
|
+ <div class="text-center mb-4">
|
|
|
+ <h2><i class="fas fa-info-circle me-2"></i><lan set-lan="html:Previewweathers">氣象報導影片內容預覽</lan></h2>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-10 mx-auto">
|
|
|
+ <div class="card border text-center mb-3" data-date="2021-11-16">
|
|
|
+ <div class="row g-0">
|
|
|
+ <div class="col-md-4">
|
|
|
+ <img src="https://cdn2.ettoday.net/images/5930/d5930739.jpg" class="img-fluid rounded-start" alt="...">
|
|
|
+ </div>
|
|
|
+ <div class="col-md-8 d-flex align-items-center">
|
|
|
+ <div class="card-body">
|
|
|
+ <h5 class="card-title">
|
|
|
+ 中央氣象局指出,今天天氣與昨天類似,降雨範圍以基隆北海岸與東半部為主,颱風消息方面,第20號輕位於台灣東方約1910公里的海面上
|
|
|
+ ,未來朝日本東方海面前進,對台灣天氣無直接影響,但基隆北海岸、東半部及恆春半島沿海易有長浪發生。
|
|
|
+ </h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input id="checker" type="button" name="next" class="next action-button" set-lan="value:submit"
|
|
|
+ value="送出" />
|
|
|
+ </div>
|
|
|
+ <!-- <div style="width: 80%;margin: 0 auto;"><iframe src="http://www.choozmo.com:8168/ai_anchor_video/16250306886652043.mp4" frameborder="0" style="width: 100%;height: 400px;"></iframe></div> -->
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="modal fade" tabindex="-1" id="howto" aria-labelledby="howto" aria-hidden="true">
|
|
|
+ <div class="modal-dialog">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title" id="staticBackdropLabel" set-lan="html:usage_intro">使用說明</h5>
|
|
|
+ <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <div class="modal-terms">
|
|
|
+ <ol class="ps-0">
|
|
|
+ <li set-lan="html:one_line_to_one_img">1. 一句台詞請對應提供一個影像連結做為搭配</li>
|
|
|
+ <li>
|
|
|
+ <lang set-lan="html:sup_img_profile">2. 影像連結檔案格式支援:</lang>
|
|
|
+ <stong class="strong">.png, jpg, .mp4</stong>
|
|
|
+ </li>
|
|
|
+ <li set-lan="html:submit_to_wait">3. 點選“送出”之後需等待一段影片製作的時間,請您耐心等候,待製作完畢可於通知網址查看</li>
|
|
|
+ </ol>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="modal" tabindex="-1" id="history" aria-labelledby="history" aria-hidden="true">
|
|
|
+ <div class="modal-dialog modal-dialog-scrollable">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title" id="staticBackdropLabel" set-lang="html:history">歷史紀錄</h5>
|
|
|
+ <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <div class="modal-terms">
|
|
|
+ <div class="loader"><img src="img/bx_loader.gif" alt=""></div>
|
|
|
+ <ol class="ps-0 historyList">
|
|
|
+ </ol>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="modal" tabindex="-1" id="avatarmega" aria-labelledby="history" aria-hidden="true">
|
|
|
+ <div class="modal-dialog modal-dialog-centered">
|
|
|
+ <div class="modal-content text-center">
|
|
|
+ <div class="modal-body">
|
|
|
+ <img class="modal-img" src="" alt="">
|
|
|
+ <h5 class="modal-title mt-2"></h5>
|
|
|
+ <button type="button" class="btn btn-secondary btn-dismiss" data-bs-dismiss="modal"
|
|
|
+ set-lan="html:close">Close</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- ================================================================= -->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- ================================================================= -->
|
|
|
+ <!-- footer -->
|
|
|
+ <footer class="fixed-bottom text-center py-2">
|
|
|
+
|
|
|
+ </footer>
|
|
|
+ <!-- ================================================================= -->
|
|
|
+
|
|
|
+ <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 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://cdn.jsdelivr.net/npm/sweetalert2@11.0.18/dist/sweetalert2.all.min.js"></script>
|
|
|
+ <script src="js/lan.js"></script>
|
|
|
+ <script>
|
|
|
+ var client_id = Date.now()
|
|
|
+ var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
|
|
+ var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
|
|
|
+ return new bootstrap.Tooltip(tooltipTriggerEl)
|
|
|
+ });
|
|
|
+
|
|
|
+ const dateCard = $('.auto-date .card');
|
|
|
+ $('.auto-date__cards').css('display', 'none');
|
|
|
+ $('.action-button').css('display', 'none');
|
|
|
+ $('.link-box').css('display', 'none');
|
|
|
+
|
|
|
+ const data = {
|
|
|
+ "text":[
|
|
|
+ "中央氣象局指出,今天天氣與昨天類似,降雨範圍以基隆北海岸與東半部為主,颱風消息方面,第20號輕位於台灣東方約1910公里的海面上,未來朝日本東方海面前進,對台灣天氣無直接影響,但基隆北海岸、東半部及恆春半島沿海易有長浪發生。",
|
|
|
+ "氣象局預估,週五至週六清晨東北季風影響,北部、東北部早晚較涼,降雨方面在迎風面的基隆北海岸、東半部及大台北地區有局部短暫雨,其他地區為多雲到晴,午後南部地區有局部短暫陣雨。",
|
|
|
+ "天氣風險公司總經理彭啟未來7-10天都維持類似的天氣,下一波變化有些預測落在11月中上旬,約11/10-11/12,北方冷高壓有機會再度南下,是否如某些預測大降溫,但這變數仍很多,保持關注就可以了。",
|
|
|
+ "氣象局說明,今東北季風稍微增強,然而水氣沒有顯著增加,因此天氣表現與昨日類似,只是早晚稍微又涼些,清晨中部以北及東北部約20、21度,花東及南部地區約23度,降雨範圍依舊以迎風面的基隆北海岸及東半部的局部短暫雨為主,且大台北地區雨較零星,其他地方則為多雲到晴,午後南部地區有局部短暫陣雨的機率,但範圍跟程度都影響不大。"
|
|
|
+ ],
|
|
|
+ "imgurl":[
|
|
|
+ "https://cdn2.ettoday.net/images/5930/d5930739.jpg",
|
|
|
+ "https://cdn2.ettoday.net/images/5917/d5917494.jpg",
|
|
|
+ "https://cdn2.ettoday.net/images/5915/d5915515.jpg",
|
|
|
+ "https://cdn2.ettoday.net/images/5931/d5931569.jpg"
|
|
|
+ ]
|
|
|
+ };
|
|
|
+
|
|
|
+ function getDate(num) {
|
|
|
+ console.log(num);
|
|
|
+ axios({
|
|
|
+ method: 'get',
|
|
|
+ url: `https://api.ptt.cx:8555/?date=${num}&flag=1`,
|
|
|
+ }).then(res => {
|
|
|
+ //window.location.href = './autoMaker_result.html';
|
|
|
+ // Swal.fire({
|
|
|
+ // icon: 'success',
|
|
|
+ // text: '',
|
|
|
+ // confirmButtonColor: '#3085d6',
|
|
|
+ // });
|
|
|
+ let dataStr = '';
|
|
|
+ for(let i = 0; i < data.text.length; i++) {
|
|
|
+ dataStr += `<div class="card border text-center mb-3" data-date="2021-11-16">
|
|
|
+ <div class="row g-0">
|
|
|
+ <div class="col-md-4">
|
|
|
+ <img src="${data['imgurl'][i]}" class="img-fluid rounded-start" alt="...">
|
|
|
+ </div>
|
|
|
+ <div class="col-md-8 d-flex align-items-center">
|
|
|
+ <div class="card-body">
|
|
|
+ <h5 class="card-title">
|
|
|
+ ${data['text'][i]}
|
|
|
+ </h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>`;
|
|
|
+ }
|
|
|
+ $('.auto-date__cards .col-10').html(dataStr);
|
|
|
+ $('.auto-date__cards').css('display', 'block');
|
|
|
+ $('.action-button').css('display', 'block');
|
|
|
+
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err);
|
|
|
+ //window.location.href = './autoMaker_result.html';
|
|
|
+ let dataStr = '';
|
|
|
+ for(let i = 0; i < data.text.length; i++) {
|
|
|
+ dataStr += `<div class="card border text-center mb-3" data-date="2021-11-16">
|
|
|
+ <div class="row g-0">
|
|
|
+ <div class="col-md-4">
|
|
|
+ <img src="${data['imgurl'][i]}" class="img-fluid rounded-start" alt="...">
|
|
|
+ </div>
|
|
|
+ <div class="col-md-8 d-flex align-items-center">
|
|
|
+ <div class="card-body">
|
|
|
+ <h5 class="card-title">
|
|
|
+ ${data['text'][i]}
|
|
|
+ </h5>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>`;
|
|
|
+ }
|
|
|
+ $('.auto-date__cards .col-10').html(dataStr);
|
|
|
+ $('.auto-date__cards').css('display', 'block');
|
|
|
+ $('.action-button').css('display', 'block');
|
|
|
+ })
|
|
|
+ }
|
|
|
+ $('.action-button').click(() => {
|
|
|
+ Swal.fire({
|
|
|
+ icon: 'success',
|
|
|
+ title: '成功送出',
|
|
|
+ text: '影片網址 http://www.choozmo.com:8168/ai_anchor_video/16298192914318144.mp4',
|
|
|
+ confirmButtonColor: '#3085d6',
|
|
|
+ });
|
|
|
+ $('.link-box').css('display', 'block');
|
|
|
+ /* $('.auto-date__cards').css('display', 'none');
|
|
|
+ $('.action-button').css('display', 'none');
|
|
|
+ const linkStr = `<div class="row">
|
|
|
+ <div class="card border col-10 mx-auto text-center">
|
|
|
+ <p set-lan="html:preview_videos"><i class="fas fa-link copy me-2"></i>預覽影片</p>
|
|
|
+ <a id='linker' class="ms-2 d-inline-block" set-lan="html:video_link" onclick="window.open('http://www.choozmo.com:8168/ai_anchor_video/16298192914318144.mp4')">http://www.choozmo.com:8168/ai_anchor_video/16298192914318144.mp4</a>
|
|
|
+ </div>
|
|
|
+ </div>`
|
|
|
+
|
|
|
+ $('.auto-date .container').html(linkStr); */
|
|
|
+ })
|
|
|
+
|
|
|
+ $('.link-box').click(() => {
|
|
|
+ Swal.fire({
|
|
|
+ icon: 'info',
|
|
|
+ text: '影片網址 http://www.choozmo.com:8168/ai_anchor_video/16298192914318144.mp4',
|
|
|
+ confirmButtonColor: '#3085d6',
|
|
|
+ });
|
|
|
+ })
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+
|
|
|
+</html>
|