-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maulik Vora
committed
Jun 6, 2018
1 parent
eba482c
commit e5e3509
Showing
12 changed files
with
11,430 additions
and
756 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
jQuery(function($) {'use strict'; | ||
|
||
$('a.navbar-brand').on('click', function(){ | ||
var domain = window.location.origin; | ||
if (domain == 'http://localhost') { | ||
domain = domain + '/flashcoin'; | ||
} | ||
window.location.href = domain; | ||
}); | ||
|
||
$('.nav ul li a').hover(function() { | ||
$('.sub-menu').removeClass('submenuhide'); | ||
}); | ||
$('.parrent_li a').on('click', function(){ | ||
$('.sub-menu').removeClass('submenuhide'); | ||
}); | ||
$('.sub-menu a').on('click', function(){ | ||
$('.sub-menu').addClass('submenuhide'); | ||
}); | ||
$('.nav ul li a').on('click', function() { | ||
var currenturl = document.URL; | ||
var pagename = currenturl.substr(currenturl.lastIndexOf('/') + 1); | ||
var hashtag = $(this).attr('data-hash'); | ||
if (pagename.indexOf('.html') > -1) { | ||
sessionStorage.setItem("pageelement", hashtag); | ||
var domain = window.location.origin; | ||
if (domain == 'http://localhost') { | ||
domain = domain + '/flashcoin/'; | ||
} | ||
window.location.href = domain+'#'+hashtag; | ||
} else { | ||
var headerh = $('header.header').height(); | ||
$('html, body').animate({scrollTop: $('#'+hashtag).offset().top - headerh }, 1000); | ||
} | ||
}); | ||
|
||
$('a.pagelink').on('click', function() { | ||
var hashtag = $(this).attr('data-hash'); | ||
sessionStorage.setItem("pageelement", hashtag); | ||
}); | ||
|
||
// AOS.init({ | ||
// easing: 'ease-out-back', | ||
// duration: 1000 | ||
// }); | ||
|
||
//Initiat WOW JS | ||
// new WOW().init(); | ||
|
||
}); | ||
|
||
$(document).ready(function() { | ||
var pageelement = sessionStorage.getItem("pageelement"); | ||
sessionStorage.removeItem("pageelement"); | ||
if (pageelement != null) { | ||
var headerh = $('header.header').height(); | ||
$('html, body').animate({scrollTop: $('#'+pageelement).offset().top - headerh}, 1000); | ||
} | ||
var currenturl = document.URL; | ||
var pagename = currenturl.substr(currenturl.lastIndexOf('/') + 1); | ||
var hashtag = $(this).attr('data-hash'); | ||
if (pagename.indexOf('.html') > -1) { | ||
$('header.header').addClass('our-team-header'); | ||
} | ||
}); | ||
|
||
$(window).scroll(function() { | ||
var scroll = $(window).scrollTop(); | ||
|
||
if (scroll >= 50) { | ||
$("header").addClass("darkHeader"); | ||
} else { | ||
$("header").removeClass("darkHeader"); | ||
} | ||
}); | ||
|
||
$(document).on("click", ".notext", function(event) { | ||
$("body").toggleClass("header-expanded"); | ||
}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.