// ¿øÆäÀÌÁö js $(document).ready(function() { // ANIMACAO SKYPESCROLL BOOTSTRAP $("#nav a, #logo h1 a").on('click', function(e) { // prevent default anchor click behavior if(this.innerText != "Q&A"){ e.preventDefault(); } var url = window.location.href; var arr = url.split('/'); var pos = arr[arr.length-1]; if(pos == "bee.php"){ if(this.innerText == "Q&A"){ e.preventDefault(); } if(this.hash =="#home"){ window.location.href = window.location.href.split("bee.php")[0]; return; } } if(this.innerText != "Q&A"){ e.preventDefault(); } // store hash var hash = this.hash; // animate $('html, body').animate({ scrollTop: $(hash).offset().top-70 }, 600, function(){ // when done, add hash to url // (default click behaviour) //window.location.hash = hash; }); }); // ANIMACAO SKYPESCROLL BOOTSTRAP $("#nav a, #logo h1 a").on('click', function(e) { // prevent default anchor click behavior if(this.innerText != "¹èÅ͸® ±Ô°Ý"){ e.preventDefault(); } var url = window.location.href; var arr = url.split('/'); var pos = arr[arr.length-1]; if(pos == "bee1.php"){ if(this.innerText == "¹èÅ͸® ±Ô°Ý"){ e.preventDefault(); } if(this.hash =="#home"){ window.location.href = window.location.href.split("bee1.php")[0]; return; } } if(this.innerText != "¹èÅ͸® ±Ô°Ý"){ e.preventDefault(); } // store hash var hash = this.hash; // animate $('html, body').animate({ scrollTop: $(hash).offset().top-70 }, 600, function(){ // when done, add hash to url // (default click behaviour) //window.location.hash = hash; }); }); });