64 lines
2 KiB
HTML
64 lines
2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-US">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="stylesheet" type="text/css" href="../style.css" />
|
|
<title>Array in a Matrix</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="theme-color" content="#157878" />
|
|
<script src="../script.js" defer></script>
|
|
</head>
|
|
|
|
<body data-new-gr-c-s-check-loaded="8.872.0" data-gr-ext-installed>
|
|
<header class="page-header">
|
|
<h1 class="project-name">
|
|
<span class="larger-name">A</span
|
|
><span class="smaller-name">RRAY IN A MATRI</span
|
|
><span class="larger-name">X</span>
|
|
</h1>
|
|
<nav>
|
|
<a href="../index.html" class="btn"> Home</a>
|
|
</nav>
|
|
</header>
|
|
<main class="main-content">
|
|
<h1>Rock Paper Scissors</h1>
|
|
<p>made with Javascript</p>
|
|
<section class="page-header">
|
|
<div
|
|
id="gameScore"
|
|
style="
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
border-width: 1px;
|
|
border-radius: 0.3rem;
|
|
"
|
|
>
|
|
<p id="scorePlayer"></p>
|
|
<p id="scoreCPU"></p>
|
|
<p id="round"></p>
|
|
</div>
|
|
<script src="RPS.js"></script>
|
|
<button class="btn game" onclick="play('rock')">🪨</button>
|
|
<button class="btn game" onclick="play('paper')">📄</button>
|
|
<button class="btn game" onclick="play('scissors')">✂️</button>
|
|
<div
|
|
id="game"
|
|
style="
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
border-width: 1px;
|
|
border-radius: 0.3rem;
|
|
"
|
|
>
|
|
<div id="choice">
|
|
<p id="text"></p>
|
|
<strong id="winner"></strong>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<footer class="site-footer">
|
|
<span class="site-footer-credits">This page is work-in-progress.</span>
|
|
</footer>
|
|
</main>
|
|
</body>
|
|
</html>
|