Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/index.js')
-rw-r--r--static/js/index.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/static/js/index.js b/static/js/index.js
deleted file mode 100644
index 08ef756..0000000
--- a/static/js/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// Bitty scrolling links script
-$('a[href^="#"]').click(function(e) {
- e.preventDefault();
- $('html, body').animate({
- scrollTop: $(this.hash).offset().top
- }, 500);
- $("#nav-menu").removeClass("is-active");
- return true;
-})
-
-// Modal closer
-$('.card').click(function () {
- $($(this).attr('data-target')).addClass('is-active');
- $("html").addClass("modal-open");
-});
-$('.modal-close').click(function () {
- $($(this).attr('data-target')).removeClass('is-active');
- $("html").removeClass("modal-open");
-});
-$(document).keypress(function(e) {
- if(e.which == 0) {
- $('.modal.is-active').removeClass('is-active');
- }
-});