-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (74 loc) · 2.69 KB
/
index.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="theme-color" content="#d71426">
<title>ShoppingList</title>
<link
href="https://fonts.googleapis.com/css?family=Amatic+SC:400,700&subset=latin-ext"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.min.css" />
<link rel="manifest" href="manifest.json">
<link rel="icon" type="image/png" href="./assets/images/icons/icon-72x72.png" />
<script src="//cdnjs.cloudflare.com/ajax/libs/annyang/2.6.0/annyang.min.js"></script>
<script src="https://unpkg.com/vue@2.6.10"></script>
</head>
<body>
<section id="app">
<h1>Twoja lista zakupów</h1>
<span class="clue" v-bind:class="{ clueActive: clueActive }">{{
clue
}}</span>
<nav>
<div class="mainButtons list" @click="toggleVisibility($event)">
Lista zakupów <br />({{ itNr }})
</div>
<div class="mainButtons cart" @click="toggleVisibility($event)">
Koszyk <br />({{ bgNr }})
</div>
</nav>
<div v-show="showList">
<!-- <h2 v-if="itNr !=0">Ilość rzeczy na liście: {{ itNr }}</h2> -->
<!-- <input placeholder="powiedz co chcesz kupić" v-model="newItem" />
<p>Testy: {{ newItem }}</p>
<button @click="submitted">Submit</button> -->
<template v-if="mockItems.length != 0">
<!-- <button @click="removeAll">Clear list</button> -->
<ul>
<template v-for="element in mockItems">
<li>
{{ element }}
<!-- <button @click="removeThis(element)">
Delete this element
</button>
<button @click="haveThis(element, $event)">
Already got that
</button> -->
</li>
</template>
</ul>
</template>
</div>
<div v-show="showCart">
<template v-if="bgNr != 0">
<!-- <h2>Ilość kupionych rzeczy: {{ bgNr }}</h2> -->
<!-- <button @click="removeAllBought">Clear list</button> -->
<ul>
<template v-for="element in boughtItems">
<li>
{{ element }}
<!-- <button @click="removeBought(element)">
I didn't buy after all
</button> -->
</li>
</template>
</ul>
</template>
</div>
</section>
<script src="scripts.js"></script>
</body>
</html>