forked from jenofdoom/academy-responsive-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (40 loc) · 1.5 KB
/
index.html
File metadata and controls
43 lines (40 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Movie Vote Webapp</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<h1>Movies</h1>
<div class="content">
<h2 v-cloak>
Welcome,
<select class="user-select" v-model="user">
<option v-for="person in people" v-bind:value="person.id">
{{ person.name }}
</option>
</select>
</h2>
<p>Here are the movies you can vote on:</p>
<div class="movie-container">
<ul v-cloak>
<li v-for="movie in movies">
<h3>{{ movie.name }}</h3>
<em>{{ movie.length }} minutes</em>
<button v-on:click="sendVote(movie.id)">Vote</button>
<span class="votes">{{ movie.votes }}</span>
</li>
</ul>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.js"></script>
<script src="js/main.js"></script>
</body>
</html>