Files
moon-gaming/WebGames-master/WebGames-master/DevQuiz/index.html
T
2025-02-21 23:20:21 -06:00

129 lines
5.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- google fonts link -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&family=M+PLUS+1+Code&family=Nunito:wght@300;400;500&family=Slabo+13px&display=swap" rel="stylesheet">
<link rel="icon" href="/assets/dev_quiz.png">
<!-- font awesome cdn -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style.css">
<script defer src="script.js"></script>
<title>👨‍💻 Dev Quiz 👨‍💻</title>
</head>
<body>
<div class="game-end-panel">
<h1 class="end-result">
<span class="init">function</span>
<span class="function">gameResult</span><span class="brackets">(){</span>
<br>
<span class="result-panel">
<h3 class="remark-emoji">{emo}</h3>
<h3 class="score-section">score: <span class="score-box">0</span>/<span class="total-score">0<script></script></span></h3>
<h3 class="percent">( 0% )</h3>
<br><br>
<span class="btn">&emsp;&emsp;<button class="restart-btn">restartQuiz<span class="btn-brackets">()</span><span class="btn-colon">;</span></button></span>
</span>
<br>
<span class="brackets">}</span>
</h1>
</div>
<div class="game-instructions">
<div class="close-btn">
<h1 class="exit">
<span class="code">exit</span>
<span class="brackets">()</span>
<span class="colon">;</span>
</h1>
</div>
<div class="instructions">
<h1 class="inst-heading">
<span class="code">Console.log</span>
<span class="brackets">(</span><span class="string">game-instruction</span>
<span class="brackets">)</span><span class="colon">;</span>
<br>
<br>
<span class="output">></span>
</h1>
<h2 class="inst-text">
<ul>
<li>If you are not programmer ( or related to field of <span class="is-love">Computer Science❤️</span> ), this game might be not for you as this game is for programmers.</li>
<li>The game presents questions related to programming or computer science, each with four answer options.</li>
<li>Payers must select the option they believe is the correct answer.</li>
<li>Correct answers are worth 10 points, and there's no penalty for wrong answers.</li>
<li>The final score is determined by the number of correct answers, with a maximum of 10 points per question.</li>
<li>At the end of the game, players will see their total score as an indicator of their programming knowledge.</li>
</ul>
</h2>
</div>
</div>
<div class="main-screen">
<div class="start-panel">
<h1>
<span class="code">Console.log<span class="brackets">(</span>
<span class="string">&quot;Dev Quiz&quot;</span>
<span class="brackets">)</span>
<span class="colon">;</span>
</span>
<br>
<br>
<span class="if-else">if&nbsp;</span><span class="brackets">(</span>
<span class="function">programmer<span class="brackets">(Miles_And_Robert)</span></span>
<span class="brackets">){</span>
<br>
<span class="btn">&emsp;&emsp;<button class="start-btn">startQuiz<span class="btn-brackets">()</span><span class="btn-colon">;</span></button></span>
<br>
<span class="if-else"><span class="brackets">}</span><br>else<span class="brackets">{</span></span>
<br>
<span class="function read-instruction">&emsp;&emsp;readInstruction<span class="brackets">()</span><span class="colon">;</span></span>
<br>
<span class="brackets">}</span>
</h1>
</div>
</div>
<div class="instruction-panel">
</div>
<div class="game-screen">
<div class="score-panel">Score: <span class="score">0</span></div>
<!-- here all the game data will be present -->
<div class="game-panel">
<div class="question-panel">
<h1>QUESTION</h1>
</div>
<div class="option-panel">
<button class="options option-a">OPTION</button>
<button class="options option-b">OPTION</button>
<button class="options option-c">OPTION</button>
<button class="options option-d">OPTION</button>
</div>
</div>
<div class="question-count-wrapper">
<span class="question-count"></span>
<span class="questions-array-length"></span>
<span class="questions-asked-array"></span>
</div>
</div>
</body>
</html>