-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
158 lines (151 loc) · 8.73 KB
/
index.html
File metadata and controls
158 lines (151 loc) · 8.73 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="ui.css">
<script src="ui.js"></script>
<script src="userAgent.js"></script>
<title>Fooder</title>
<link rel="shortcut icon" href="/asset/image/icon.svg" type="image/x-icon">
</head>
<body>
<section class="main" id="container">
</section>
<template id="main" id="containerWithScroll">
<div style="height: 20px;"></div>
<section class="element100">
<p style="font-size: 32pt;">Hai, Kamu sekarang di </p>
</section>
<section class="element100" style=" background-color: white; z-index: 1; position: sticky;top: 0; ">
<p style="font-size: 32pt; word-break: keep-all; white-space: nowrap; font-weight: 600;">Food Court</p>
</section>
<section class="element100" style="position: sticky;top: 52.67px;background-color: white; z-index: 1;">
<section class="element100" style="display:flex; justify-content: space-between; background-color: var(--fooderOren); border-radius: 10px; color: white; height: 40px; ">
<p>Meja Saat Ini </p>
<b>123</b>
</section>
</section>
<section class="element100" >
<section style="width: 100%; height: auto;display: flex; overflow: hidden; position: relative;scroll-behavior: smooth; justify-content: space-between;" id="bannerSroll1">
<section class="feedContainer"></section>
<section class="feedContainer"></section>
<section class="feedContainer" id="scrollTest"></section>
<section class="feedContainer"></section>
</section>
</section>
<section class="element100" style="display: flex; position: sticky; top: 112.67px; background-color: white;">
<img src="/asset/image/system.svg" alt="" onclick="document.getElementById('floatMenuContainer').className = 'floatMenuContainer';">
<section class="foldedMenu" id="bannerSroll2">
</section>
<img src="/asset/image/search.svg" alt="">
</section>
<section id="productContainer">
<section>
<section class="element100" style="font-size: 24px; color: var(--fooderGreen);font-weight: 600;">
<p>Brand 1</p>
</section>
<section class="element100">
<section class="product100">
<section style="display: flex;">
<img src="/asset/image/image-files.svg" alt="">
<section class="productDesc">
<p><b>Bakso</b></p>
<section>
<img src="/asset/image/star.svg" alt="" srcset="">
<img src="/asset/image/star.svg" alt="" srcset="">
<img src="/asset/image/star.svg" alt="" srcset="">
<img src="/asset/image/star.svg" alt="" srcset="">
<img src="/asset/image/star.svg" alt="" srcset="">
</section>
<p><b>Test</b></p>
</section>
</section>
<img src="/asset/image/add-one.svg" alt="" style="width: 30px;height: 30px; padding: 10px; align-self: flex-end;">
</section>
</section>
<section class="element100">
<section class="product100">
<section style="display: flex;">
<img src="/asset/image/image-files.svg" alt="">
<section class="productDesc">
<p><b>Bakso</b></p>
<section>
<img src="/asset/image/star.svg" alt="" srcset="">
<img src="/asset/image/star.svg" alt="" srcset="">
<img src="/asset/image/star.svg" alt="" srcset="">
<img src="/asset/image/star.svg" alt="" srcset="">
<img src="/asset/image/star.svg" alt="" srcset="">
</section>
<p><b>Test</b></p>
</section>
</section>
<img src="/asset/image/add-one.svg" alt="" style="width: 30px;height: 30px; padding: 10px; align-self: flex-end;">
</section>
</section>
</section>
</section>
<section class="floatMenuContainerHidden" id="floatMenuContainer" style="width: inherit;" >
<section class="floatMenu" id="floatMenu">
<section class="element100" style="display: flex;border-bottom:solid 1px black; justify-content: space-between;">
<p style="font-weight: bold; ">Toko</p>
<p onclick="document.getElementById('floatMenuContainer').className = 'floatMenuContainerHidden';">X</p>
</section>
<p class="element100 floatMenuMerchant" style="font-weight: bold;">Toko</p>
</section>
</section>
<script>
var container = document.getElementById('bannerSroll2');
var content = container.children;
var startX, startScroll, deltaX;
container.addEventListener('mousedown', function(e) {
console.log("Woi");
startX = e.clientX;
startScroll = container.scrollTop;
deltaX = 0;
document.addEventListener('mousemove', onDrag);
document.addEventListener('mouseup', onDragEnd);
});
function onDrag(e) {
deltaX = e.clientX - startX;
container.scroll(startScroll - deltaX,0);
}
function onDragEnd() {
document.removeEventListener('mousemove', onDrag);
document.removeEventListener('mouseup', onDragEnd);
}
</script>
</template>
<template id="detail">
<img id="detailImage" src="/asset/image/image-files.svg" alt="">
<section id="detailHeader" class="element100" style="font-size: 24px; font-weight: 600;">Nasi Campur Afuk — Nasi Campur Hainam </section>
<section id="detailDesc" class="element100" style="font-weight: 100;">Nasi hainam dengan topping siobak, chasio garing madu, babi kecap, sate babi, gohiong, dan telur.</section>
<section id="detailPrice" class="element100" style="font-size: 36px; font-weight: 600;">Rp. 5000</section>
<section class="element100" style="background-color: var(--fooderGrey);">Catatan</section>
<section class="element100">
<section class="inputText100Container" style="background-color: var(--fooderGrey);">
<input type="text" class="inputText100" style="margin: 0 5px;" placeholder="Catatan Untuk Penjual">
</section>
</section>
<section class="element100" style="position: absolute;bottom: 0;background-color: var(--fooderLightGreen); display: flex; justify-content: space-between;">
<input type="number" id="quantity" name="quantity" min="1" max="5" style="border: none; background:var(--fooderLightGreen) ;" value="1">
<section style="padding: 10px; background-color: var(--fooderOren); color: white;border-radius: 10px;">Tambah Ke Keranjang</section>
</section>
<section style="position: absolute; top: 10px; left: 10px; padding: 10px; background: white; border-radius: 10px;box-shadow: 10px;">
<p onclick="location.hash='main'">⬅</p>
</section>
</template>
<template id="error" style="display: flex;">
<section style="display: flex; flex-direction: column; justify-content: center; min-height: 100vh;">
<section class="element100">
<p style="font-weight: 600; text-align: justify; font-size: 2rem;">404 : <br> Oops Something went wrong</p>
<p></p>
</section>
</section>
</template>
<script>
var miniAgent = new userAgent;
var test = "test";
</script>
</body>
</html>