-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathterms.html
More file actions
630 lines (513 loc) · 33.7 KB
/
terms.html
File metadata and controls
630 lines (513 loc) · 33.7 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
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/uikit.min.css" />
<title>1ramp</title>
<link rel="shortcut icon" href="favicon.png">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Saira+Semi+Condensed:700" rel="stylesheet">
<link rel="author" href="https://ansarimofid@gmail.com">
<meta name="description" content="Social Media that pays you. Steem-Blockchain powered social media platform for creative communities to create, share and earn.">
<meta name="keywords" content="1ramp, HapRamp, Steem, Blockchain, Cryptocurrency, Social-Media, Creative-communities, Earn, Decentralize, Social-Network">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/brands.css" integrity="sha384-VGCZwiSnlHXYDojsRqeMn3IVvdzTx5JEuHgqZ3bYLCLUBV8rvihHApoA1Aso2TZA"
crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/fontawesome.css" integrity="sha384-GVa9GOgVQgOk+TNYXu7S/InPTfSDTtBalSgkgqQ7sCik56N9ztlkoTr2f/T44oKV"
crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-124845462-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-124845462-2');
</script>
<!-- Hotjar Tracking Code for www.1ramp.com -->
<script>
(function (h, o, t, j, a, r) {
h.hj = h.hj || function () {
(h.hj.q = h.hj.q || []).push(arguments)
};
h._hjSettings = { hjid: 911264, hjsv: 6 };
a = o.getElementsByTagName('head')[0];
r = o.createElement('script');
r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
</script>
</head>
<body>
<div class="wrapper">
<!--Header Starts-->
<header id="hero-about" class="partner" data-vide-bg="video/hero_video" data-vide-options="loop: true, muted: false,autoplay: true">
<nav is uk-sticky="show-on-up: true;animation: uk-animation-slide-top;" class="uk-navbar uk-navbar-container uk-navbar-transparent uk-padding-large uk-padding-remove-vertical">
<div class="uk-navbar-left">
<a href="index.html" class="uk-navbar-item uk-logo">
<svg width="153" height="22" xmlns="http://www.w3.org/2000/svg">
<g fill-rule="evenodd">
<text font-family="OpenSans-Bold, Open Sans" font-size="24" font-weight="bold"
letter-spacing="1.333" transform="translate(0 -6)">
<tspan x="26" y="26">1RAMP</tspan>
</text>
<path d="M14.24 7.956a2.32 2.32 0 0 1 4.322 1.174v10.55a2.32 2.32 0 0 1-4.64 0v-6.224c-1.449.656-3.06 1.176-4.64 1.21-1.613-.005-3.214-.5-4.641-1.14v6.154a2.32 2.32 0 0 1-4.641 0V9.13a2.32 2.32 0 0 1 4.386-1.058c1.544.923 3.216 1.995 4.895 1.995 1.743 0 3.398-1.174 4.959-2.11zM2.32 4.714C1.04 4.714 0 3.66 0 2.357 0 1.055 1.039 0 2.32 0c1.282 0 2.32 1.055 2.32 2.357 0 1.302-1.038 2.357-2.32 2.357zm13.922 0c-1.281 0-2.32-1.055-2.32-2.357C13.922 1.055 14.96 0 16.242 0c1.282 0 2.32 1.055 2.32 2.357 0 1.302-1.038 2.357-2.32 2.357z" />
</g>
</svg>
</a>
</div>
<div class="uk-navbar-right uk-nav-center-sm">
<ul class="uk-navbar-nav menu-list uk-margin-small-right uk-visible@m">
<li>
<a href='index.html'>HOME</a>
</li>
<li>
<a href='about.html'>ABOUT</a>
</li>
<li>
<a href='faq.html'>FAQs</a>
</li>
</ul>
<div class="nav-cta">
<a href="https://github.com/hapramp" class="social-icon uk-icon-button uk-margin-small-right"
target="_blank">
<i class="fab fa-github"></i>
</a>
<a href="https://discord.gg/PkgCv8j" class="social-icon uk-icon-button " target="_blank">
<i class="fab fa-discord"></i>
</a>
</div>
</div>
</nav>
<!--Hero Starts-->
<div id="hero-partner" class="hero partner uk-flex uk-container">
<!--<div class="hero-contents uk-width-1-4@m uk-width-1-6@m"></div>-->
<div class="uk-grid">
<div class="hero-contents uk-text-center">
<div class="grand-title text-color-white title-text">
Terms of Service
</div>
</div>
</div>
</div>
</header>
<!--Intro Starts-->
<div id="intro" class="intro uk-container uk-margin-large-top">
<div class="uk-padding-small"></div>
<div class="uk-grid">
<div class="uk-width-1-6@m"></div>
<div class="uk-width-2-3@m color-black-a54">
<div class="uk-margin-medium-bottom">
<p class="uk-text-capitalize uk-text-bold">Last Updated: 15th August 2018</p>
<p>
This agreement (the “Agreement”) between you and <strong>Hapramp Studio Pvt Ltd.</strong>
sets
out your rights to access and use of 1Ramp.io, 1Ramp.com, 1Ramp Android App, 1Ramp iOS App
and
any other products or services provided by us (the “Service”). If you are accepting this
Agreement and using the Services on behalf of a company, organization, government, or other
legal entity, you represent and warrant that you are authorized to do so and have the
authority
to bind such entity to this Agreement. By accessing our Service, you agree that you have
read,
understood and accepted this Agreement.
If we decide to make changes to this Agreement, we will provide notice of those changes by
updating the “Last Updated” date above or posting notice on 1Ramp.io. Your continued use of
the
Service will confirm your acceptance of the changes.
</p>
<p class="uk-margin-small-bottom">
If we decide to make changes to this Agreement, we will provide notice of those changes by
updating the “Last Updated” date above or posting notice on 1Ramp.io. Your continued use of
the
Service will confirm your acceptance of the changes.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">1. Grant of Permission</p>
<p>
By Using 1Ramp.io, 1Ramp.com, 1Ramp Android App, 1Ramp iOS App or any other service offered
by
us you agree to grant permission to the respective platform to post on your behalf on the
Steem
Blockchain. Along with posting permission you also grant the respective platform permission
to
upvote and perform other functions on your behalf. These functions will be explicitly
stated to
you at the time of login.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">2. Eligibility</p>
<p>
The Service is not targeted toward, nor intended for use by, anyone under the age of 13.
You
must be at least 13 years of age to access or use of the Service. If you are between 13 and
18
years of age (or the age of legal majority where you reside), you may only access or use
the
Service under the supervision of a parent or legal guardian who agrees to be bound by this
Agreement.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">3. Copyright and Limited License</p>
<p>
We may retain data, text, photographs, images, video, audio, graphics, articles, comments,
and
other content created on 1Ramp.io, 1Ramp.com, 1Ramp Android App, 1Ramp iOS App and other
services offered by us, which we call “1Ramp Content.” Except as explicitly stated in this
Agreement, we do not grant any express or implied rights to use 1Ramp Content.
<p>
</p>
You are granted a limited, non-exclusive, non-transferable, and non-sublicensable license
to access
and use the Service and 1Ramp Content for your personal use. You retain ownership of and
responsibility for Content you create or own ("Your Content"). If you're posting anything
you did
not create yourself or do not own the rights to, you agree that you are responsible for any
Content
you post; that you will only submit Content that you have the right to post; and that you
will fully
comply with any third-party licenses relating to Content you post.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">4. Assumption of Risk, Limitations on Liability.</p>
<p>
4.1. You accept and acknowledge that there are risks associated with utilizing an
Internet-based Steem blockchain account service including, but not limited to, the risk of
failure of hardware, software and Internet connections, the risk of malicious software
introduction, and the risk that third-parties may obtain unauthorized access to information
stored within or associated with your Account, including, but not limited to your private
key(s) (“Private Key”). You accept and acknowledge that we will not be responsible for any
communication failures, disruptions, errors, distortions, or delays you may experience when
using the Services, however caused.
<p>
</p>
4.2. We make no representation or warranty of any kind, express or implied, statutory, or
otherwise, regarding the contents of the Service, information and functions made accessible
through the Service, any hyperlinks to third-party websites, nor for any breach of security
associated with the transmission of information through the Service or any website linked
to by the Service.
</p>
</p>
4.3. We will not be responsible or liable to you for any loss and take no responsibility for
and will not be liable to you for any use of our Services, including but not limited to any
losses, damages or claims arising from: (a) User error such as forgotten passwords, incorrectly
constructed transactions, or mistyped Steem blockchain addresses; (b) Server failure or data
loss; (c) Corrupted Account files; (d) Unauthorized access to applications; (e) Any
unauthorized third-party activities, including without limitation the use of viruses, phishing,
brute forcing or other means of attack against the Service or Services.
</p>
</p>
4.4. We make no warranty that the Service or the server that makes it available, are free of
viruses or errors, that its content is accurate, that it will be uninterrupted, or that defects
will be corrected. We will not be responsible or liable to you for any loss of any kind, from
action taken, or taken in reliance on material, or information, contained on the Service.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">5. Account Registration</p>
<p>
5.1. You may use a Steem blockchain account provided by Steemit.com (Steemit, Inc.) or any
other 3rd Party Services. If you would like to use part of the Service, you must create a
Steem blockchain account (“Account”). When you create an Account, you are strongly advised
to take the following precautions, as failure to do so may result in loss of access to,
and/or control over, your Account: (a) Provide accurate and truthful information; (b)
maintain the security of your Account by protecting your Account password and access to
your computer and your Account.
</p>
<p>
5.2. You hereby accept and acknowledge that you take responsibility for all activities that
occur under your Account and accept all risks of any authorized or unauthorized access to
your Account, to the maximum extent permitted by law.Any content including, but not limited
to Nudity, Adult Content, Hate Speech and Child Pornography is not permitted on the
platform.
</p>
<p>
5.3. You acknowledge and understand that cryptography is a progressing field. Advances in
code cracking or technical advances such as the development of quantum computers may
present risks to the Services that you use and your Account, which could result in the
theft or loss of your property. By using the Service or accessing 1Ramp.io Content, you
acknowledge these inherent risks.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">6. The Services</p>
<p>
<strong>6.1. Transactions.</strong> All proposed Steem blockchain transactions must be
confirmed and recorded in the Steem blockchain via the Steem distributed consensus network
(a peer-to-peer network), which is not owned, controlled, or operated by us. The Steem
blockchain is operated by a decentralized network of independent third parties. We have no
control over the Steem blockchain and therefore cannot and will not ensure that any
transaction details you submit via the Services will be confirmed on the Steem blockchain.
You acknowledge and agree that the transaction details you submit via the Services may not
be completed, or may be substantially delayed, by the Steem blockchain. You may use the
Services to submit these details to the Steem blockchain.
</p>
<p>
<strong> 6.2. No Password Retrieval.</strong>
We do not receive or store your Account password or Private Keys. Your Private Key is your
own and you are solely responsible for their safekeeping. We cannot assist you with Account
password retrieval, reset, or recovery. You are solely responsible for remembering your
Account password. If you have not safely stored a backup of any Account and password pairs
maintained in your Account, you accept and acknowledge that any STEEM, Steem Dollars and
Steem Power you have associated with such Account will become permanently inaccessible if
you do not have your Account password.
</p>
<p>
<strong>6.3. No Storage or Transmission of STEEM, Steem Dollars or Steem Power.</strong>
STEEM, in any of its forms (STEEM, Steem Dollars and Steem Power) is an intangible, digital
asset controlled by you. These assets exist only by virtue of the ownership record
maintained on the Steem blockchain. The Service does not store, send, or receive STEEM,
Steem Dollars, or Steem Power. Any transfer of title that might occur in any STEEM, Steem
Dollars or Steem Power occurs on the Steem blockchain and not within the Services. We do
not guarantee that the Service can affect the transfer of title or right in any STEEM,
Steem Dollars or Steem Power.
</p>
<p>
<strong>6.4. Relationship.</strong>
Nothing in this Agreement is intended to nor shall create any partnership, joint venture,
agency, consultancy, or trusteeship, between you and Hapramp Studio Pvt Ltd.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">7. User Conduct</p>
<p>
7.1. When accessing or using the Services, you agree that you will not commit any unlawful
act, and that you are solely responsible for your conduct while using our Services. Without
limiting the generality of the foregoing, you agree that you will not:
</p>
<p>
7.1.1. Use of our Services in any manner that could interfere with, disrupt, negatively
affect, or inhibit other users from fully enjoying our Services, or that could damage,
disable, overburden, or impair the functioning of our Services in any manner.
</p>
<p>
7.1.2. Use our Services to pay for, support or otherwise engage in any activity prohibited
by law, including, but not limited to illegal gambling, fraud, money-laundering, or
terrorist financing activities.
</p>
<p>
7.1.3. Use or attempt to use another user’s Account without authorization.
</p>
<p>
7.1.4. Introduce to the Services any virus, Trojan, worms, logic bombs or other harmful
material.
</p>
<p>
7.1.5. Encourage or induce any third-party to engage in any of the activities prohibited
under this Section.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">8. Modifications to the Service</p>
<p>
We reserve the right to modify or discontinue, temporarily or permanently, the Service, or
any features or portions of the Service, without prior notice. You agree that we will not
be liable for any modification, suspension, or discontinuance of the Service.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">9. Termination</p>
<p>
We reserve the right, without notice and in our sole discretion, to terminate your license
to access and use of the Service, which includes,1Ramp.io, 1Ramp.com, 1Ramp Android App,
1Ramp iOS App and to block or prevent your future access to, and use of, the Service that
we provide.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">10. Severability</p>
<p>
If any term, clause, or provision of this Agreement is deemed to be unlawful, void or for
any reason unenforceable, then that term, clause or provision shall be deemed severable
from this Agreement and shall not affect the validity and enforceability of any remaining
provisions.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">11. Changes</p>
<p>
This Agreement is the entire agreement between you and us concerning the Service. It
supersedes all prior or contemporaneous agreements between you and us. We may modify this
user agreement at any time. If we make changes to this agreement that materially affect
your rights, we will provide notice and keep this edition available as an archive on
1Ramp.io. By continuing to use the Services after a change to this agreement, you agree to
those changes.
</p>
</div>
<div class="uk-margin-medium-bottom">
<p class="uk-text-bold">12. Contact Information</p>
<p>
For any kind of communication write us at <a href="mailto:legal@1Ramp.io" target="_blank">legal@1Ramp.io</a>
</p>
<p>Note: Part of the Terms of Use mentioned here have been Inherited from the terms of
Steemit.com (Steemit, Inc). </p>
</div>
</div>
</div>
</div>
<div class="uk-padding-large"></div>
<footer class="footer uk-overflow-hidden uk-margin-top">
<div class="uk-container">
<div class="uk-padding width-100"></div>
<div class="uk-grid">
<div class="uk-width-1-6@l"></div>
<div class="uk-width-1-6@l uk-width-1-4@m uk-width-1-2@s footer-section uk-margin-medium-bottom">
<h4 class="section-title text-color-white title-text">Links</h4>
<div class="uk-padding-small width-100"></div>
<div class="links-container">
<ul class="uk-list footer-link-list">
<li class="uk-margin-small-bottom uk-margin-remove-top uk-margin-medium-right"><a href='index.html'>Home</a></li>
<li class="uk-margin-small-bottom uk-margin-remove-top uk-margin-medium-right"><a href='about.html'>About</a></li>
<li class="uk-margin-small-bottom uk-margin-remove-top uk-margin-medium-right"><a href='faq.html'>FAQs</a></li>
<li>
<a href='weareone.html'>#WeAreOne</a>
</li>
</ul>
</div>
</div>
<div class="uk-width-1-6@l uk-width-1-4@m uk-width-1-2@s footer-section uk-margin-medium-bottom">
<h4 class="section-title text-color-white title-text">Social</h4>
<div class="uk-padding-small width-100"></div>
<div class="links-container">
<ul class="uk-list social-link-list">
<li class="uk-margin-small-bottom uk-margin-remove-top uk-margin-medium-right">
<a href=" https://www.facebook.com/the1ramp/" class="uk-margin-small-bottom" target="_blank">Facebook
</a>
</li>
<li class="uk-margin-small-bottom uk-margin-remove-top uk-margin-medium-right">
<a href="https://twitter.com/the1ramp" class="uk-margin-small-bottom" target="_blank">Twitter
</a>
</li>
<li class="uk-margin-small-bottom uk-margin-remove-top uk-margin-medium-right">
<a href="https://www.instagram.com/the1ramp/" class="uk-margin-small-bottom" target="_blank">Instagram
</a>
</li>
<li class="uk-margin-small-bottom uk-display-inline-block uk-margin-remove-top uk-margin-medium-right">
<a href="https://www.linkedin.com/company/13405668/" class="uk-margin-small-bottom"
target="_blank">LinkedIn
</a>
</li>
</ul>
</div>
</div>
<div class="uk-width-1-6@l uk-width-1-4@m uk-width-1-2@s footer-section uk-margin-medium-bottom">
<h4 class="section-title text-color-white title-text title-text">Blogs</h4>
<div class="uk-padding-small width-100"></div>
<div class="links-container">
<ul class="uk-list social-link-list">
<li class="uk-margin-small-bottom uk-margin-remove-top uk-margin-medium-right">
<a href="https://steemit.com/@the1ramp" class="uk-margin-small-bottom" target="_blank">
Steemit
</a>
</li>
<li class="uk-margin-small-bottom uk-margin-remove-top uk-margin-medium-right">
<a href="https://medium.com/1ramp" class="uk-margin-small-bottom" target="_blank">
Medium
</a>
</li>
</ul>
</div>
</div>
<div class="uk-width-1-6@l uk-width-1-4@m uk-width-1-2@s footer-section uk-margin-medium-bottom">
<h4 class="section-title text-color-white title-text">Contact</h4>
<div class="uk-padding-small width-100"></div>
<div class="links-container">
<ul class="uk-list social-link-list">
<li class="uk-margin-small-bottom uk-display-inline-block uk-margin-remove-top">
<a href="mailto:hi@1ramp.io" class="uk-margin-small-bottom" target="_blank">hi@1ramp.io</a>
</ul>
</div>
</div>
</div>
<div class="uk-grid">
<div class="uk-width-1-6@l"></div>
<div class="uk-width-2-3@l links-container">
<div class="tc-section-divider"></div>
<div class="uk-padding-small"></div>
<span class="text-color-white uk-margin-small-right">Copyright 2018</span>
<span class="text-color-white">| </span>
<a href="terms.html" class="terms">Terms</a>
</div>
</div>
<div class="uk-padding-small width-100"></div>
</div>
</footer>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vide/0.5.1/jquery.vide.js"></script>
<script src="js/uikit.min.js"></script>
<script src="js/uikit-icons.min.js"></script>
<script src="js/main.js"></script>
<script>
// Code Credit: https://codepen.io/rleve/pen/iCbgy
(function () {
'use strict';
// Feature Test
if ('querySelector' in document && 'addEventListener' in window && Array.prototype.forEach) {
// Function to animate the scroll
var smoothScroll = function (anchor, duration) {
// Calculate how far and how fast to scroll
var startLocation = window.pageYOffset;
var endLocation = anchor.offsetTop;
var distance = endLocation - startLocation;
var increments = distance / (duration / 16);
var stopAnimation;
// Scroll the page by an increment, and check if it's time to stop
var animateScroll = function () {
window.scrollBy(0, increments);
stopAnimation();
};
// If scrolling down
if (increments >= 0) {
// Stop animation when you reach the anchor OR the bottom of the page
stopAnimation = function () {
var travelled = window.pageYOffset;
if ((travelled >= (endLocation - increments)) || ((window.innerHeight +
travelled) >= document.body.offsetHeight)) {
clearInterval(runAnimation);
}
};
}
// If scrolling up
else {
// Stop animation when you reach the anchor OR the top of the page
stopAnimation = function () {
var travelled = window.pageYOffset;
if (travelled <= (endLocation || 0)) {
clearInterval(runAnimation);
}
};
}
// Loop the animation function
var runAnimation = setInterval(animateScroll, 16);
};
// Define smooth scroll links
var scrollToggle = document.querySelectorAll('.scroll');
// For each smooth scroll link
[].forEach.call(scrollToggle, function (toggle) {
// When the smooth scroll link is clicked
toggle.addEventListener('click', function (e) {
// Prevent the default link behavior
e.preventDefault();
// Get anchor link and calculate distance from the top
var dataID = toggle.getAttribute('href');
var dataTarget = document.querySelector(dataID);
var dataSpeed = toggle.getAttribute('data-speed');
// If the anchor exists
if (dataTarget) {
// Scroll to the anchor
smoothScroll(dataTarget, dataSpeed || 500);
}
}, false);
});
}
})();
</script>
</body>
</html>