<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TTVS 資科競賽檢定練習系統</title>
    <link rel="icon" href="https://i.imgur.com/P3EVpnQ.png" type="image/png">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.6.3/css/foundation.min.css">
    <script src="https://www.gstatic.com/firebasejs/9.1.2/firebase-app.js"></script>
    <script src="https://www.gstatic.com/firebasejs/9.1.2/firebase-auth.js"></script>
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-XELSWLMFDR"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-XELSWLMFDR');
</script>
    <script>
       
        window.onload = function() {
            
            if (localStorage.getItem('isLoggedIn') !== 'true') {
            
                alert('由於您尚未登入，按下確定後將返回至首頁進行登入。');
         
                window.location.href = '../../index.html';
            }
        };
    </script>
 <style>

body {
    padding: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f4f8;
    color: #333;
}

.quiz-container {
    max-width: 600px;
    margin: auto;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

h1 {
    color: #007aff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 26px;
}

.btn {
    margin: 5px;
    border-radius: 20px;
    padding: 10px 20px;
}

.btn-primary {
    background-color: #007aff;
    border: none;
    color: white;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: #0051a8;
    transform: scale(1.05);
}

.btn-outline-primary {
    border: 2px solid #007aff;
    color: #007aff;
    background-color: white;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.btn-outline-primary:hover {
    background-color: #007aff;
    color: white;
    transform: scale(1.05);
}

.hidden {
    display: none;
}

.question {
    margin-top: 20px;
}

.result-section {
    text-align: center;
    margin-top: 30px;
    font-size: 18px;
}

.result-section p {
    margin: 10px 0;
}


footer {
    text-align: center;
    padding: 15px 0;

    color: #333; /* 字體顏色 */
    margin-top: 20px; /* 與內容區域的間隔 */
    border-top: 1px solid #ddd; /* 上邊框 */
}

footer a {
    color: #007aff; /* 鏈接顏色 */
    text-decoration: none; /* 去除下劃線 */
}

footer a:hover {
    text-decoration: underline; /* 懸停時顯示下劃線 */
}

 </style>

</head>
<body>
    <div class="quiz-container">
        <h1 class="text-center">資訊類專業英文詞彙測驗</h1>

        <div id="quiz-container"></div>

        <div id="results" class="hidden">
            <h3>測驗結果</h3>
            <p id="score-details"></p>
            <p id="total-score"></p>
        </div>

        <div class="text-center mt-4">
            <button id="nextBtn" class="btn btn-success hidden" onclick="nextQuestion()">下一題</button>
        </div>
    </div>

    <script src="../../java/pvqcictexamdata.js"></script>
    <script>const totalQuizzes = 5; 
        const questionsPerQuiz = 20;
        const pointsPerQuestion = 1; 
        let currentQuiz = 1;
        let currentQuestionIndex = 0;
        let totalScore = 0;
        let quizScores = [0, 0, 0, 0, 0]; 
        let answeredQuestions = Array(questionsPerQuiz).fill(false); 
        const wordBank = [
            { english: 'access point', chinese: '無線網路存取器' },
            { english: 'access time', chinese: '存取時間' },
            { english: 'accounting information system', chinese: '會計資訊系統' },
            { english: 'Acer', chinese: '宏碁' },
            { english: 'act', chinese: '法案' },
            { english: 'administrator', chinese: '管理員；監督人' },
            { english: 'ADSL', chinese: '非對稱數位用戶迴路' },
            { english: 'adware', chinese: '廣告軟體' },
            { english: 'agent', chinese: '代理人；代理商' },
            { english: 'AI', chinese: '人工智慧' },
            { english: 'algorithm', chinese: '演算法' },
            { english: 'all rights reserved', chinese: '版權所有' },
            { english: 'ALU', chinese: '算術邏輯單元' },
            { english: 'analog', chinese: '類比' },
            { english: 'analysis', chinese: '分析' },
            { english: 'Android', chinese: '安卓' },
            { english: 'ANSI', chinese: '美國國家標準協會' },
            { english: 'antivirus', chinese: '防毒' },
            { english: 'antivirus software', chinese: '防毒軟體' },
            { english: 'Apple', chinese: '蘋果' },
            { english: 'architecture', chinese: '架構' },
            { english: 'array', chinese: '陣列' },
            { english: 'ASCII', chinese: '美國資訊交換標準碼' },
            { english: 'ASP', chinese: '應用服務供應商' },
            { english: 'asset', chinese: '資產' },
            { english: 'ASUS', chinese: '華碩' },
            { english: 'auction', chinese: '拍賣' },
            { english: 'audio', chinese: '音訊' },
            { english: 'audit', chinese: '審核；審計；查帳' },
            { english: 'authority', chinese: '權威；權力（機構）' },
            { english: 'autocomplete', chinese: '自動完成' },
            { english: 'autoformat', chinese: '自動套用格式' },
            { english: 'autosum', chinese: '自動加總' },
            { english: 'B2G', chinese: '企業對政府之間的相互交易' },
            { english: 'back color', chinese: '背景顏色' },
            { english: 'back up data', chinese: '備份資料' },
            { english: 'backbone', chinese: '骨幹網路' },
            { english: 'bandwidth', chinese: '頻寬' },
            { english: 'base', chinese: '基底' },
            { english: 'baseband transmission', chinese: '基頻傳輸' },
            { english: 'batch processing', chinese: '批次處理' },
            { english: 'battery', chinese: '電池' },
            { english: 'BBS', chinese: '電子佈告欄系統' },
            { english: 'benefit', chinese: '效益' },
            { english: 'biometrics', chinese: '生物測定學' },
            { english: 'BIOS', chinese: '基本輸入輸出系統' },
            { english: 'bit', chinese: '位元' },
            { english: 'bitmap', chinese: '點陣圖' },
            { english: 'blog', chinese: '部落格' },
            { english: 'Bluetooth', chinese: '藍牙' },
            { english: 'bps', chinese: '每秒的位元數' },
            { english: 'bridge', chinese: '橋接器' },
            { english: 'broadband', chinese: '寬頻' },
            { english: 'broadband transmission', chinese: '寬頻傳輸' },
            { english: 'broadcast', chinese: '廣播' },
            { english: 'broker', chinese: '仲介商' },
            { english: 'browser', chinese: '瀏覽器' },
            { english: 'buffer', chinese: '緩衝器' },
            { english: 'bug', chinese: '瑕疵；（程式）錯誤' },
            { english: 'bulletin board system', chinese: '電子佈告欄系統' },
            { english: 'business', chinese: '企業或商務' },
            { english: 'business intelligence', chinese: '商業智慧（BI）' },
            { english: 'business model', chinese: '商業模式' },
            { english: 'business process and operation', chinese: '企業流程與營運' },
            { english: 'byte', chinese: '位元組' },
            { english: 'C2C', chinese: '消費者對消費者之間的相互交易' },
            { english: 'CA', chinese: '認證機構' },
            { english: 'cache', chinese: '快取' },
            { english: 'cache memory', chinese: '快取記憶體' },
            { english: 'CAI', chinese: '電腦輔助教學' },
            { english: 'call', chinese: '呼叫' },
            { english: 'catalog', chinese: '型錄' },
            { english: 'CD-R', chinese: '可錄式光碟' },
            { english: 'cell', chinese: '儲存格' },
            { english: 'cell phone', chinese: '行動電話' },
            { english: 'central processing unit', chinese: '中央處理單元' },
            { english: 'certificate', chinese: '憑證；認證' },
            { english: 'certificate authority', chinese: '憑證授權認證機構' },
            { english: 'character', chinese: '字元' },
            { english: 'chat', chinese: '聊天' },
            { english: 'chief information officer', chinese: '資訊長' },
            { english: 'child domain', chinese: '子網域' },
            { english: 'CIO', chinese: '資訊長' },
            { english: 'click', chinese: '單擊滴答聲' },
            { english: 'client', chinese: '用戶端' },
            { english: 'client-server LAN', chinese: '主從式區域網路' },
            { english: 'clone computer', chinese: '克隆電腦' },
            { english: 'cloud computing', chinese: '雲端運算' },
            { english: 'coaxial cable', chinese: '同軸電纜' },
            { english: 'co-location', chinese: '主機代管' },
            { english: 'communication', chinese: '通訊' },
            { english: 'community', chinese: '社群' },
            { english: 'compatible', chinese: '相容的' },
            { english: 'compile', chinese: '編譯' },
            { english: 'computer crime', chinese: '電腦犯罪' },
            { english: 'computer forensics', chinese: '電腦鑑識' },
            { english: 'computer monitoring', chinese: '電腦監控' },
            { english: 'computer software', chinese: '電腦軟體' },
            { english: 'computer vision', chinese: '電腦視覺' },
            { english: 'computer-aided design', chinese: '電腦輔助設計' },
            { english: 'computer-aided manufacturing', chinese: '電腦輔助製造' },
            { english: 'computer-assisted instruction', chinese: '電腦輔助教學' },
            { english: 'computing', chinese: '運算' },
            { english: 'conference call', chinese: '電話會議' },
            { english: 'confidentiality', chinese: '機密性' },
            { english: 'constant', chinese: '常數' },
            { english: 'content', chinese: '內容' },
            { english: 'content management', chinese: '內容管理' },
            { english: 'control unit', chinese: '控制單元' },
            { english: 'control', chinese: '控制' },
            { english: 'conversion', chinese: '轉換' },
            { english: 'copyright', chinese: '版權' },
            { english: 'core', chinese: '核心' },
            { english: 'cost', chinese: '成本' },
            { english: 'CPU', chinese: '中央處理單元' },
            { english: 'cracker', chinese: '怪客；破壞者' },
            { english: 'critical thinking', chinese: '批判性思考' },
            { english: 'CRM', chinese: '顧客關係管理' },
            { english: 'CTO', chinese: '科技長' },
            { english: 'culture', chinese: '文化' },
            { english: 'customer relationship management', chinese: '顧客關係管理' },
            { english: 'customization', chinese: '客製化' },
            { english: 'cyber', chinese: '網路的' },
            { english: 'cycle', chinese: '週期；循環' },
            { english: 'dashboard', chinese: '儀錶板' },
            { english: 'data', chinese: '資料' },
            { english: 'data bus', chinese: '資料匯流排' },
            { english: 'data center', chinese: '資訊中心' },
            { english: 'data conversion', chinese: '資料轉換' },
            { english: 'data definition', chinese: '資料定義' },
            { english: 'data dictionary', chinese: '資料字典' },
            { english: 'data flow', chinese: '資料流' },
            { english: 'data flow diagram', chinese: '資料流程圖' },
            { english: 'data integration', chinese: '資料整合' },
            { english: 'data management', chinese: '資料管理' },
            { english: 'data management software', chinese: '資料管理軟體' },
            { english: 'data manipulation', chinese: '資料操縱（尤指操作性技術）' },
            { english: 'data mining', chinese: '資料探勘；資料挖掘' },
            { english: 'data processing', chinese: '資料處理' },
            { english: 'data redundancy', chinese: '資料重複（多餘）' },
            { english: 'data structure', chinese: '資料結構' },
            { english: 'data transfer rate', chinese: '資料傳輸率' },
            { english: 'data warehouse', chinese: '資料倉儲' },
            { english: 'data worker', chinese: '資料工作者' },
            { english: 'database', chinese: '資料庫' },
            { english: 'database administrator', chinese: '資料庫管理員（DBA）' },
            { english: 'data management system', chinese: '資料庫管理系統' },
            { english: 'database server', chinese: '資料庫伺服器' },
            { english: 'data-driven', chinese: '資料導向' },
            { english: 'datagram', chinese: '數據包；資料包' },
            { english: 'date', chinese: '日期' },
            { english: 'DB', chinese: '資料庫（的英文簡稱）' },
            { english: 'DBA', chinese: '資料庫管理員' },
            { english: 'DBMS', chinese: '資料庫管理系統' },
            { english: 'DDoS', chinese: '分裂（散）式阻斷服務' },
            { english: 'debug', chinese: '除錯；偵錯' },
            { english: 'decision support system', chinese: '決策支援系統' },
            { english: 'decryption', chinese: '解密' },
            { english: 'deep packet', chinese: '深層封包' },
            { english: 'demand', chinese: '需求' },
            { english: 'design', chinese: '設計' },
            { english: 'desktop', chinese: '桌面' },
            { english: 'desktop computer', chinese: '桌上電腦' },
            { english: 'detection system', chinese: '偵測系統' },
            { english: 'development', chinese: '開發' },
            { english: 'DFD', chinese: '資料流程圖' },
            { english: 'diagram', chinese: '圖表' },
            { english: 'digital', chinese: '數位' },
            { english: 'digital asset', chinese: '數位資產' },
            { english: 'digital camera', chinese: '數位相機' },
            { english: 'digital certificate', chinese: '數位憑證' },
            { english: 'digital content', chinese: '數位內容' },
            { english: 'digital divide', chinese: '數位區隔' },
            { english: 'digital signal', chinese: '數位信號' },
            { english: 'digital video disc', chinese: '數位影音光碟（DVD）' },
            { english: 'direct', chinese: '直接的' },
            { english: 'disaster', chinese: '災難' },
            { english: 'disaster recovery', chinese: '災難復原' },
            { english: 'disk cache', chinese: '磁碟快取' },
            { english: 'display', chinese: '顯示器' },
            { english: 'disruptive', chinese: '破壞性的' },
            { english: 'disruptive technology', chinese: '破壞性科技' },
            { english: 'distance instruction', chinese: '遠距教學' },
            { english: 'distribute', chinese: '分散' },
            { english: 'distributed', chinese: '分散式' },
            { english: 'distributed processing', chinese: '分散式處理' },
            { english: 'distributed processing system', chinese: '分散式處理系統' },
            { english: 'DIY', chinese: '自己做（組裝）' },
            { english: 'DNS', chinese: '網域名稱系統' },
            { english: 'do it yourself', chinese: '自己做（組裝）' },
            { english: 'documentation', chinese: '使用說明' },
            { english: 'domain', chinese: '網域' },
            { english: 'domain name', chinese: '網域名稱' },
            { english: 'domain name system', chinese: '網域名稱系統' },
            { english: 'domestic exporter', chinese: '（國內的）出口商' },
            { english: 'DOS', chinese: '磁片作業系統' },
            { english: 'DoS', chinese: '阻斷服務' },
            { english: 'double click', chinese: '按兩下' },
            { english: 'download', chinese: '下載' },
            { english: 'download information', chinese: '下載資料' },
            { english: 'downstream', chinese: '下游的；下傳的（資料）' },
            { english: 'downstream data', chinese: '下流（游）的資料' },
            { english: 'downtime', chinese: '停機時間' },
            { english: 'doze mode', chinese: '休眠模式' },
            { english: 'DPI', chinese: '每英吋的點數' },
            { english: 'DRAM', chinese: '動態隨機存取記憶體' },
            { english: 'drill down', chinese: '向下探究' },
            { english: 'DSL', chinese: '數位用戶路線' },
            { english: 'DSS', chinese: '決策支援系統' },
            { english: 'due', chinese: '應有的；到期的' },
            { english: 'duplication', chinese: '複製' },
            { english: 'DVD', chinese: '光碟' },
            { english: 'dynamic', chinese: '動態的' },
            { english: 'e-book', chinese: '電子書' },
            { english: 'e-business', chinese: '電子化企業' },
            { english: 'EC', chinese: '電子商務' },
            { english: 'e-commerce', chinese: '電子商務' },
            { english: 'EFT', chinese: '電子金融轉帳' },
            { english: 'e-government', chinese: '電子化政府' },
            { english: 'EIS', chinese: '高階主管資訊系統' },
            { english: 'e-learning', chinese: '數位學習' },
            { english: 'electronic business', chinese: '電子化企業' },
            { english: 'electronic commerce', chinese: '電子商務' },
            { english: 'electronic government', chinese: '電子化政府' },
            { english: 'electronic payment services', chinese: '電子付費服務' },
            { english: 'electronic payment system', chinese: '電子付款服務' },
            { english: 'electronic signature', chinese: '電子簽章' },
            { english: 'e-mail', chinese: '電子郵件' },
            { english: 'encryption', chinese: '加密' },
            { english: 'end users', chinese: '終端使用者' },
            { english: 'engineering', chinese: '工程' },
            { english: 'enterprise', chinese: '企業' },
            { english: 'enterprise information portal', chinese: '企業資訊入口網站' },
            { english: 'entity relationship', chinese: '實體關係' },
            { english: 'EPS', chinese: '電子付費服務' },
            { english: 'ERP', chinese: '企業資源規劃' },
            { english: 'ES', chinese: '專家系統' },
            { english: 'Ethernet', chinese: '乙太網路' },
            { english: 'exchange', chinese: '交易' },
            { english: 'executable code', chinese: '可執行碼' },
            { english: 'executive', chinese: '行政主管；決策者' },
            { english: 'executive information system', chinese: '高階主管資訊系統' },
            { english: 'Facebook', chinese: '臉書' },
            { english: 'FALSE', chinese: '假' },
            { english: 'FAT', chinese: '檔案配置表' },
            { english: 'feedback', chinese: '回饋' },
            { english: 'fiber', chinese: '光纖' },
            { english: 'field', chinese: '欄位或區域' },
            { english: 'field name', chinese: '欄位名稱' },
            { english: 'FIFO', chinese: '先進先出' },
            { english: 'file', chinese: '檔案' },
            { english: 'file processing', chinese: '檔案處理' },
            { english: 'file type', chinese: '檔案類型' },
            { english: 'firewall', chinese: '防火牆' },
            { english: 'flash ROM', chinese: '快閃記憶體' },
            { english: 'flowchart', chinese: '流程圖' },
            { english: 'font', chinese: '字型' },
            { english: 'forensics', chinese: '鑑識' },
            { english: 'formatted disk', chinese: '已格式化的磁碟' },
            { english: 'frame', chinese: '框架' },
            { english: 'freeware', chinese: '自由軟體；免費軟體' },
            { english: 'FTP', chinese: '檔案傳輸協定' },
            { english: 'function', chinese: '函數' },
            { english: 'gateway', chinese: '閘道器' },
            { english: 'GB', chinese: '十億位元組' },
            { english: 'geographic information system', chinese: '地理資訊系統（GIS）' },
            { english: 'GHz', chinese: '十億赫茲' },
            { english: 'gigabyte', chinese: '十億位元組' },
            { english: 'gigahertz', chinese: '十億赫茲' },
            { english: 'GIS', chinese: '地理資訊系統' },
            { english: 'global positioning system', chinese: '全球定位系統' },
            { english: 'GPS', chinese: '全球定位系統' },
            { english: 'graphics', chinese: '圖形' },
            { english: 'GUI', chinese: '圖形化使用介面' },
            { english: 'hacker', chinese: '駭客' },
            { english: 'hard disk', chinese: '硬碟' },
            { english: 'HDD', chinese: '硬式磁碟機' },
            { english: 'HDMI', chinese: '高清晰度多媒體介面' },
            { english: 'Hertz', chinese: '赫茲' },
            { english: 'hide', chinese: '隱藏' },
            { english: 'home page', chinese: '首頁' },
            { english: 'host', chinese: '主機' },
            { english: 'HTML', chinese: '超文字標記語言' },
            { english: 'hub', chinese: '集線器' },
            { english: 'hyperlink', chinese: '超連結' },
            { english: 'hypermedia', chinese: '超媒體' },
            { english: 'hypertext', chinese: '超文件' },
            { english: 'hypertext markup language', chinese: '超文字標記語言' },
            { english: 'hypertext transfer protocol', chinese: '超文字傳輸協定' },
            { english: 'IaaS', chinese: '基礎建設即服務' },
            { english: 'IC', chinese: '積體電路' },
            { english: 'icon', chinese: '圖示' },
            { english: 'ICT', chinese: '資訊與網路通訊科技' },
            { english: 'IEEE', chinese: '國際電機電子工程協會' },
            { english: 'IM', chinese: '即時通訊' },
            { english: 'image', chinese: '影像' },
            { english: 'impact', chinese: '影響；衝擊；撞擊力' },
            { english: 'implementation process', chinese: '建置流程' },
            { english: 'infomediary', chinese: '資訊中介' },
            { english: 'inform', chinese: '告知；通知' },
            { english: 'information', chinese: '資訊' },
            { english: 'information and communication technology', chinese: '資訊與網路通訊科技' },
            { english: 'information appliance', chinese: '資訊家電' },
            { english: 'information processing', chinese: '資訊處理' },
            { english: 'information requirement', chinese: '資訊需求' },
            { english: 'information system', chinese: '資訊系統' },
            { english: 'information technology', chinese: '資訊科技' },
            { english: 'infrastructure', chinese: '基礎建設' },
            { english: 'infrastructure as a service', chinese: '基礎建設即服務' },
            { english: 'input', chinese: '輸入' },
            { english: 'input device', chinese: '輸入設備' },
            { english: 'input unit', chinese: '輸入單元' },
            { english: 'insertion sort', chinese: '插入排序法' },
            { english: 'installation', chinese: '安裝' },
            { english: 'instant messaging', chinese: '即時通訊' },
            { english: 'intangible', chinese: '無形的；不明確的' },
            { english: 'integrated circuit', chinese: '積體電路' },
            { english: 'integrated circuit card', chinese: 'IC卡' },
            { english: 'integrated package', chinese: '整合式套件' },
            { english: 'integrity', chinese: '完整性' },
            { english: 'Intel', chinese: '英特爾' },
            { english: 'intellectual property', chinese: '智慧財產' },
            { english: 'intelligence', chinese: '智慧' },
            { english: 'internal code', chinese: '內碼' },
            { english: 'internal modem', chinese: '內置式數據機' },
            { english: 'Internet', chinese: '網際網路' },
            { english: 'Internet bank', chinese: '網路銀行' },
            { english: 'Internet protocol', chinese: '網際網路協定（IP）' },
            { english: 'internetwork processor', chinese: '跨網處理器' },
            { english: 'iOS', chinese: 'iPhone的作業系統' },
            { english: 'IP', chinese: '網際網路協定' },
            { english: 'IS', chinese: '資訊系統' },
            { english: 'ISBN', chinese: '國際標準書號' },
            { english: 'ISO', chinese: '國際標準組織' },
            { english: 'jumper', chinese: '跳線' },
            { english: 'KB', chinese: '千位元組' },
            { english: 'key word', chinese: '關鍵字' },
            { english: 'keyboard', chinese: '鍵盤' },
            { english: 'KHz', chinese: '千赫茲' },
            { english: 'kilobyte', chinese: '千位元組（KB）' },
            { english: 'kilohertz', chinese: '千赫茲' },
            { english: 'knowledge engineer', chinese: '知識工程師' },
            { english: 'knowledge worker', chinese: '知識工作者' },
            { english: 'label', chinese: '標籤' },
            { english: 'LAN', chinese: '區域網路' },
            { english: 'language', chinese: '語言' },
            { english: 'laptop', chinese: '膝上型電腦' },
            { english: 'laser printer', chinese: '雷射印表機' },
            { english: 'LCD', chinese: '液晶顯示器' },
            { english: 'LED', chinese: '發光二極體' },
            { english: 'Lenovo', chinese: '聯想' },
            { english: 'life cycle', chinese: '生命週期' },
            { english: 'LIFO', chinese: '後進先出' },
            { english: 'light emitting diode', chinese: '發光二極體（LED）' },
            { english: 'Line', chinese: '在線' },
            { english: 'line interactive', chinese: '在線互動式' },
            { english: 'link', chinese: '連結' },
            { english: 'linker', chinese: '連結程式' },
            { english: 'Linux', chinese: '多工的作業系統' },
            { english: 'liquid crystal display', chinese: '液晶顯示器' },
            { english: 'literacy', chinese: '素養' },
            { english: 'loader', chinese: '載入程式' },
            { english: 'local area network', chinese: '區域網路' },
            { english: 'log off', chinese: '登出' },
            { english: 'log on', chinese: '登入' },
            { english: 'logical partition', chinese: '邏輯分割區' },
            { english: 'machine', chinese: '機器' },
            { english: 'Macintosh', chinese: '麥金塔' },
            { english: 'macro', chinese: '巨集' },
            { english: 'main memory', chinese: '主記憶體' },
            { english: 'malicious program', chinese: '惡意程式' },
            { english: 'MAN', chinese: '都會網路' },
            { english: 'management', chinese: '管理' },
            { english: 'management information systems', chinese: '資訊管理系統' },
            { english: 'manipulation', chinese: '操縱' },
            { english: 'marketing', chinese: '行銷' },
            { english: 'marketplace', chinese: '市集' },
            { english: 'MB', chinese: '百萬位元組' },
            { english: 'medium', chinese: '媒體' },
            { english: 'megabyte', chinese: '百萬位元組' },
            { english: 'megahertz', chinese: '百萬赫茲' },
            { english: 'memory', chinese: '記憶體' },
            { english: 'memory unit', chinese: '記憶單元' },
            { english: 'menu', chinese: '功能表' },
            { english: 'message box', chinese: '訊息視窗' },
            { english: 'metadata', chinese: '定義的資料' },
            { english: 'Metcalfe\'s law', chinese: '梅特卡夫定律' },
            { english: 'method', chinese: '方法' },
            { english: 'MHz', chinese: '百萬赫茲' },
            { english: 'microphone', chinese: '麥克風' },
            { english: 'microprocessor', chinese: '微處理器' },
            { english: 'microsecond', chinese: '微秒' },
            { english: 'Microsoft', chinese: '微軟' },
            { english: 'microwave', chinese: '微波' },
            { english: 'midrange system', chinese: '中型系統' },
            { english: 'millennium', chinese: '千禧年' },
            { english: 'millisecond', chinese: '毫秒' },
            { english: 'mobile communication', chinese: '行動通訊' },
            { english: 'mobile network', chinese: '行動網路' },
            { english: 'mobile wallet', chinese: '手機錢包' },
            { english: 'model', chinese: '模型' },
            { english: 'modem', chinese: '數據機' },
            { english: 'modulation', chinese: '調變' },
            { english: 'module', chinese: '模組' },
            { english: 'monitor', chinese: '顯示器' },
            { english: 'motherboard', chinese: '主機板' },
            { english: 'mouse', chinese: '滑鼠' },
            { english: 'MU', chinese: '記憶單元' },
            { english: 'multicore', chinese: '多核心的' },
            { english: 'multiplexer', chinese: '多工器' },
            { english: 'nano', chinese: '奈米' },
            { english: 'nanosecond', chinese: '奈秒' },
            { english: 'NAT', chinese: '網址解析' },
            { english: 'network', chinese: '網路' },
            { english: 'network address translation', chinese: '網址解析' },
            { english: 'network interface card', chinese: '網路介面卡（NIC）' },
            { english: 'network operating system', chinese: '網路作業系統' },
            { english: 'network server', chinese: '網路伺服器' },
            { english: 'network terminal', chinese: '網路終端機' },
            { english: 'NIC', chinese: '網路卡' },
            { english: 'NII', chinese: '國家資訊基礎建設' },
            { english: 'node', chinese: '節點' },
            { english: 'Nokia', chinese: '諾基亞' },
            { english: 'non-repudiation', chinese: '不可否認性' },
            { english: 'normalization', chinese: '正規化' },
            { english: 'notebook', chinese: '筆記型' },
            { english: 'N-tier client-server architecture', chinese: '多層式主從式架構' },
            { english: 'OA', chinese: '辦公室自動化' },
            { english: 'object', chinese: '物件' },
            { english: 'object-oriented language', chinese: '物件導向語言' },
            { english: 'OCR', chinese: '光學字元辨識軟體' },
            { english: 'office automation', chinese: '辦公室自動化' },
            { english: 'offline', chinese: '離線' },
            { english: 'offshoring', chinese: '境外' },
            { english: 'OLAP', chinese: '線上分析處理' },
            { english: 'OLE', chinese: '物件連結與嵌入' },
            { english: 'OLTP', chinese: '線上交易處理' },
            { english: 'on-demand', chinese: '隨需；即需' },
            { english: 'online analytical processing', chinese: '線上分析處理' },
            { english: 'online transaction', chinese: '線上交易' },
            { english: 'online transaction processing', chinese: '線上交易處理' },
            { english: 'open source', chinese: '開放原始碼' },
            { english: 'open standard', chinese: '開放式標準' },
            { english: 'open system', chinese: '開放式系統' },
            { english: 'operating system', chinese: '作業系統' },
            { english: 'operation', chinese: '營運' },
            { english: 'optical disc', chinese: '光碟' },
            { english: 'optimization', chinese: '優化；最佳化' },
            { english: 'option button', chinese: '選項按鈕' },
            { english: 'OSI', chinese: '開放式系統互聯' },
            { english: 'OSI model', chinese: '開放式系統互聯模型' },
            { english: 'OU', chinese: '輸出單元' },
            { english: 'output', chinese: '輸出' },
            { english: 'output unit', chinese: '輸出單元' },
            { english: 'outsourcing', chinese: '外包' },
            { english: 'P2P', chinese: '點對點對等式' },
            { english: 'pad', chinese: '平板；墊子' },
            { english: 'pages per minute', chinese: '每分鐘列印的頁數' },
            { english: 'parallel transmission', chinese: '並列傳輸' },
            { english: 'parameter', chinese: '參數' },
            { english: 'password', chinese: '密碼' },
            { english: 'patch', chinese: '（軟體）修補' },
            { english: 'patent', chinese: '專利' },
            { english: 'payment', chinese: '付費' },
            { english: 'PC', chinese: '個人電腦' },
            { english: 'PCI', chinese: '周邊元件互聯（擴充槽）' },
            { english: 'PDA', chinese: '個人數位助理' },
            { english: 'people resource', chinese: '人力資源' },
            { english: 'peripheral', chinese: '周邊設備' },
            { english: 'personal computer', chinese: '個人電腦' },
            { english: 'personal information', chinese: '個人資訊' },
            { english: 'pharming', chinese: '網址嫁接；網域欺騙技術' },
            { english: 'phishing', chinese: '網路釣魚' },
            { english: 'pivot table', chinese: '樞紐分析表' },
            { english: 'pixel', chinese: '像素' },
            { english: 'plan', chinese: '計畫' },
            { english: 'PnP', chinese: '隨插即用' },
            { english: 'point-point protocol', chinese: '點對點協定' },
            { english: 'POP', chinese: '（收信）郵件通訊協定' },
            { english: 'portability', chinese: '可攜型' },
            { english: 'portable computer', chinese: '筆記型電腦' },
            { english: 'portal', chinese: '入口網站' },
            { english: 'POS', chinese: '銷售時點' },
            { english: 'POST', chinese: '開機自我測試' },
            { english: 'power cord', chinese: '電源線' },
            { english: 'power supply', chinese: '電源供應器' },
            { english: 'power-on self test', chinese: '開機自我測試' },
            { english: 'PPM', chinese: '每分鐘列印的頁數' },
            { english: 'PPTP', chinese: '點對點通道協定' },
            { english: 'presentation', chinese: '簡報' },
            { english: 'primary key', chinese: '主鍵' },
            { english: 'primary partition', chinese: '主要分割區' },
            { english: 'printer', chinese: '印表機' },
            { english: 'private', chinese: '私有的' },
            { english: 'private key', chinese: '私密金鑰' },
            { english: 'procedure', chinese: '程序' },
            { english: 'process', chinese: '過程；處理' },
            { english: 'process control system', chinese: '流程控制系統' },
            { english: 'processor', chinese: '處理器' },
            { english: 'production', chinese: '生產' },
            { english: 'program', chinese: '程式' },
            { english: 'programming', chinese: '程式（設計）' },
            { english: 'programming language', chinese: '程式語言' },
            { english: 'project', chinese: '專案' },
            { english: 'projector', chinese: '投影機' },
            { english: 'property', chinese: '屬性；所有權' },
            { english: 'protocol', chinese: '協定' },
            { english: 'pseudo code', chinese: '虛擬碼' },
            { english: 'PSTN', chinese: '公眾電話網路' },
            { english: 'public key', chinese: '公開金鑰' },
            { english: 'QR code', chinese: '快速反應（二維）碼' },
            { english: 'queue', chinese: '佇列' },
            { english: 'quick response code', chinese: '快速反應（二維）碼' },
            { english: 'quick sort', chinese: '快速排序法' },
            { english: 'radio frequency', chinese: '無線電射頻（RF）' },
            { english: 'RAID', chinese: '磁碟陣列' },
            { english: 'RAM', chinese: '隨機存取記憶體' },
            { english: 'random access memory', chinese: '隨機存取記憶體' },
            { english: 'read-only memory', chinese: '唯讀記憶體' },
            { english: 'recharge battery', chinese: '可充電式電池' },
            { english: 'record', chinese: '紀錄' },
            { english: 'recovery', chinese: '恢復' },
            { english: 'referential integrity', chinese: '參照完整性' },
            { english: 'refresh rate', chinese: '更新率' },
            { english: 'relational database', chinese: '關聯式資料庫' },
            { english: 'relational model', chinese: '關聯式模型' },
            { english: 'relationship', chinese: '關係' },
            { english: 'replication', chinese: '覆寫；複製品' },
            { english: 'requirement', chinese: '需求；要求' },
            { english: 'resolution', chinese: '解析度' },
            { english: 'revenue model', chinese: '獲利模式' },
            { english: 'RFID', chinese: '無線射頻辨識' },
            { english: 'ring', chinese: '環狀' },
            { english: 'risk', chinese: '風險' },
            { english: 'ROM', chinese: '唯讀記憶體' },
            { english: 'router', chinese: '路由器' },
            { english: 'routing', chinese: '規劃路徑（網路）' },
            { english: 'RPM', chinese: '每分鐘旋轉圈數' },
            { english: 'SaaS', chinese: '軟體即時服務' },
            { english: 'Samsung', chinese: '三星' },
            { english: 'SATA', chinese: '串（序）列電腦匯流排' },
            { english: 'satellite', chinese: '通訊衛星' },
            { english: 'scanner', chinese: '掃描器' },
            { english: 'SCM', chinese: '供應鏈管理' },
            { english: 'SCSI', chinese: '小型電腦系統介面' },
            { english: 'SD', chinese: '安全數位（卡）' },
            { english: 'SDHC', chinese: '安全數位高容量（卡）' },
            { english: 'SDLC', chinese: '系統開發生命週期' },
            { english: 'SDRAM', chinese: '同步動態隨機存取記憶體' },
            { english: 'SDXC', chinese: '安全數位延伸高容量（卡）' },
            { english: 'search engine', chinese: '搜尋引擎' },
            { english: 'secondary storage', chinese: '次級儲存體' },
            { english: 'sector', chinese: '磁區' },
            { english: 'secure digital', chinese: '安全數位（卡）（SD）' },
            { english: 'secure digital extended capacity', chinese: '安全數位延伸高容量（卡）' },
            { english: 'secure digital high capacity', chinese: '安全數位高容量（卡）' },
            { english: 'secure electronic transactions', chinese: '安全電子交易' },
            { english: 'semiconductor memory', chinese: '半導體記憶體' },
            { english: 'senior', chinese: '高階的；資深的；大四學生；長輩' },
            { english: 'serial port', chinese: '序列埠' },
            { english: 'serial transmission', chinese: '串列傳輸' },
            { english: 'server', chinese: '伺服器' },
            { english: 'SET', chinese: '安全電子交易' },
            { english: 'shareware', chinese: '共享軟體' },
            { english: 'show', chinese: '顯示' },
            { english: 'six sigma', chinese: '六個標準差' },
            { english: 'sizing handles', chinese: '尺寸（大小）控點（s）' },
            { english: 'Skype', chinese: '免費通話與聊天通訊工具' },
            { english: 'slide', chinese: '投影片' },
            { english: 'smart card', chinese: '智慧卡' },
            { english: 'smart phone', chinese: '智慧型電話' },
            { english: 'sniffer', chinese: '網路監聽' },
            { english: 'software', chinese: '軟體' },
            { english: 'software resource', chinese: '軟體資源' },
            { english: 'solid state', chinese: '固態' },
            { english: 'sort', chinese: '排序' },
            { english: 'spam', chinese: '垃圾郵件' },
            { english: 'specification', chinese: '規格（範）式算表軟體' },
            { english: 'spreadsheet software', chinese: '試算表軟體' },
            { english: 'SQL', chinese: '結構化查詢語言' },
            { english: 'SRAM', chinese: '靜態隨機存取記憶體' },
            { english: 'standby mode', chinese: '待命模式' },
            { english: 'star', chinese: '星狀' },
            { english: 'statement', chinese: '敘述' },
            { english: 'storage', chinese: '儲存；貯藏（量）' },
            { english: 'strategy', chinese: '策略；戰略' },
            { english: 'structure', chinese: '結構化' },
            { english: 'swapping', chinese: '交換；交換技術' },
            { english: 'switch', chinese: '交換器' },
            { english: 'system', chinese: '系統' },
            { english: 'systems specification', chinese: '系統規格' },
            { english: 'table', chinese: '表格' },
            { english: 'task', chinese: '工作；任務' },
            { english: 'TB', chinese: '兆位元組' },
            { english: 'TCP', chinese: '傳輸控制協定' },
            { english: 'TCP/IP', chinese: '傳輸控制協定／網路協定' },
            { english: 'technical feasibility', chinese: '技術可行性' },
            { english: 'technology', chinese: '科技；技術；工藝' },
            { english: 'telecommunication media', chinese: '電信通訊媒體' },
            { english: 'telecommunication network', chinese: '電信通訊網路' },
            { english: 'telecommunication software', chinese: '電信通訊軟體' },
            { english: 'telnet', chinese: '遠端登入' },
            { english: 'terabyte', chinese: '兆位元組（TG）' },
            { english: 'terminal', chinese: '終端機' },
            { english: 'text', chinese: '文字' },
            { english: 'textbox', chinese: '文字方塊' },
            { english: 'THz', chinese: '兆赫茲' },
            { english: 'timer', chinese: '計時器' },
            { english: 'transistor', chinese: '電晶體' },
            { english: 'transparency', chinese: '透明度' },
            { english: 'TRUE', chinese: '真' },
            { english: 'unicode', chinese: '萬國碼' },
            { english: 'upstream', chinese: '升級；上升' },
            { english: 'upload', chinese: '上傳' },
            { english: 'upstream', chinese: '上游的；向上串流的' },
            { english: 'URL', chinese: '全球資源定位器' },
            { english: 'USB', chinese: '萬用序列匯流排' },
            { english: 'user name', chinese: '用戶名稱' },
            { english: 'utility', chinese: '公用程式' },
            { english: 'value chain model', chinese: '價值鏈模型' },
            { english: 'variable', chinese: '變數' },
            { english: 'vector', chinese: '向量' },
            { english: 'virtual', chinese: '虛擬的' },
            { english: 'virus', chinese: '病毒' },
            { english: 'visualization', chinese: '視覺化；形象化' },
            { english: 'VOD', chinese: '隨選視訊系統' },
            { english: 'VoIP', chinese: '透過 IP做語音傳送' },
            { english: 'WAN', chinese: '廣域網路' },
            { english: 'warehouse', chinese: '倉儲；倉庫' },
            { english: 'webcam', chinese: '網路攝像機' },
            { english: 'weblog', chinese: '網誌；網站的紀錄' },
            { english: 'WEP', chinese: '有線等效加密（協定）' },
            { english: 'wiki', chinese: '維基（百科全書）' },
            { english: 'window', chinese: '視窗' },
            { english: 'Windows', chinese: '微軟公司開發的作業系統' },
            { english: 'wireless', chinese: '無線' },
            { english: 'wireless LAN', chinese: '無線區域網路' },
            { english: 'wireless technology', chinese: '無線科技' },
            { english: 'wizard', chinese: '精靈' },
            { english: 'word processing', chinese: '文字（書）處理' },
            { english: 'worm', chinese: '蠕蟲' },
            { english: 'WWW', chinese: '全球資訊網（的英文簡稱）' },
            { english: 'XML', chinese: '延伸性標示語言' },
            { english: 'YouTube', chinese: '影片搜尋和分享平臺' }
        ];
        
        let currentQuestions = [];
        
        function shuffle(array) {
            for (let i = array.length - 1; i > 0; i--) {
                const j = Math.floor(Math.random() * (i + 1));
                [array[i], array[j]] = [array[j], array[i]];
            }
            return array;
        }
        
        function startQuiz() {
            currentQuestions = shuffle([...wordBank]).slice(0, questionsPerQuiz);
            currentQuestionIndex = 0;
            answeredQuestions = Array(questionsPerQuiz).fill(false); 
            showQuestion();
        }
        
        function generateOptions(correctAnswer, isEnglish) {
            const incorrectAnswers = shuffle(wordBank.filter(item => (isEnglish ? item.english : item.chinese) !== correctAnswer)).slice(0, 2);
            const options = shuffle([correctAnswer, isEnglish ? incorrectAnswers[0].english : incorrectAnswers[0].chinese, isEnglish ? incorrectAnswers[1].english : incorrectAnswers[1].chinese]);
            return options;
        }
        
        function generateAudioOptions(correctAnswer) {
            const incorrectAnswers = shuffle(wordBank.filter(item => item.english !== correctAnswer)).slice(0, 2);
            const options = shuffle([correctAnswer, incorrectAnswers[0].english, incorrectAnswers[1].english]);
            return options;
        }
        
        function showQuestion() {
            if (currentQuestionIndex < currentQuestions.length) {
                const question = currentQuestions[currentQuestionIndex];
                let options;
        
                switch (currentQuiz) {
                    case 1: 
                        options = generateOptions(question.chinese, false);
                        document.getElementById('quiz-container').innerHTML = `
                            <div>
                                <h3>測驗 ${currentQuiz} - 題目 ${currentQuestionIndex + 1}</h3>
                                <p>請選擇下列英文詞彙的正確中文翻譯：</p>
                                <div class="question">
                                    <p><strong>${question.english}</strong></p>
                                    ${options.map(option => `<button class="btn btn-outline-primary" onclick="checkAnswer('${question.chinese}', '${option}', ${currentQuestionIndex})">${option}</button>`).join('')}
                                </div>
                            </div>
                        `;
                        break;
        
                    case 2: 
                        options = generateOptions(question.chinese, false);
                        document.getElementById('quiz-container').innerHTML = `
                            <div>
                                <h3>測驗 ${currentQuiz} - 題目 ${currentQuestionIndex + 1}</h3>
                                <p>請聽以下英文發音，並選擇正確的中文翻譯：</p>
                                <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${question.english}')">播放發音</button>
                                <div class="question">
                                    ${options.map(option => `<button class="btn btn-outline-primary" onclick="checkAnswer('${question.chinese}', '${option}', ${currentQuestionIndex})">${option}</button>`).join('')}
                                </div>
                            </div>
                        `;
                        break;
        
                    case 3: 
                        options = generateOptions(question.english, true);
                        document.getElementById('quiz-container').innerHTML = `
                            <div>
                                <h3>測驗 ${currentQuiz} - 題目 ${currentQuestionIndex + 1}</h3>
                                <p>請聽以下英文發音，並選擇正確的英文詞彙：</p>
                                <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${question.english}')">播放發音</button>
                                <div class="question">
                                    ${options.map(option => `<button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${option}', ${currentQuestionIndex})">${option}</button>`).join('')}
                                </div>
                            </div>
                        `;
                        break;
        
                    case 4: 
                        options = generateAudioOptions(question.english);
                        document.getElementById('quiz-container').innerHTML = `
                            <div>
                                <h3>測驗 ${currentQuiz} - 題目 ${currentQuestionIndex + 1}</h3>
                                <p>請選擇正確的英文發音：</p>
                                <p><strong>${question.chinese}</strong></p>
                                <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[0]}')">發音一</button>
                                <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[1]}')">發音二</button>
                                <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[2]}')">發音三</button>
                                <div class="question mt-3">
                                    <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[0]}', ${currentQuestionIndex})">1</button>
                                    <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[1]}', ${currentQuestionIndex})">2</button>
                                    <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[2]}', ${currentQuestionIndex})">3</button>
                                </div>
                            </div>
                        `;
                        break;
        
                    case 5: 
                        options = generateAudioOptions(question.english);
                        document.getElementById('quiz-container').innerHTML = `
                            <div>
                                <h3>測驗 ${currentQuiz} - 題目 ${currentQuestionIndex + 1}</h3>
                                <p>請選擇正確的英文發音：</p>
                                <p><strong>${question.english}</strong></p>
                                <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[0]}')">發音一</button>
                                <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[1]}')">發音二</button>
                                <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[2]}')">發音三</button>
                                <div class="question mt-3">
                                    <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[0]}', ${currentQuestionIndex})">1</button>
                                    <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[1]}', ${currentQuestionIndex})">2</button>
                                    <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[2]}', ${currentQuestionIndex})">3</button>
                                </div>
                            </div>
                        `;
                        break;
                }
            } else {
                nextQuiz();
            }
        }
        
        function playGoogleTranslateVoice(text) {
            if ('speechSynthesis' in window) {
                const utterance = new SpeechSynthesisUtterance(text);
                utterance.lang = 'en-US'; 
                window.speechSynthesis.speak(utterance);
            } else {
                alert("抱歉，您的瀏覽器不支持語音合成。");
            }
        }
        
        function checkAnswer(correctAnswer, selectedAnswer, questionIndex) {
            if (!answeredQuestions[questionIndex]) {
                const buttons = document.querySelectorAll('.btn-outline-primary');
                
           
                buttons.forEach(button => {
                    if (button.textContent === correctAnswer) {
                        button.textContent += " ✔ 正確";
                    } else if (button.textContent === selectedAnswer) {
                        button.textContent += " ✘ 錯誤";
                    }
                    button.disabled = true; 
                });
        
        
                if (correctAnswer === selectedAnswer) {
                    quizScores[currentQuiz - 1] += pointsPerQuestion;
                }
        
                answeredQuestions[questionIndex] = true;
        
              
                setTimeout(() => {
                    nextQuestion(); 
                }, 500);
            }
        }
        
        function nextQuestion() {
            document.getElementById('nextBtn').classList.add('hidden');
            currentQuestionIndex++;
            
            if (currentQuestionIndex < questionsPerQuiz) {
                showQuestion();
            } else {
                currentQuiz++;
                
                if (currentQuiz <= totalQuizzes) {
                    startQuiz();
                } else {
           
                    fetch('https://docs.google.com/forms/u/0/d/e/1FAIpQLScRDSoCSwG-kD54vKVnknKeGNtsRCaXw0ePvK7N4kmpDgZbmg/formResponse', {
                        method: 'POST',
                        headers: {
                            'Content-Type': 'application/x-www-form-urlencoded'
                        },
                        body: 'entry.XXXXXXX=' + encodeURIComponent(totalScore) 
                    }).then(response => {
                        if (response.ok) {
                            console.log('提交成功');
                        } else {
                            console.error('提交失敗');
                        }
                    }).catch(error => {
                        console.error('出錯:', error);
                    });
                    
                    showResults();
                }
            }
        }
        
        function showResults() {
            totalScore = quizScores.reduce((a, b) => a + b, 0); 
            document.getElementById('quiz-container').innerHTML = '';
            document.getElementById('score-details').innerHTML = `
                測驗一: ${quizScores[0]} / 20<br>
                測驗二: ${quizScores[1]} / 20<br>
                測驗三: ${quizScores[2]} / 20<br>
                測驗四: ${quizScores[3]} / 20<br>
                測驗五: ${quizScores[4]} / 20<br>
            `;
            document.getElementById('total-score').innerHTML = '總分: ' + totalScore + ' / 100';
            document.getElementById('results').classList.remove('hidden');
        }
        
        startQuiz();
        
        // 
        document.addEventListener('copy', (e) => {
            e.preventDefault();
            alert('專心考試');
        });
        
        
        document.addEventListener('contextmenu', (e) => {
            e.preventDefault();
            alert('想做什麼');
        });
        
        
        function detectDevTools() {
            const threshold = 160;
            const isMobile = /Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent);
        
            if (!isMobile) {
                const isDevToolsOpen = window.outerWidth - window.innerWidth > threshold || window.outerHeight - window.innerHeight > threshold;
        
                if (isDevToolsOpen) {
                    window.location.href = 'about:blank';
                }
            }
        }
        
        document.addEventListener('keydown', (e) => {
            if (e.key === 'F12') {
                e.preventDefault();
                window.location.href = 'about:blank';
            }
        });
        document.addEventListener('keydown', (e) => {
            if ((e.ctrlKey || e.metaKey) && e.key === 's') {
                e.preventDefault();
                alert('專心考試');
            }
        });
        
        setInterval(detectDevTools, 50);</script>
    <script src="../../java/antiDebug.js"></script>
    <footer>
        <p>國立草屯商工 &copy; 2024-2025 <a href="https://www.nasify.org" target="_blank">NasifyTech納啟科技開發</a></p>
    </footer>
</body>
</html>
