software-development-2022-e.../session-4/3-number-guesser/index.html

28 lines
948 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TITLE</title>
<link
href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
<script src="https://unpkg.com/vue@next" defer></script>
<script src="app.js" defer></script>
</head>
<body>
<section id="app">
<p :class="paraClasses">{{ result }}</p>
{{number}}<br /><br />
<button @click="changeNumber(-10)">- 10</button>&nbsp;
<button @click="changeNumber(-5)">- 5</button>&nbsp;
<button @click="changeNumber(-1)">- 1</button>&nbsp;
<button @click="changeNumber(1)">+ 1</button>&nbsp;
<button @click="changeNumber(5)">+ 5</button>&nbsp;
<button @click="changeNumber(10)">+ 10</button>
</section>
</body>
</html>