-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (77 loc) · 3.63 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
76
77
78
79
80
81
82
<html>
<head>
<title>המלצות מהמעמקים</title>
<link rel="icon" href="./lighthouse.png" type="image/x-icon">
<!-- External libraries -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.6/handlebars.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Template stuff -->
<link rel="stylesheet" href="styles.css">
<script src="main.js"></script>
<!-- Template for the main menu / categories -->
<script id="menu-template" type="text/x-handlebars-template">
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm mb-4">
<a class="navbar-brand" href="#" onclick="showAllProducts();">המלצות מהמעמקים</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
{{#each this as |category|}}
<li class="nav-item">
<a class="nav-link" href="#" onclick="showCategory('{{category.name}}');">{{category.name}}</a>
</li>
{{/each}}
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a href="https://forms.gle/SDYStYpwbamqaDQ56" class="btn btn-outline-primary" target="_blank">Add Recommendation</a>
</li>
</ul>
</div>
</nav>
</script>
<!-- Template for the products -->
<script id="products-template" type="text/x-handlebars-template">
<h3>{{title}}</h3>
<div class="shadow-sm bg-white rounded-lg">
{{#each this.products as |product|}}
<div class="media border-bottom p-3" id="product-{{product.id}}">
<img src="{{product.iconUrl}}" width="50" class="mr-3">
<div class="media-body">
<h6 class="m-0">
<a href="{{product.website}}" target="_blank">{{product.name}}</a>
</h6>
<p class="m-0">{{product.shortDescription}}</p>
<p class="m-0 text-muted"><small>{{product.category}}</small></p>
</div>
<button class="btn btn-outline-primary" onclick="upvoteProduct({{product.id}});" {{#if product.hasVoted}}disabled{{/if}}>
⇧ {{product.votes}}
</button>
</div>
{{/each}}
{{#unless this.products}}
<p class="p-5 text-center text-muted">No Recommendations found</p>
{{/unless}}
</div>
</script>
</head>
<body class="bg-light">
<div id="menu-container"></div>
<div class="container" id="products-container">
<!-- Loading indicator: this gets replaced when we have recommendations -->
<div class="text-center p-5 m-5">
<div class="text-muted p-2">Loading Recommendations...</div>
<div class="spinner-border text-primary" role="status"></div>
</div>
</div>
<!-- div class="container" id="footer">
<div class="text-muted text-center p-3">Powered by <a href="https://sheety.co">Sheety</a></div>
</div-->
</body>
<script type="text/javascript" async="async" src="//widgets.outbrain.com/outbrain.js"></script>
<div class="OUTBRAIN" data-widget-id="TR_1" data-src="https://dlevison.github.io/deep-recs/index.html"></div>
</html>