index.html 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  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. <canvas id="textToChart"></canvas>
  229. <!-- <div id="chart-label"></div> -->
  230. <!-- <div class="chart-line" id="chart-line"></div> -->
  231. <div id="chartdiv"></div>
  232. </div>
  233. <div id="unit_box" class="unit_box">
  234. <div class="unit_value">
  235. <span>單</span>
  236. <span>位</span>
  237. <span>:</span>
  238. <span class="unit">
  239. </span>
  240. </div>
  241. </div>
  242. <!-- </div> -->
  243. <div id="img_box" class="img_box">
  244. <img id="img_box_url" src="" alt="">
  245. </div>
  246. </div>
  247. </div>
  248. <div id="compare" class="input-group pr-5 pl-5 compare mt-3">
  249. <div class="checkbox-group mt-2 mr-3">
  250. <label>
  251. <input type="checkbox" id="checkbox1"> 漲幅
  252. </label>
  253. <label>
  254. <input type="checkbox" id="checkbox2"> 單價
  255. </label>
  256. </div>
  257. <input type="text" style="position: relative ; z-index: 100;"
  258. id="keyword_data_compare" class="form-control bg-white small"
  259. placeholder="搜尋股票、ETF 或其他項目進行比較..." aria-label="Search"
  260. aria-describedby="basic-addon2">
  261. <div id="suggestions_compare" class="autocomplete-suggestions2"></div>
  262. <div class="input-group-append">
  263. <button id="data_compare" class="btn btn-primary" type="button">
  264. <!-- <i class="fas fa-search fa-sm"></i> -->
  265. 比較
  266. </button>
  267. </div>
  268. </div>
  269. </div>
  270. </div>
  271. <!-- </div> -->
  272. </div>
  273. </div>
  274. </div>
  275. <!-- /.container-fluid -->
  276. <div style="background: #fff;" id="fixed_button">
  277. <!-- <div> -->
  278. <div class="d-flex">
  279. <div class="input-group">
  280. <input type="text" id="keyword_data" class="form-control bg-white small"
  281. placeholder="請輸入關鍵字..." aria-label="Search" aria-describedby="basic-addon2">
  282. <div id="suggestions" class="autocomplete-suggestions"></div>
  283. <div class="input-group-append">
  284. <button class="btn btn-primary" id="send_data" type="button">
  285. <!-- <i class="fas fa-search fa-sm"></i> -->
  286. 送出
  287. </button>
  288. <button class="btn btn-danger ml-2" id="cancel_send_data" type="button">
  289. <!-- <i class="fas fa-search fa-sm"></i> -->
  290. 取消
  291. </button>
  292. </div>
  293. </div>
  294. <button id="recording_button" class="speechToText" type="button">
  295. <img class="microphone" width="40" height="40" src="./img/microphone.png" alt="microphone">
  296. </button>
  297. </div>
  298. <!-- </div> -->
  299. </div>
  300. <div style="background: #fff;" id="recording_block" class="hidden">
  301. <div class="text-right">
  302. <i id="recording_block_close" class="fa fa-times"></i>
  303. </div>
  304. <div class="row">
  305. <div class="col-lg-6 d-flex justify-content-center align-items-center">
  306. <p class="recording mb-0">錄音中....</p>
  307. <div class="mainBox d-none">
  308. <div class="reclog"></div>
  309. </div>
  310. <div style="padding-top:5px">
  311. <!-- <div style="border:1px solid #ccc;display:inline-block;vertical-align:bottom">
  312. <div style="height:100px;width:300px;" class="recwave"></div>
  313. </div> -->
  314. <div class="ml-5" style="height:40px;width:300px;background:#fff;position:relative;">
  315. <div class="recpowerx" style="height:40px;background:#0B1;position:absolute;"></div>
  316. <div class="recpowert"
  317. style="padding-left:50px; line-height:40px; position: relative;">
  318. </div>
  319. </div>
  320. <!-- <button onclick="recPlay()" reclang="uwNo">播放</button> -->
  321. </div>
  322. <audio class="recPlay" controls style="display:none;width:100%"></audio>
  323. </div>
  324. <div class="col-lg-6 d-flex justify-content-center">
  325. <button id="stop">
  326. <div class="circle-div">
  327. <img src="./img/stop-button.png" alt="">
  328. </div>
  329. </button>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. <!-- End of Main Content -->
  335. <!-- <div id="fixed_button">
  336. <div>
  337. <div class="input-group">
  338. <input type="text" id="keyword_data" class="form-control bg-white small" placeholder="請輸入關鍵字..."
  339. aria-label="Search" aria-describedby="basic-addon2">
  340. <div id="suggestions" class="autocomplete-suggestions"></div>
  341. <div class="input-group-append">
  342. <button class="btn btn-primary" id="send_data" type="button">
  343. 送出
  344. </button>
  345. </div>
  346. </div>
  347. </div>
  348. </div> -->
  349. <!-- Footer -->
  350. <!-- <footer class="sticky-footer bg-white">
  351. <div class="container my-auto">
  352. <div class="copyright text-center my-auto">
  353. <span>Copyright &copy; 2023</span>
  354. </div>
  355. </div>
  356. </footer> -->
  357. <!-- End of Footer -->
  358. </div>
  359. </div>
  360. <!-- Scroll to Top Button-->
  361. <a class="scroll-to-top rounded d-none" href="#page-top">
  362. <i class="fas fa-angle-up"></i>
  363. </a>
  364. <!-- 快捷功能 -->
  365. <div id="chart_seeting_button" class="setting_button">
  366. <div class="setting_button_content">
  367. <img src="./img/exchange.png" class="mb-2" width="20px" alt="">
  368. 快捷功能
  369. </div>
  370. </div>
  371. <!-- 快捷功能-圖表 -->
  372. <div id="style_setting" class="card shadow hidden">
  373. <div class="text-right">
  374. <i id="style_setting_close" class="fa fa-times"></i>
  375. </div>
  376. <form id="chart_category" class="ml-md-3 mr-md-3 my-2 chartSetting d-none">
  377. <div>
  378. <p class="font-weight-bold">圖表類型:</p>
  379. <div class="form-check form-check-inline">
  380. <input class="form-check-input" type="radio" name="ChartOptions" id="inlineRadio4" value="line">
  381. <label class="form-check-label" for="inlineRadio4">折線圖</label>
  382. </div>
  383. <div class="form-check form-check-inline">
  384. <input class="form-check-input" type="radio" name="ChartOptions" id="inlineRadio5" value="bar">
  385. <label class="form-check-label" for="inlineRadio5">柱狀圖</label>
  386. </div>
  387. <!-- <div class="form-check form-check-inline">
  388. <input class="form-check-input" type="radio" name="ChartOptions" id="inlineRadio6" value="pie">
  389. <label class="form-check-label" for="inlineRadio6">圓餅圖</label>
  390. </div>
  391. <div class="form-check form-check-inline">
  392. <input class="form-check-input" type="radio" name="ChartOptions" id="inlineRadio7" value="table">
  393. <label class="form-check-label" for="inlineRadio7">表格</label>
  394. </div> -->
  395. </div>
  396. </form>
  397. <form class="ml-md-3 mr-md-3 my-2 chartSetting ">
  398. <p class="font-weight-bold">標題:</p>
  399. <div class="d-flex">
  400. <div style="width: 75%;">
  401. <input type="text" id="title_data" class="form-control bg-light small mb-3" placeholder="請輸入標題..."
  402. aria-label="Search" aria-describedby="basic-addon2">
  403. </div>
  404. <div style="width: 20%; margin-left: 5px;">
  405. <input type="number" value="32" step="1" class="form-control" id="TitlefontSize" />
  406. </div>
  407. </div>
  408. <!-- <p class="font-weight-bold">標題位置:</p> -->
  409. <div class="mb-2">
  410. <div class="form-check form-check-inline">
  411. <input class="form-check-input" value="0" type="radio" name="inlineRadioOptions" id="inlineRadio1"
  412. value="option1" checked>
  413. <label class="form-check-label" for="inlineRadio1">置左</label>
  414. </div>
  415. <div class="form-check form-check-inline">
  416. <input class="form-check-input" value="1" type="radio" name="inlineRadioOptions" id="inlineRadio2"
  417. value="option2">
  418. <label class="form-check-label" for="inlineRadio2">置中</label>
  419. </div>
  420. <div class="form-check form-check-inline">
  421. <input class="form-check-input" value="2" type="radio" name="inlineRadioOptions" id="inlineRadio3"
  422. value="option2">
  423. <label class="form-check-label" for="inlineRadio3">置右</label>
  424. </div>
  425. </div>
  426. <div id="unit_input">
  427. <p class="font-weight-bold">單位:</p>
  428. <input type="text" id="unit_data" class="form-control bg-light small mb-3" aria-label="Search2"
  429. aria-describedby="basic-addon2">
  430. </div>
  431. </form>
  432. <!-- <form class="ml-md-3 mr-md-3 my-2">
  433. <div>
  434. <p class="font-weight-bold">標題字體大小:</p>
  435. <label class="d-none" for="TitlefontSize">字體大小:</label>
  436. <input type="number" value="32" step="1" class="form-control" id="TitlefontSize" />
  437. </div>
  438. </form> -->
  439. <form class="ml-md-3 mr-md-3 my-2 chartSetting d-none">
  440. <div>
  441. <p class="font-weight-bold">縱軸:</p>
  442. </div>
  443. <div class="ml-4 d-flex">
  444. <div>
  445. <!-- <p class="font-weight-bold">圖表字體大小:</p>
  446. <label class="d-none" for="YfontSize">字體大小:</label>
  447. <input type="number" value="18" step="1" class="form-control" id="YfontSize" /> -->
  448. </div>
  449. </div>
  450. </form>
  451. <form id="pie_setting" class="ml-md-3 mr-md-3 my-2 chartSetting">
  452. <div>
  453. <p class="font-weight-bold">字體大小:</p>
  454. <label class="d-none" for="table_fontSize">字體大小:</label>
  455. <input type="number" value="14" step="1" class="form-control mb-3" id="pie_fontSize" />
  456. <p class="font-weight-bold">標籤寬度:</p>
  457. <input type="range" id="PieMaxWidthRange" min="50" max="200" step="10" value="100">
  458. </div>
  459. </form>
  460. <form id="table_setting" class="ml-md-3 mr-md-3 my-2 chartSetting">
  461. <div>
  462. <p class="font-weight-bold">圖表字體大小:</p>
  463. <label class="d-none" for="table_fontSize">字體大小:</label>
  464. <input type="number" value="32" step="1" class="form-control" id="table_fontSize" />
  465. </div>
  466. </form>
  467. <div id="lineChartSetting">
  468. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  469. <p class="font-weight-bold">橫縱軸字體大小:</p>
  470. <label class="d-none" for="XfontSize">字體大小:</label>
  471. <input type="number" value="18" step="1" class="form-control" id="XfontSize" />
  472. </form>
  473. <form class="ml-md-3 mr-md-3 my-3 chartSetting">
  474. <div id="borderSetting" class="borderWidth d-flex">
  475. <div>
  476. <p class="font-weight-bold">線條粗細:</p>
  477. <label for="borderWidthRange" class="form-label d-none">線條粗細</label>
  478. <input type="number" class="form-range" id="borderWidthRange" min="1" max="5" value="1"
  479. step="1">
  480. <!-- <span id="borderWidthRangeValue">1</span> -->
  481. </div>
  482. <div class="ml-lg-5">
  483. <p style="margin-bottom: 10px;" class="font-weight-bold">線條顏色:</p>
  484. <label for="exampleColorInput" class="form-label d-none">線條顏色</label>
  485. <input type="color" class="form-control form-control-color" id="borderColorInput"
  486. value="#912B2B" title="Choose your color">
  487. </div>
  488. </div>
  489. <div>
  490. </div>
  491. <div id="lineYfontSize">
  492. <p class="font-weight-bold">數據字體大小:</p>
  493. <label class="d-none" for="YfontSize">字體大小:</label>
  494. <input type="number" value="18" step="1" class="form-control" id="YfontSize" />
  495. </div>
  496. <div class="mt-3 d-flex">
  497. <div>
  498. 顯示數據點:<input class="ml-1" type="checkbox" id="togglePoints">
  499. </div>
  500. <div class="ml-3">
  501. 顯示數值:<input class="ml-1" type="checkbox" id="toggleValue" checked>
  502. </div>
  503. <div class="ml-3">
  504. 顯示單位:<input class="ml-1" type="checkbox" id="toggleUnit" checked>
  505. </div>
  506. </div>
  507. </form>
  508. </div>
  509. <div id="barChartSetting">
  510. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  511. <p class="font-weight-bold">橫軸字體大小:</p>
  512. <label class="d-none" for="XfontSize">字體大小:</label>
  513. <input type="number" value="14" step="1" class="form-control" id="XfontSizeBar" />
  514. </form>
  515. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  516. <p class="font-weight-bold">縱軸字體大小:</p>
  517. <label class="d-none" for="XfontSize">字體大小:</label>
  518. <input type="number" value="14" step="1" class="form-control" id="YfontSizeBar" />
  519. </form>
  520. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  521. <div id="borderSetting" class="borderWidth d-flex">
  522. <div>
  523. <p style="margin-bottom: 10px;" class="font-weight-bold">柱狀顏色:</p>
  524. <label for="exampleColorInput" class="form-label d-none">線條顏色</label>
  525. <input type="color" class="form-control form-control-color" id="borderColorInputBar"
  526. value="#288D97" title="Choose your color">
  527. </div>
  528. </div>
  529. <div>
  530. </div>
  531. </form>
  532. </div>
  533. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  534. <p class="font-weight-bold">背景圖片:</p>
  535. <div class="d-flex">
  536. <img class="bgImg" src="./img/bg01.webp" width="80" height="60" alt="" value="./img/bg01.webp">
  537. <img class="bgImg ml-2" src="./img/bg02.webp" width="80" height="60" value="./img/bg02.webp" alt="">
  538. <img class="bgImg ml-2" src="./img/bg05.webp" width="80" height="60" value="./img/bg05.webp" alt="">
  539. <img class="bgImg ml-2" src="./img/bg.webp" width="80" height="60" value="./img/bg.webp" alt="">
  540. </div>
  541. <div class="d-flex mt-3">
  542. <img class="bgImg" src="./img/bg04.webp" width="80" height="60" value="./img/bg04.webp" alt="">
  543. <img class="bgImg ml-2" src="./img/bg06.webp" width="80" height="60" value="./img/bg06.webp" alt="">
  544. <img class="bgImg ml-2" src="./img/bg07.webp" width="80" height="60" value="./img/bg07.webp" alt="">
  545. <div class="bgImg ml-2 d-flex align-items-center justify-content-center" value="" width="80" height="80"
  546. style="border:1px solid #e3e6f0;">
  547. <p style="width: 80px" class="mb-0 text-center">無</p>
  548. </div>
  549. </div>
  550. </form>
  551. <form class="ml-md-3 mr-md-3 my-2 chartSetting">
  552. <p class="font-weight-bold">場景圖片:</p>
  553. <select id="finance_options" class="form-control form-select" aria-label="Default select example">
  554. </select>
  555. </form>
  556. </div>
  557. <!-- Bootstrap core JavaScript-->
  558. <script src="./vendor/jquery/jquery.min.js"></script>
  559. <script src="./vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  560. <!-- Core plugin JavaScript-->
  561. <script src="./vendor/jquery-easing/jquery.easing.min.js"></script>
  562. <!-- Custom scripts for all pages-->
  563. <script src="./js/sb-admin-2.min.js"></script>
  564. <!-- Page level plugins -->
  565. <!-- <script src="vendor/chart.js/Chart.min.js"></script> -->
  566. <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
  567. <script src="https://cdn.jsdelivr.net/npm/chart.js@3.0.0/dist/chart.min.js"></script>
  568. <script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-3d@1.0.0-beta.2/dist/chartjs-plugin-3d.min.js"></script>
  569. <script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@2.0.0"></script>
  570. <!-- Page level custom scripts -->
  571. <script src="./vendor/datatables/jquery.dataTables.min.js"></script>
  572. <script src="./vendor/datatables/dataTables.bootstrap4.min.js"></script>
  573. <!-- amcharts -->
  574. <script src="https://cdn.amcharts.com/lib/4/core.js"></script>
  575. <script src="https://cdn.amcharts.com/lib/4/charts.js"></script>
  576. <script src="https://cdn.amcharts.com/lib/4/themes/animated.js"></script>
  577. <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
  578. <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
  579. <script src="./src/recorder-core.js"></script> <!--必须引入的录音核心-->
  580. <script src="./src/engine/mp3.js"></script> <!--相应格式支持文件-->
  581. <script src="./src/engine/mp3-engine.js"></script> <!--如果此格式有额外的编码引擎的话,也要加上-->
  582. <script src="./src/extensions/frequency.histogram.view.js"></script>
  583. <script src="./src/extensions/lib.fft.js"></script>
  584. <script src="./js/demo/text-to-chart.js"></script>
  585. <!-- <script src="./js/demo/microphone.js"></script> -->
  586. </body>
  587. </html>