index.html 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. <!DOCTYPE html>
  2. <html lang="zh-TW">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <title>Sanlih Entertainment Television</title>
  10. <!-- Custom fonts for this template-->
  11. <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
  12. <link
  13. href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
  14. rel="stylesheet">
  15. <link href="vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
  16. <!-- Custom styles for this template-->
  17. <link href="css/sb-admin-2.min.css" rel="stylesheet">
  18. <link href="css/custom.css" rel="stylesheet">
  19. </head>
  20. <body id="page-top">
  21. <!-- Page Wrapper -->
  22. <div id="wrapper" style="height: 130vh;">
  23. <!-- Sidebar -->
  24. <ul class="navbar-nav sidebar sidebar-dark accordion toggled d-none" id="accordionSidebar">
  25. <!-- Divider -->
  26. <hr class="sidebar-divider my-0">
  27. <!-- Nav Item - Dashboard -->
  28. <li class="nav-item active">
  29. <a class="nav-link p-0" href="index.html">
  30. <!-- <i class="fas fa-fw fa-tachometer-alt"></i> -->
  31. <!-- <span>Dashboard</span></a> -->
  32. </li>
  33. <!-- Divider -->
  34. <!-- <hr class="sidebar-divider d-none d-md-block"> -->
  35. <!-- Sidebar Toggler (Sidebar) -->
  36. <div class="text-center d-none">
  37. <button class="rounded-circle border-0" id="sidebarToggle"></button>
  38. </div>
  39. </ul>
  40. <!-- End of Sidebar -->
  41. <!-- Content Wrapper -->
  42. <div id="content-wrapper" class="d-flex flex-column">
  43. <!-- Main Content -->
  44. <div id="content">
  45. <!-- Topbar -->
  46. <nav class="navbar navbar-expand navbar-light bg-white topbar mb-2 static-top shadow">
  47. <!-- Sidebar - Brand -->
  48. <a class="sidebar-brand d-flex align-items-center justify-content-center" href="index.html">
  49. <div class="sidebar-brand-icon">
  50. <!-- <i class="fas fa-laugh-wink"></i> -->
  51. <img src="./img/iNEWS-logo.svg" width="120px" alt="">
  52. </div>
  53. <!-- <div class="sidebar-brand-text mx-3">TEXT-TO-CHART</div> -->
  54. </a>
  55. <!-- Sidebar Toggle (Topbar) -->
  56. <button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
  57. <i class="fa fa-bars"></i>
  58. </button>
  59. <!-- Topbar Navbar -->
  60. <ul class="navbar-nav ml-auto">
  61. <!-- Nav Item - Search Dropdown (Visible Only XS) -->
  62. <li class="nav-item dropdown no-arrow d-sm-none">
  63. <a class="nav-link dropdown-toggle" href="#" id="searchDropdown" role="button"
  64. data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  65. <i class="fas fa-search fa-fw"></i>
  66. </a>
  67. <!-- Dropdown - Messages -->
  68. <div class="dropdown-menu dropdown-menu-right p-3 shadow animated--grow-in"
  69. aria-labelledby="searchDropdown">
  70. <form class="form-inline mr-auto w-100 navbar-search">
  71. <div class="input-group">
  72. <input type="text" class="form-control bg-light border-0 small"
  73. placeholder="Search for..." aria-label="Search"
  74. aria-describedby="basic-addon2">
  75. <div class="input-group-append">
  76. <button class="btn btn-primary" type="button">
  77. <i class="fas fa-search fa-sm"></i>
  78. </button>
  79. </div>
  80. </div>
  81. </form>
  82. </div>
  83. </li>
  84. <li class="nav-item d-none"><a class="nav-link"
  85. href="./knowledge-graph.html">knowledge-graph</a></li>
  86. <div class="topbar-divider d-sm-block"></div>
  87. <!-- Nav Item - User Information -->
  88. <li class="nav-item dropdown no-arrow">
  89. <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
  90. data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  91. <span class="mr-2 d-none d-lg-inline text-gray-600 small" id="userName"></span>
  92. <img class="img-profile rounded-circle" src="img/undraw_profile.svg">
  93. </a>
  94. <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
  95. aria-labelledby="userDropdown">
  96. <a id="logout" class="dropdown-item" data-toggle="modal" data-target="#logoutModal">
  97. <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
  98. 登出
  99. </a>
  100. </div>
  101. </li>
  102. </ul>
  103. </nav>
  104. <!-- End of Topbar -->
  105. <!-- Begin Page Content -->
  106. <div class="container-fluid">
  107. <div id="example_box" class="centered-div">
  108. <div class="row">
  109. <div class="col-lg-3">
  110. <div class="card example h-100" data-value="台股-2330 台積電 2024年每日收盤價"
  111. onclick="handleClick(this)">
  112. <p><svg id="line-icon" class="mr-2" xmlns="http://www.w3.org/2000/svg"
  113. viewBox="0 0 512 512">
  114. <path
  115. d="M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z" />
  116. </svg>折線圖:</p>
  117. <p>台股-2330 台積電 2024年每日收盤價</p>
  118. </div>
  119. </div>
  120. <div class="col-lg-3">
  121. <div class="card example h-100" data-value="近一個月總計最多交易量的10支台股"
  122. onclick="handleClick(this)">
  123. <p><svg id="bar-icon" class="mr-2" xmlns="http://www.w3.org/2000/svg"
  124. viewBox="0 0 512 512">
  125. <path
  126. d="M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z" />
  127. </svg>柱狀圖:</p>
  128. <p>近一個月總計最多交易量的10支台股</p>
  129. </div>
  130. </div>
  131. <div class="col-lg-3">
  132. <div class="card example h-100" data-value="台股各產業市值占比" onclick="handleClick(this)">
  133. <p><svg id="pie-icon" class="mr-2" xmlns="http://www.w3.org/2000/svg"
  134. viewBox="0 0 512 512">
  135. <path
  136. d="M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z" />
  137. </svg>圓餅圖:</p>
  138. <p>台股各產業市值占比</p>
  139. </div>
  140. </div>
  141. <div class="col-lg-3 ">
  142. <div class="card example h-100" data-value="比較2021年和2024年nvda平均股價"
  143. onclick="handleClick(this)">
  144. <p><svg id="table-icon" class="mr-2" xmlns="http://www.w3.org/2000/svg"
  145. viewBox="0 0 512 512">
  146. <path
  147. d="M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z" />
  148. </svg>表格:</p>
  149. <p>比較2021年和2024年nvda平均股價</p>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <div class="row d-flex flex-wrap mb-4">
  155. <div class="col-xl-5 col-lg-5 chartSettingBox d-none">
  156. <div class="card shadow mb-4 h-100 pb-5">
  157. <div
  158. class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
  159. <h6 class="m-0 font-weight-bold text-primary">關鍵字輸入</h6>
  160. <div class="dropdown no-arrow">
  161. <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink"
  162. data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  163. <i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
  164. </a>
  165. <div class="dropdown-menu dropdown-menu-right shadow animated--fade-in"
  166. aria-labelledby="dropdownMenuLink">
  167. <div class="dropdown-header">Dropdown Header:</div>
  168. <a class="dropdown-item" href="#">Action</a>
  169. <a class="dropdown-item" href="#">Another action</a>
  170. <div class="dropdown-divider"></div>
  171. <a class="dropdown-item" href="#">Something else here</a>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="d-none d-sm-inline-block ml-md-3 mr-md-3 my-2 my-md-3 mw-100">
  176. </div>
  177. </div>
  178. </div>
  179. <div class="col-lg-8 mb-1">
  180. <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between border-0 py-0"
  181. style="background: none;">
  182. <h6 class="m-0 font-weight-bold text-primary d-none">圖表輸出</h6>
  183. <!-- <p>語音辨識結果:<span id="record_text"> </span></p> -->
  184. <!-- <div class="text-center">
  185. <button id="downloadButton">下載圖表</button>
  186. </div> -->
  187. <!-- <div class="dropdown no-arrow">
  188. <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink"
  189. data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  190. <i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
  191. </a>
  192. <div class="dropdown-menu dropdown-menu-right shadow animated--fade-in"
  193. aria-labelledby="dropdownMenuLink">
  194. <div class="dropdown-header">Dropdown Header:</div>
  195. </div>
  196. </div> -->
  197. </div>
  198. </div>
  199. <div class="col-xl-8 col-lg-8 chartSettingBox">
  200. <!-- <div style="background: none; border: none;" class="mb-4"> -->
  201. <!-- Card Header - Dropdown -->
  202. <!-- Card Body -->
  203. <div class="card-body chart_background p-0 chartSettingBox2">
  204. <div class="chart-area">
  205. <div id="chartDataLoading" class="h-100">
  206. <div class="d-flex justify-content-center align-items-center h-100">
  207. <div class="spinner-border" role="status">
  208. <span class="sr-only">Loading...</span>
  209. </div>
  210. </div>
  211. </div>
  212. <div class="chart_box">
  213. <div class="d-flex justify-content-between mb-3">
  214. <select id="chartType" class="chartType">
  215. <option value="">圖表類型</option>
  216. <option value="line">折線圖</option>
  217. <option value="bar">柱狀圖</option>
  218. <option value="doughnut">圓餅圖</option>
  219. </select>
  220. <button id="downloadButton">下載圖表</button>
  221. </div>
  222. <!-- <div id="legend" class="mt-3"></div> -->
  223. <div id="data_chart_box" class="chart_box2" style="position: relative;">
  224. <h2 class="chart_title"></h2>
  225. <!-- <div style="padding:0px 30px 30px;"> -->
  226. <div id="data_chartJs_box"
  227. style="position: relative; height: auto; text-align: center;">
  228. <div class="chart_content">
  229. <canvas id="textToChart"></canvas>
  230. </div>
  231. <!-- <div id="chart-label"></div> -->
  232. <!-- <div class="chart-line" id="chart-line"></div> -->
  233. <div id="chartdiv"></div>
  234. </div>
  235. <div id="unit_box" class="unit_box">
  236. <div class="unit_value">
  237. <span>單</span>
  238. <span>位</span>
  239. <span>:</span>
  240. <span class="unit">
  241. </span>
  242. </div>
  243. </div>
  244. <!-- </div> -->
  245. <div id="img_box" class="img_box">
  246. <img id="img_box_url" src="" alt="">
  247. </div>
  248. </div>
  249. </div>
  250. <div id="compare" class="input-group pr-5 pl-5 compare mt-3">
  251. <div class="checkbox-group mt-2 mr-3">
  252. <label>
  253. <input type="checkbox" id="checkbox1"> 漲幅
  254. </label>
  255. <label>
  256. <input type="checkbox" id="checkbox2"> 單價
  257. </label>
  258. </div>
  259. <input type="text" style="position: relative ; z-index: 100;"
  260. id="keyword_data_compare" class="form-control bg-white small"
  261. placeholder="Ex:台股-2330 台積電、台股-2454 聯發科" aria-label="Search"
  262. aria-describedby="basic-addon2">
  263. <div id="suggestions_compare" class="autocomplete-suggestions2"></div>
  264. <div class="input-group-append">
  265. <button id="data_compare" class="btn btn-primary" type="button">
  266. <!-- <i class="fas fa-search fa-sm"></i> -->
  267. 比較
  268. </button>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. <!-- </div> -->
  274. </div>
  275. </div>
  276. </div>
  277. <!-- /.container-fluid -->
  278. <div style="background: #fff;" id="fixed_button">
  279. <!-- <div> -->
  280. <div class="d-flex">
  281. <div class="input-group">
  282. <input type="text" id="keyword_data" class="form-control bg-white small"
  283. placeholder="請輸入關鍵字..." aria-label="Search" aria-describedby="basic-addon2">
  284. <div id="suggestions" class="autocomplete-suggestions"></div>
  285. <div class="input-group-append">
  286. <button class="btn btn-primary" id="send_data" type="button">
  287. <!-- <i class="fas fa-search fa-sm"></i> -->
  288. 送出
  289. </button>
  290. <button class="btn btn-danger ml-2" id="cancel_send_data" type="button">
  291. <!-- <i class="fas fa-search fa-sm"></i> -->
  292. 取消
  293. </button>
  294. </div>
  295. </div>
  296. <button id="recording_button" class="speechToText" type="button">
  297. <img class="microphone" width="40" height="40" src="./img/microphone.png" alt="microphone">
  298. </button>
  299. </div>
  300. <!-- </div> -->
  301. </div>
  302. <div style="background: #fff;" id="recording_block" class="hidden">
  303. <div class="text-right">
  304. <i id="recording_block_close" class="fa fa-times"></i>
  305. </div>
  306. <div class="row">
  307. <div class="col-lg-6 d-flex justify-content-center align-items-center">
  308. <p class="recording mb-0">錄音中....</p>
  309. <div class="mainBox d-none">
  310. <div class="reclog"></div>
  311. </div>
  312. <div style="padding-top:5px">
  313. <!-- <div style="border:1px solid #ccc;display:inline-block;vertical-align:bottom">
  314. <div style="height:100px;width:300px;" class="recwave"></div>
  315. </div> -->
  316. <div class="ml-5" style="height:40px;width:300px;background:#fff;position:relative;">
  317. <div class="recpowerx" style="height:40px;background:#0B1;position:absolute;"></div>
  318. <div class="recpowert"
  319. style="padding-left:50px; line-height:40px; position: relative;">
  320. </div>
  321. </div>
  322. <!-- <button onclick="recPlay()" reclang="uwNo">播放</button> -->
  323. </div>
  324. <audio class="recPlay" controls style="display:none;width:100%"></audio>
  325. </div>
  326. <div class="col-lg-6 d-flex justify-content-center">
  327. <button id="stop">
  328. <div class="circle-div">
  329. <img src="./img/stop-button.png" alt="">
  330. </div>
  331. </button>
  332. </div>
  333. </div>
  334. </div>
  335. </div>
  336. <!-- End of Main Content -->
  337. <!-- <div id="fixed_button">
  338. <div>
  339. <div class="input-group">
  340. <input type="text" id="keyword_data" class="form-control bg-white small" placeholder="請輸入關鍵字..."
  341. aria-label="Search" aria-describedby="basic-addon2">
  342. <div id="suggestions" class="autocomplete-suggestions"></div>
  343. <div class="input-group-append">
  344. <button class="btn btn-primary" id="send_data" type="button">
  345. 送出
  346. </button>
  347. </div>
  348. </div>
  349. </div>
  350. </div> -->
  351. <!-- Footer -->
  352. <!-- <footer class="sticky-footer bg-white">
  353. <div class="container my-auto">
  354. <div class="copyright text-center my-auto">
  355. <span>Copyright &copy; 2023</span>
  356. </div>
  357. </div>
  358. </footer> -->
  359. <!-- End of Footer -->
  360. </div>
  361. </div>
  362. <!-- Scroll to Top Button-->
  363. <a class="scroll-to-top rounded d-none" href="#page-top">
  364. <i class="fas fa-angle-up"></i>
  365. </a>
  366. <!-- 快捷功能 -->
  367. <div id="chart_seeting_button" class="setting_button">
  368. <div class="setting_button_content">
  369. <img src="./img/exchange.png" class="mb-2" width="20px" alt="">
  370. 快捷功能
  371. </div>
  372. </div>
  373. <!-- 快捷功能-圖表 -->
  374. <div id="style_setting" class="card shadow hidden">
  375. <div class="text-right">
  376. <i id="style_setting_close" class="fa fa-times"></i>
  377. </div>
  378. <form id="chart_category" class="ml-md-3 mr-md-3 my-2 chartSetting d-none">
  379. <div>
  380. <p class="font-weight-bold">圖表類型:</p>
  381. <div class="form-check form-check-inline">
  382. <input class="form-check-input" type="radio" name="ChartOptions" id="inlineRadio4" value="line">
  383. <label class="form-check-label" for="inlineRadio4">折線圖</label>
  384. </div>
  385. <div class="form-check form-check-inline">
  386. <input class="form-check-input" type="radio" name="ChartOptions" id="inlineRadio5" value="bar">
  387. <label class="form-check-label" for="inlineRadio5">柱狀圖</label>
  388. </div>
  389. <!-- <div class="form-check form-check-inline">
  390. <input class="form-check-input" type="radio" name="ChartOptions" id="inlineRadio6" value="pie">
  391. <label class="form-check-label" for="inlineRadio6">圓餅圖</label>
  392. </div>
  393. <div class="form-check form-check-inline">
  394. <input class="form-check-input" type="radio" name="ChartOptions" id="inlineRadio7" value="table">
  395. <label class="form-check-label" for="inlineRadio7">表格</label>
  396. </div> -->
  397. </div>
  398. </form>
  399. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  400. <p class="font-weight-bold">標題:</p>
  401. <div class="d-flex">
  402. <div style="width: 75%;">
  403. <input type="text" id="title_data" class="form-control bg-light small mb-3" placeholder="請輸入標題..."
  404. aria-label="Search" aria-describedby="basic-addon2">
  405. </div>
  406. <div style="width: 20%; margin-left: 5px;">
  407. <input type="number" value="32" step="1" class="form-control" id="TitlefontSize" />
  408. </div>
  409. </div>
  410. <!-- <p class="font-weight-bold">標題位置:</p> -->
  411. <div class="mb-2">
  412. <div class="form-check form-check-inline">
  413. <input class="form-check-input" value="0" type="radio" name="inlineRadioOptions" id="inlineRadio1"
  414. value="option1" checked>
  415. <label class="form-check-label" for="inlineRadio1">置左</label>
  416. </div>
  417. <div class="form-check form-check-inline">
  418. <input class="form-check-input" value="1" type="radio" name="inlineRadioOptions" id="inlineRadio2"
  419. value="option2">
  420. <label class="form-check-label" for="inlineRadio2">置中</label>
  421. </div>
  422. <div class="form-check form-check-inline">
  423. <input class="form-check-input" value="2" type="radio" name="inlineRadioOptions" id="inlineRadio3"
  424. value="option2">
  425. <label class="form-check-label" for="inlineRadio3">置右</label>
  426. </div>
  427. </div>
  428. <div id="unit_input">
  429. <p class="font-weight-bold">單位:</p>
  430. <input type="text" id="unit_data" class="form-control bg-light small mb-3" aria-label="Search2"
  431. aria-describedby="basic-addon2" placeholder="請小於七個字">
  432. </div>
  433. <div class="d-flex mb-1">
  434. <div>
  435. 顯示單位:<input class="ml-1" type="checkbox" id="toggleUnit" checked>
  436. </div>
  437. </div>
  438. </form>
  439. <!-- <form class="ml-md-3 mr-md-3 my-2">
  440. <div>
  441. <p class="font-weight-bold">標題字體大小:</p>
  442. <label class="d-none" for="TitlefontSize">字體大小:</label>
  443. <input type="number" value="32" step="1" class="form-control" id="TitlefontSize" />
  444. </div>
  445. </form> -->
  446. <form class="ml-md-3 mr-md-3 my-2 chartSetting d-none">
  447. <div>
  448. <p class="font-weight-bold">縱軸:</p>
  449. </div>
  450. <div class="ml-4 d-flex">
  451. <div>
  452. <!-- <p class="font-weight-bold">圖表字體大小:</p>
  453. <label class="d-none" for="YfontSize">字體大小:</label>
  454. <input type="number" value="18" step="1" class="form-control" id="YfontSize" /> -->
  455. </div>
  456. </div>
  457. </form>
  458. <form id="pie_setting" class="ml-md-3 mr-md-3 my-2 chartSetting">
  459. <div>
  460. <p class="font-weight-bold">字體大小:</p>
  461. <label class="d-none" for="table_fontSize">字體大小:</label>
  462. <input type="number" value="14" step="1" class="form-control mb-3" id="pie_fontSize" />
  463. <p class="font-weight-bold">標籤寬度:</p>
  464. <input type="range" id="PieMaxWidthRange" min="50" max="200" step="10" value="100">
  465. </div>
  466. </form>
  467. <form id="table_setting" class="ml-md-3 mr-md-3 my-2 chartSetting">
  468. <div>
  469. <p class="font-weight-bold">圖表字體大小:</p>
  470. <label class="d-none" for="table_fontSize">字體大小:</label>
  471. <input type="number" value="32" step="1" class="form-control" id="table_fontSize" />
  472. </div>
  473. </form>
  474. <div id="lineChartSetting">
  475. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  476. <p class="font-weight-bold">橫縱軸字體大小:</p>
  477. <label class="d-none" for="XfontSize">字體大小:</label>
  478. <input type="number" value="18" step="1" class="form-control" id="XfontSize" />
  479. </form>
  480. <!-- <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  481. <p class="font-weight-bold">標示字體大小:</p>
  482. <label class="d-none" for="ValuefontSize">字體大小:</label>
  483. <input type="number" value="18" step="1" class="form-control" id="ValuefontSize" />
  484. </form> -->
  485. <form class="ml-md-3 mr-md-3 my-3 chartSetting">
  486. <div id="borderSetting" class="borderWidth d-flex">
  487. <div>
  488. <p class="font-weight-bold">線條粗細:</p>
  489. <label for="borderWidthRange" class="form-label d-none">線條粗細</label>
  490. <input type="number" class="form-range" id="borderWidthRange" min="1" max="5" value="1"
  491. step="1">
  492. <!-- <span id="borderWidthRangeValue">1</span> -->
  493. </div>
  494. <div class="ml-lg-5">
  495. <p class="font-weight-bold">線條顏色:</p>
  496. <label for="exampleColorInput" class="form-label d-none">線條顏色</label>
  497. <input type="color" class="form-control form-control-color" id="borderColorInput"
  498. value="#912B2B" title="Choose your color">
  499. </div>
  500. </div>
  501. <div>
  502. </div>
  503. <div class="my-2" id="lineYfontSize">
  504. <p class="font-weight-bold">數據字體大小:</p>
  505. <label class="d-none" for="YfontSize">字體大小:</label>
  506. <input type="number" value="18" step="1" class="form-control" id="YfontSize" />
  507. </div>
  508. <div class="mt-3 d-flex">
  509. <div>
  510. 顯示數據點:<input class="ml-1" type="checkbox" id="togglePoints">
  511. </div>
  512. <div class="ml-3">
  513. 顯示數值:<input class="ml-1" type="checkbox" id="toggleValue" checked>
  514. </div>
  515. <div class="ml-3">
  516. 顯示橫軸:<input type="checkbox" id="toggleXAxis" checked>
  517. </div>
  518. <!-- <div>
  519. 顯示數據點:<input class="ml-1" type="checkbox" id="togglePoints">
  520. </div>
  521. <div class="ml-3">
  522. 顯示數值:<input class="ml-1" type="checkbox" id="toggleValue" checked>
  523. </div>
  524. <div class="ml-3">
  525. 顯示單位:<input class="ml-1" type="checkbox" id="toggleUnit" checked>
  526. </div> -->
  527. </div>
  528. </form>
  529. </div>
  530. <div id="barChartSetting">
  531. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  532. <p class="font-weight-bold">橫軸字體大小:</p>
  533. <label class="d-none" for="XfontSize">字體大小:</label>
  534. <input type="number" value="14" step="1" class="form-control" id="XfontSizeBar" />
  535. </form>
  536. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  537. <p class="font-weight-bold">縱軸字體大小:</p>
  538. <label class="d-none" for="XfontSize">字體大小:</label>
  539. <input type="number" value="14" step="1" class="form-control" id="YfontSizeBar" />
  540. </form>
  541. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  542. <div id="borderSetting" class="borderWidth d-flex">
  543. <div>
  544. <p style="margin-bottom: 10px;" class="font-weight-bold">柱狀顏色:</p>
  545. <label for="exampleColorInput" class="form-label d-none">線條顏色</label>
  546. <input type="color" class="form-control form-control-color" id="borderColorInputBar"
  547. value="#288D97" title="Choose your color">
  548. </div>
  549. </div>
  550. <div>
  551. </div>
  552. </form>
  553. </div>
  554. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  555. <p class="font-weight-bold">背景圖片:</p>
  556. <div class="d-flex">
  557. <img class="bgImg" src="./img/bg01.webp" width="80" height="60" alt="" value="./img/bg01.webp">
  558. <img class="bgImg ml-2" src="./img/bg02.webp" width="80" height="60" value="./img/bg02.webp" alt="">
  559. <img class="bgImg ml-2" src="./img/bg05.webp" width="80" height="60" value="./img/bg05.webp" alt="">
  560. <img class="bgImg ml-2" src="./img/bg.webp" width="80" height="60" value="./img/bg.webp" alt="">
  561. </div>
  562. <div class="d-flex mt-3">
  563. <img class="bgImg" src="./img/bg04.webp" width="80" height="60" value="./img/bg04.webp" alt="">
  564. <img class="bgImg ml-2" src="./img/bg06.webp" width="80" height="60" value="./img/bg06.webp" alt="">
  565. <img class="bgImg ml-2" src="./img/bg07.webp" width="80" height="60" value="./img/bg07.webp" alt="">
  566. <div class="bgImg ml-2 d-flex align-items-center justify-content-center" value="" width="80" height="80"
  567. style="border:1px solid #e3e6f0;">
  568. <p style="width: 80px" class="mb-0 text-center">無</p>
  569. </div>
  570. </div>
  571. </form>
  572. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  573. <p class="font-weight-bold">場景圖片:</p>
  574. <select id="finance_options" class="form-control form-select" aria-label="Default select example">
  575. </select>
  576. </form>
  577. </div>
  578. <!-- Bootstrap core JavaScript-->
  579. <script src="./vendor/jquery/jquery.min.js"></script>
  580. <script src="./vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  581. <!-- Core plugin JavaScript-->
  582. <script src="./vendor/jquery-easing/jquery.easing.min.js"></script>
  583. <!-- Custom scripts for all pages-->
  584. <script src="./js/sb-admin-2.min.js"></script>
  585. <!-- Page level plugins -->
  586. <!-- <script src="vendor/chart.js/Chart.min.js"></script> -->
  587. <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
  588. <script src="https://cdn.jsdelivr.net/npm/chart.js@3.0.0/dist/chart.min.js"></script>
  589. <script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-3d@1.0.0-beta.2/dist/chartjs-plugin-3d.min.js"></script>
  590. <script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@2.0.0"></script>
  591. <!-- Page level custom scripts -->
  592. <script src="./vendor/datatables/jquery.dataTables.min.js"></script>
  593. <script src="./vendor/datatables/dataTables.bootstrap4.min.js"></script>
  594. <!-- amcharts -->
  595. <script src="https://cdn.amcharts.com/lib/4/core.js"></script>
  596. <script src="https://cdn.amcharts.com/lib/4/charts.js"></script>
  597. <script src="https://cdn.amcharts.com/lib/4/themes/animated.js"></script>
  598. <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
  599. <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
  600. <script src="./src/recorder-core.js"></script> <!--必须引入的录音核心-->
  601. <script src="./src/engine/mp3.js"></script> <!--相应格式支持文件-->
  602. <script src="./src/engine/mp3-engine.js"></script> <!--如果此格式有额外的编码引擎的话,也要加上-->
  603. <script src="./src/extensions/frequency.histogram.view.js"></script>
  604. <script src="./src/extensions/lib.fft.js"></script>
  605. <script src="./js/demo/text-to-chart.js"></script>
  606. <!-- <script src="./js/demo/microphone.js"></script> -->
  607. </body>
  608. </html>