Skip to Content

JavaScript File

URL: https://www.amstokens.io/presale/js/scripts.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Mon, 01 Jan 1601 00:00:00 GMT
Download Time: Less than a second
Cookies: None
Size: 17 KB
HTTP Headers:  13 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1/*===================================

2Author : Bestwebcreator.

3Template Name: Cryptocash – ICO, Cryptocurrency Website & ICO Landing Page HTML + Dashboard Template

4Version : 1.8

5===================================*/

6

7(function($) {

8 'use strict';

9

10 /*===================================*

11 01. LOADING JS

12 /*===================================*/

13 $(window).on('load', function() {

14 var preLoder = $(".loader-wrapper");

15 preLoder.delay(700).fadeOut(500);

16 $('body').addClass('loaded');

17 });

18

19 /*===================================*

20 02. SMOOTH SCROLLING JS

21 *===================================*/

22 // Select all links with hashes

23 $('a.page-scroll').on('click', function(event) {

24 // On-page links

25 if ( location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname ) {

26 // Figure out element to scroll to

27 var target = $(this.hash),

28 speed= $(this).data("speed") || 800;

29 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');

30

31 // Does a scroll target exist?

32 if (target.length) {

33 // Only prevent default if animation is actually gonna happen

34 event.preventDefault();

35 $('html, body').animate({

36 scrollTop: target.offset().top - 60

37 }, speed);

38 }

39 }

40 });

...

</html>