chore: synchronize project dependencies and update vendor directory files
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/*!
|
||||
=========================================================
|
||||
* Meyawo Landing page
|
||||
=========================================================
|
||||
|
||||
* Copyright: 2019 DevCRUD (https://devcrud.com)
|
||||
* Licensed: (https://devcrud.com/licenses)
|
||||
* Coded by www.devcrud.com
|
||||
|
||||
=========================================================
|
||||
|
||||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
*/
|
||||
|
||||
// smooth scroll
|
||||
$(document).ready(function(){
|
||||
if($(window).width() > '1200') {
|
||||
document.getElementById('menu_nav').classList.add("show");
|
||||
}
|
||||
$(".navbar .nav-link").on('click', function(event) {
|
||||
|
||||
if (this.hash !== "") {
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
var hash = this.hash;
|
||||
|
||||
$('html, body').animate({
|
||||
scrollTop: $(hash).offset().top
|
||||
}, 700, function(){
|
||||
window.location.hash = hash;
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// navbar toggle
|
||||
$('#nav-toggle').click(function(){
|
||||
$(this).toggleClass('is-active')
|
||||
$('ul.nav').toggleClass('show');
|
||||
});
|
||||
Reference in New Issue
Block a user