blob: 789139d393c680ff08666ac42be09e2e74c8f230 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
==============================================
* Hugo Lime - v1.0
==============================================
* Demo: https://demo.uicard.io/hugo-lime-pro/
* Free Version: https://uicard.io/products/hugo-lime
* Premium Version: https://uicard.io/products/hugo-lime-pro
==============================================
* Coded By : UICardio https://uicard.io
==============================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
* Copyright 2018 UICardio
*/
$(document).ready(function(){
//Activating tooltip
$('[data-toggle="tooltip"]').tooltip();
//Smooth scroll
$('a').click(function(){
var hash = $(this).attr('href').split('#')[1];
$('html, body').animate({
scrollTop: $('#' + hash).offset().top
}, 500);
return false;
});
});
|