-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (57 loc) · 1.72 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
<!DOCTYPE html>
<html dir="ltr" lang="ru" class="no-js">
<head>
<title>Google Shop</title>
<link
rel="stylesheet"
crossorigin="anonymous"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T">
<link
rel="stylesheet"
href="dist/css/app.css">
</head>
<body>
<!-- Google Shop example -->
<div class="wrapper mt-5">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1 class="text-center mb-5">Goggle Shop</h1>
</div>
</div>
<div id="shop-field" class="row"></div>
</div>
<!-- Handlebars example -->
<div id="handlebars-content"></div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.0/handlebars.js"></script>
<!-- Handlebars example -->
<script id="pet-item" type="text/x-handlebars-template">
<div class="container">
<div class="row pet-item">
{{#each pets}}
<div class="pet col-xl-3 col-lg-4 col-sm-6 pet-item__inner">
<div class="pet-item_photo">
<img src="{{photo}}" alt="pet photo">
</div>
<div class="pet-item_info">
<h5 class="pt-10 pet-item__title">{{name}} <span class="species pet-item__title-inner">{{species}}</span></h5>
<p class="pet-item__age">Age: {{calculateAge birthYear}}</p>
{{#if favFoods}}
<h4 class="pet-item__favorite">Favorite foods</h4>
<ul class="pet-item__favorite--list">
{{#each favFoods}}
<li>{{{this}}}</li>
{{/each}}
</ul>
{{/if}}
</div>
</div>
{{/each}}
</div>
</div>
</script>
<script type="module" src="dist/js/app.min.js"></script>
</body>
</html>