This repository has been archived by the owner on Jul 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
319 lines (277 loc) · 13.9 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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<!DOCTYPE html>
<!-- COPYRIGHT (C) MIT LICENSE -->
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<!-- Mobile Responsive compatibility layer -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--SEO-->
<meta name="google-site-verification" content="4cFWArBrjTrZXtRxLvjgzDXntMi1u7MJ2RuyTjaKmC0" />
<meta name="Description" content="Sugarlabs Appstore for Suar Activities">
<meta property="og:title" content="Sugarlabs Appstore" />
<meta property="og:url" content="http://sugarstore.netlify.app" />
<!-- Enable caching -->
<meta http-equiv="cache-control" content="public">
<!-- style.css -->
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/search.css">
<link rel="stylesheet" href="css/fun.css">
<link rel="stylesheet" href="css/light.css">
<link rel="stylesheet" href="css/dark.css">
<!-- Open Sans font -->
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700;800&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<title>Sugar App Store</title>
<link rel="apple-touch-icon" sizes="57x57" href="/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
</head>
<body class="boring-gradient-bg">
<!-- PRELOADER -- Will remain at the top before the whole website is loaded -->
<div class="preloader">
<img class="preloader-img" src="img/saas.gif">
</div>
<!-- navigation bar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark sass-navbar">
<a class="navbar-brand" href="#">Sugar App Store</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
<li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/srevinsaju/sugar-activity-build#adding-your-bundles-xo">Add Activities</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/srevinsaju/sugar-activity-build/releases/download/latest/saas.tar.gz">Download this appstore</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/about.html">How it works?</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/srevinsaju/sugar-activity-build"><i class="fa fa-github"></i></a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-adjust"></i>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a id="theme-dropdown" class="dropdown-item" onclick="enableDarkTheme()" href="#">
<i class="fa fa-moon"></i> Dark theme</a>
<a id="classic-dropdown" class="dropdown-item" onclick="enableClassicTheme()" href="#">
<i class="fas fa-code"></i> Classic theme</a>
</div>
</li>
<!--li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li-->
</ul>
<!--form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</ul-->
<!--div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" disabled id="customSwitch2">
<label class="custom-control-label" for="customSwitch2">Disabled switch element</label>
</div-->
<div>
<i style="color:#FFF;" class="fa fa-flask"></i>
<label class="switch">
<input type="checkbox" id="funCheckBox">
<span class="slider round"></span>
</label>
</div>
<!-- !TODO Add classic theme selector -- here ==> div>
<i style="color:#FFF;" class="fa fa-flask"></i>
<label class="switch">
<input type="checkbox" id="funCheckBox">
<span class="slider round"></span>
</label>
</div-->
</div>
</nav>
<div class="container saas-activity-search-container">
<!-- Search bar -->
<div class="col-md-10 col-lg-8 col-xl-7 mx-auto" style="margin: 23px;min-width: 70%">
<div class="col-sm-12 text-center">
<img class="center-block mx-auto shadow-lg" src="img/sugarappstore_png.png" style="margin: 23px;width:50%; border-radius: 50%"
alt="SugarLabs AppStore Logo">
</div>
<form id="saas-search-container">
<div class="form-row">
<input id="saas-search-box"
class="form-control form-control-lg"
placeholder="Search for Activities!"
autofocus name="q"
style="color:#AAA; border-radius:50px; width:calc(100% - 75px)"
/>
<button class="btn btn-primary btn-block btn-lg text-center d-flex justify-content-center align-items-center"
type="submit" style="margin-left: 15px;width: 48px;height: 48px;border-radius:50%">
<i class="fa fa-search"></i>
</button>
</div>
</form>
</div>
</div>
<div class="container" id="activity-container">
<div id="activity-card-column" class="card-columns" style="margin: 10px;">
</div>
</div>
<!-- Cookie consent -->
<div class="modal fade shadow-lg " id="cookieModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<div class="notice d-flex justify-content-between align-items-center">
<row>
<col>
<div class="cookie-text-small">Oh sweet! Sugar Appstore loves cookies.</div>
<div class="cookie-text">This website uses cookies to personalize content and analyse traffic in order to offer you a better experience.</div>
</col>
<col>
<div class="buttons d-flex flex-column flex-lg-row">
<a href="#a" id="cookie-consent-accept-btn"
class="btn cookie-consent-button btn-success btn-sm"
data-dismiss="modal">I accept</a>
<a href="https://github.com/sugarlabs-appstore/sugarappstore-static/wiki/Cookies"
class="btn cookie-consent-button btn-secondary btn-sm"
data-dismiss="modal">Learn More</a>
</div>
</col>
</row>
</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<!-- Font Awesome icon pack -->
<script src="https://kit.fontawesome.com/52ec62d041.js" crossorigin="anonymous" async></script>
<script src="https://cdn.jsdelivr.net/npm/minisearch@2.2.2/dist/umd/index.min.js"></script>
<script src="js/index.js"></script>
<script src="js/search.js"></script>
<script>
// show all activities on document load
$(document).ready(function(){
$('#funCheckBox').change(function() {
if (this.checked) {
enableFunGradientBackground();
} else {
disableFunGradientBackground();
};
});
window.fadeIn = function(obj) {
$(obj).removeClass('saas-card-image-hidden').hide();
$(obj).fadeIn(500);
};
const queryString = window.location.search;
console.log(queryString);
const urlParams = new URLSearchParams(queryString);
const query = urlParams.get('q')
console.log(query);
if (query) {
$('#saas-search-box').val(query)
}
// load all activities on intialize
loadAllActivities();
// add an event function to loadAllActivities
// on change of input
$('#saas-search-box').on('input',function(e){
if ($.trim( $('#saas-search-box').val() ) != ''){
return
}
clearActivityCards();
loadAllActivities();
});
$('#saas-search-container').on('submit', function(e) { //use on if jQuery 1.7+
e.preventDefault(); //prevent form from submitting
// on every new input clear the current stack
// add a new set of found out cards which otherwise might create
// repeated values
clearActivityCards();
loadAllActivities();
var params = {'q':`${ $('#saas-search-box').val() }`}
window.history.replaceState(null, null, `?${$.param(params)}`);
});
restoreConfigurationOnLoad();
// make the fun gradient background optional
// This is not enabled by default because of high CPU usage
// on Chromium Engine. Firefox Gecko engine does not show notable
// CPU usage
$(".preloader").fadeOut(700,"swing")
});
</script>
</body>
<!--
==========================
Footer
============================
-->
<footer id="footer">
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-lg-10 col-md-6 footer-info">
<h3>SUGARLABS</h3>
<p>At Sugar Labs, we make a collection of tools that learners use
to explore, discover, create, and reflect. We are non-profit
and led by volunteers. We distribute these tools freely and encourage
our users to appropriate them, taking ownership and responsibility
for their learning. Sugar Labs, a volunteer-driven, non-profit organization,
had its origins in the One Laptop per Child project and is now a member project of
the Software Freedom Conservancy. The mission of Sugar Labs is to support the Sugar
community of users and developers and establish regional, autonomous “Sugar Labs”
around the world to help learners “learn how to learn” by tailoring Sugar to local
languages and curricula.
</p>
</div>
<div class="col-lg-2 col-md-6 footer-links">
<h4>Useful Links</h4>
<ul>
<li><a href="https://sugarlabs.org/" target="_blank">Sugarlabs Website</a></li>
<li><a href="https://wiki.sugarlabs.org/" target="_blank">Sugarlabs Wiki</a></li>
<li><a href="https://activities.sugarlabs.org/" target="_blank">Legacy Sugarlabs Activity (aslo)</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="copyright">
🄯 2020 Copyleft
<a href="https://github.com/srevinsaju">
<strong>Srevin Saju</strong>
</a> and <a href="https://radii.dev">
<strong>Manish</strong></a> for non-profit education organization <a href="https://sugarlabs.org">Sugarlabs</a>.
</div>
<div class="credits">
Open Source code on <a href="https://github.com/sugarlabs-appstore">Sugarlabs Appstore
<i class="fa fa-github"></i> Repository</a> and Continuous Integration at <a href="https://github.com/srevinsaju/sugar-activity-build" target="_blank">Sugar Activity Build <i class="fa fa-github"></i> Repository </a>
</div>
</div>
</footer>
</html>