平台套件
圖表、PDF、簡報、3D、搜尋、中文字型、人體解剖模型這些,平台已經準備好了。 院內的工具不能從外部網站載入(CDN、Google Fonts 都會被擋),要用就用這裡的。
你不用記這些:跟 AI 助手說你想做什麼,它會查這份清單、照這裡的網址載入。這一頁讓你知道有哪些可以用。
chart.js
版本 4.5.1圖表(折線、長條、圓餅…)
要把數字畫成圖:每月統計、問卷結果、品管趨勢。大多數圖表先用這個
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/chart.umd.min.jsecharts
版本 6.1.0圖表(常用類型的精簡版,儀表板)
圖很多、要互動(縮放、切換)的儀表板;一般的折線長條用 chart.js 就好
載入的網址授權:Apache-2.0https://platform.wanfangai.tw/lib/[email protected]/echarts.common.min.jspdfjs
版本 6.4.299在頁面裡顯示 PDF
要在頁面裡翻閱 PDF(不能用 iframe、embed、object 嵌,會被擋)
載入的網址授權:Apache-2.0https://platform.wanfangai.tw/lib/[email protected]/pdf.min.mjsreveal.js
版本 6.0.2網頁簡報
做網頁簡報:上課全螢幕播、左右鍵翻頁(PowerPoint 檔不能直接放)
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/reveal.jshttps://platform.wanfangai.tw/lib/[email protected]/reveal.cssthree
版本 0.186.13D(ES module,要 import map)
可以轉動、縮放的 3D 模型(解剖位置、器材構造);Unity、WebAssembly 不行
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/three.module.jsswiper
版本 14.3.0圖片輪播
一組圖片左右滑著看:衛教圖卡、環境介紹
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/swiper-bundle.min.jshttps://platform.wanfangai.tw/lib/[email protected]/swiper-bundle.min.cssviewerjs
版本 1.15.2看圖(放大、旋轉)
圖片要能點開放大、旋轉:流程圖、示意圖、教學影像
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/viewer.min.jshttps://platform.wanfangai.tw/lib/[email protected]/viewer.min.cssmarked
版本 18.0.14Markdown 轉網頁(要配 dompurify)
內容寫成 Markdown 要顯示成網頁;一定要配 dompurify
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/marked.umd.jsdompurify
版本 3.4.16清掉 HTML 裡會執行的東西
要把使用者輸入或 Markdown 轉出的 HTML 放進頁面之前先清乾淨(防 XSS)
載入的網址授權:(MPL-2.0 OR Apache-2.0)https://platform.wanfangai.tw/lib/[email protected]/purify.min.jsfuse.js
版本 7.5.0模糊搜尋(常見問題)
打錯字也找得到的搜尋:常見問題、查詢頁
載入的網址授權:Apache-2.0https://platform.wanfangai.tw/lib/[email protected]/fuse.min.mjspapaparse
版本 5.7.0讀 CSV
要讀使用者貼上或選的 CSV(例如從 Excel 另存的表)
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/papaparse.min.jsxlsx
版本 0.20.3讀寫 Excel 檔(xlsx、舊的 xls、csv;SheetJS 社群版)
使用者選一個 Excel 檔,在頁面裡讀出來整理、統計;或把結果存成 Excel 下載。檔案只在瀏覽器裡讀,不上傳。照官方做法 excel-report;只讀 CSV 用 papaparse 就好
載入的網址授權:Apache-2.0https://platform.wanfangai.tw/lib/[email protected]/xlsx.full.min.jspptxgenjs
版本 4.0.1產生 PowerPoint 檔(pptx;已內含 JSZip)
把統計結果做成 PowerPoint 檔下載,帶去開會或交報告(照官方做法 excel-report)。只要在網頁上播放的簡報用 reveal.js
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/pptxgen.bundle.jsjszip
版本 3.10.2在瀏覽器裡做或讀 zip 壓縮檔
一次產生好幾個檔案(例如每個單位一份 Excel)打包成一個 zip 下載,或讀使用者選的 zip。做 pptx 不用另外載,pptxgenjs 已經內含
載入的網址授權:(MIT OR GPL-3.0-or-later)https://platform.wanfangai.tw/lib/[email protected]/jszip.min.jsalpinejs-csp
版本 3.17.4在 HTML 上加互動(CSP 版)
頁面上要一點互動(展開收合、切換分頁、簡單表單),又不想寫很多 JavaScript
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/cdn.min.jspico
版本 2.1.1不用寫 class 的基本樣式
不寫 class 就有乾淨的基本樣式:單頁工具、表單
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/css/pico.min.cssbootstrap
版本 5.3.8版面與元件樣式
要現成的版面格線與元件(按鈕、表格、對話框)
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/css/bootstrap.min.csshttps://platform.wanfangai.tw/lib/[email protected]/js/bootstrap.bundle.min.jsnoto-sans-tc
版本 5.3.1中文黑體(Noto Sans TC):400 一般、500 中粗、700 粗
頁面要好看一致的中文字型;原本連 Google Fonts 的 Noto Sans TC 改用這個(Google Fonts 會被擋)。只會下載頁面用到的字
載入的網址授權:OFL-1.1https://platform.wanfangai.tw/lib/[email protected]/400.csshttps://platform.wanfangai.tw/lib/[email protected]/500.csshttps://platform.wanfangai.tw/lib/[email protected]/700.cssnoto-serif-tc
版本 5.3.1中文明體(Noto Serif TC):400 一般、700 粗
公告、證書、正式文件這類要明體的頁面;原本連 Google Fonts 的 Noto Serif TC 改用這個。只會下載頁面用到的字
載入的網址授權:OFL-1.1https://platform.wanfangai.tw/lib/[email protected]/400.csshttps://platform.wanfangai.tw/lib/[email protected]/700.csslxgw-wenkai-tc
版本 5.3.1中文楷書(霞鶩文楷 TC,字型名稱 LXGW WenKai TC):400 一般
衛教單張、講義、邀請卡這類想要溫和、像手寫楷書的頁面;做法見官方做法 fonts。只會下載頁面用到的字
載入的網址授權:OFL-1.1https://platform.wanfangai.tw/lib/[email protected]/400.cssiansui
版本 5.3.1中文手寫風(芫荽,字型名稱 Iansui):400 一般
給小朋友、長輩看的衛教、海報、卡片,活潑一點的標題;做法見官方做法 fonts。只會下載頁面用到的字
載入的網址授權:OFL-1.1https://platform.wanfangai.tw/lib/[email protected]/400.csshuninn
版本 5.3.1中文圓體(粉圓,字型名稱 Huninn):400 一般
親切、圓潤的標題與按鈕:兒科、衛教、活動頁;做法見官方做法 fonts。只會下載頁面用到的字
載入的網址授權:OFL-1.1https://platform.wanfangai.tw/lib/[email protected]/400.cssbpmf-huninn
版本 5.3.1注音圓體(注音粉圓,字型名稱 Bpmf Huninn):每個中文字旁邊自動帶注音
給還不太識字的小朋友看的衛教、注音教材;破音字可能注錯,要人工看過。做法見官方做法 fonts
載入的網址授權:OFL-1.1https://platform.wanfangai.tw/lib/[email protected]/400.cssqrcode-generator
版本 2.0.4產生 QR code(畫在 canvas 或輸出成 SVG/圖片)
把網址做成 QR code 給人用手機掃:上課的加入連結、海報、衛教單張。授權寫在檔案開頭(MIT)
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/qrcode.jsjsqr
版本 1.4.0掃 QR code(從相機畫面或圖片讀出內容)
用手機或電腦的相機掃 QR code、讀出裡面的網址或文字:掃儀器設備上的 QR 標籤、活動報到。做法見官方做法 browser-features 的「掃 QR code」。只讀 QR code,一維條碼讀不了;要產生 QR code 用 qrcode-generator
載入的網址授權:Apache-2.0https://platform.wanfangai.tw/lib/[email protected]/jsQR.jsleaflet
版本 1.9.4互動地圖(底圖、標記、範圍)
在地圖上標地點、畫範圍:院區與分院位置、社區訪視點、轉診醫院分布。底圖照官方做法 map 用國土測繪中心的圖磚(要先在院外來源清單上、且院外圖片對這個等級開放);只要一張靜態地圖就用 Google 地圖的嵌入
載入的網址授權:BSD-2-Clausehttps://platform.wanfangai.tw/lib/[email protected]/leaflet.jshttps://platform.wanfangai.tw/lib/[email protected]/leaflet.csstone
版本 15.1.22在瀏覽器裡合成音效與音樂(音效、旋律、節拍)
遊戲音效、答對答錯的提示音、節拍器、簡單的旋律;一定要照官方做法 sound(換成用計時器的 Context,Freeverb、JCReverb、BitCrusher、PluckSynth 不能用)。只播錄好的 mp3 用 <audio> 就好
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/Tone.jshtml2canvas-pro
版本 2.6.6把頁面的一塊畫面畫成圖片(PNG)
海報、證書、名牌、成果分享圖要存成圖片;做法見官方做法 image-card。是 html2canvas 的維護版(原版 1.4.1 遇到新的顏色寫法會失敗),用法一樣、也叫 html2canvas()。要 PDF 用列印
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/html2canvas-pro.min.jsmermaid
版本 12.4.0用文字畫流程圖、時序圖、甘特圖、圓餅圖、心智圖
作業流程、轉介路徑、評鑑時程這類圖;做法見官方做法 flowchart。檔案大(約 5.5 MB),只在要畫圖的頁面載入
載入的網址授權:MIThttps://platform.wanfangai.tw/lib/[email protected]/mermaid.min.jsbodyparts3d
版本 4.3.0資料人體解剖 3D 模型(BodyParts3D 4.3,全身 3,210 個網格,按構造切好)
做解剖構造、器官、骨骼的 3D 教材、查詢或測驗:照官方 skill anatomy-3d 從這裡載入要用的構造。不要自己下載模型,也不要把模型放進工具
目錄的網址(工具只載入用到的構造)授權:CC BY 4.0https://platform.wanfangai.tw/lib/[email protected]/catalog.json