This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from himanshu007-creator/master
Update
- Loading branch information
Showing
10 changed files
with
2,063 additions
and
3 deletions.
There are no files selected for viewing
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
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.
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
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,156 @@ | ||
$(document).ready(function () { | ||
|
||
$('#menu-bar').click(function () { | ||
$(this).toggleClass('fa-times'); | ||
$('.navbar').toggleClass('nav-toggle'); | ||
}); | ||
|
||
$(window).on('load scroll', function () { | ||
|
||
$('#menu-bar').removeClass('fa-times'); | ||
$('.navbar').removeClass('nav-toggle'); | ||
|
||
$('section').each(function () { | ||
|
||
let top = $(window).scrollTop(); | ||
let height = $(this).height(); | ||
let id = $(this).attr('id'); | ||
let offset = $(this).offset().top - 200; | ||
|
||
if (top > offset && top < offset + height) { | ||
$('.navbar ul li a').removeClass('active'); | ||
$('.navbar').find(`[href="#${id}"]`).addClass('active'); | ||
} | ||
|
||
}); | ||
|
||
}); | ||
|
||
$('.list .btn').click(function () { | ||
$(this).addClass('active').siblings().removeClass('active'); | ||
let src = $(this).attr('data-src'); | ||
$('.projects .row .image img').attr('src', src); | ||
}); | ||
|
||
}); | ||
var isLight = true; | ||
function darkMode() { | ||
|
||
if (isLight) { | ||
document | ||
.getElementById("DarkModeTogglerId") | ||
.setAttribute("class", "dark-mode"); | ||
isLight = false; | ||
} else { | ||
document | ||
.getElementById("DarkModeTogglerId") | ||
.setAttribute("class", ""); | ||
isLight = true; | ||
} | ||
} | ||
|
||
|
||
$(document).on('click', '.member-1', function () { | ||
$('.detail-box-1').toggleClass('show-details-1') | ||
$('.detail-box-2').removeClass('show-details-2') | ||
$('.detail-box-3').removeClass('show-details-3') | ||
$('.detail-box-4').removeClass('show-details-4') | ||
$('.detail-box-5').removeClass('show-details-5') | ||
$('.detail-box-6').removeClass('show-details-6') | ||
}); | ||
/*-2-----------------------------------*/ | ||
$(document).on('click', '.member-2', function () { | ||
$('.detail-box-2').toggleClass('show-details-2') | ||
$('.detail-box-1').removeClass('show-details-1') | ||
$('.detail-box-3').removeClass('show-details-3') | ||
$('.detail-box-4').removeClass('show-details-4') | ||
$('.detail-box-5').removeClass('show-details-5') | ||
$('.detail-box-6').removeClass('show-details-6') | ||
}); | ||
/*-3-----------------------------------*/ | ||
$(document).on('click', '.member-3', function () { | ||
$('.detail-box-3').toggleClass('show-details-3') | ||
$('.detail-box-2').removeClass('show-details-2') | ||
$('.detail-box-1').removeClass('show-details-1') | ||
$('.detail-box-4').removeClass('show-details-4') | ||
$('.detail-box-5').removeClass('show-details-5') | ||
$('.detail-box-6').removeClass('show-details-6') | ||
}); | ||
/*-4-----------------------------------*/ | ||
$(document).on('click', '.member-4', function () { | ||
$('.detail-box-4').toggleClass('show-details-4') | ||
$('.detail-box-2').removeClass('show-details-2') | ||
$('.detail-box-3').removeClass('show-details-3') | ||
$('.detail-box-1').removeClass('show-details-1') | ||
$('.detail-box-5').removeClass('show-details-5') | ||
$('.detail-box-6').removeClass('show-details-6') | ||
}); | ||
/*-5-----------------------------------*/ | ||
$(document).on('click', '.member-5', function () { | ||
$('.detail-box-5').toggleClass('show-details-5') | ||
$('.detail-box-2').removeClass('show-details-2') | ||
$('.detail-box-3').removeClass('show-details-3') | ||
$('.detail-box-4').removeClass('show-details-4') | ||
$('.detail-box-1').removeClass('show-details-1') | ||
$('.detail-box-6').removeClass('show-details-6') | ||
}); | ||
/*-6-----------------------------------*/ | ||
$(document).on('click', '.member-6', function () { | ||
$('.detail-box-6').toggleClass('show-details-6') | ||
$('.detail-box-2').removeClass('show-details-2') | ||
$('.detail-box-3').removeClass('show-details-3') | ||
$('.detail-box-4').removeClass('show-details-4') | ||
$('.detail-box-5').removeClass('show-details-5') | ||
$('.detail-box-1').removeClass('show-details-1') | ||
}); | ||
|
||
/*-cancel------------------*/ | ||
$(document).on('click', '.cancel', function () { | ||
$('.detail-box-1').removeClass('show-details-1') | ||
$('.detail-box-2').removeClass('show-details-2') | ||
$('.detail-box-3').removeClass('show-details-3') | ||
$('.detail-box-4').removeClass('show-details-4') | ||
$('.detail-box-5').removeClass('show-details-5') | ||
$('.detail-box-6').removeClass('show-details-6') | ||
}); | ||
|
||
|
||
var slideIndex = 1; | ||
showSlides(slideIndex); | ||
|
||
function plusSlides(n) { | ||
showSlides(slideIndex += n); | ||
} | ||
|
||
function currentSlide(n) { | ||
showSlides(slideIndex = n); | ||
} | ||
|
||
function showSlides(n) { | ||
var i; | ||
var slides = document.getElementsByClassName("mySlides"); | ||
var dots = document.getElementsByClassName("dot"); | ||
if (n > slides.length) { slideIndex = 1 } | ||
if (n < 1) { slideIndex = slides.length } | ||
for (i = 0; i < slides.length; i++) { | ||
slides[i].style.display = "none"; | ||
} | ||
for (i = 0; i < dots.length; i++) { | ||
dots[i].className = dots[i].className.replace(" active", ""); | ||
} | ||
slides[slideIndex - 1].style.display = "block"; | ||
dots[slideIndex - 1].className += " active"; | ||
} | ||
|
||
|
||
$(document).ready(function () { | ||
//Preloader | ||
preloaderFadeOutTime = 600; | ||
function hidePreloader() { | ||
var preloader = $('.spinner-wrapper'); | ||
preloader.fadeOut(preloaderFadeOutTime); | ||
} | ||
hidePreloader(); | ||
}); | ||
|
||
|
Empty file.
Oops, something went wrong.