summaryrefslogtreecommitdiff
path: root/js/smooth_scroll.js
diff options
context:
space:
mode:
authorPrashant S2016-08-18 16:54:35 +0530
committerGitHub2016-08-18 16:54:35 +0530
commit5a74f66b6860301999f700c2c1b20edab6934cd0 (patch)
treefc72d92818c7e76cef8724281d742ebe07fd9592 /js/smooth_scroll.js
parent7f43918cb4be99642c144f88b0c0e1db92f3bae7 (diff)
parent487fd19178399df55bfef1efb71b0f79bc14901b (diff)
downloadjob_portal-5a74f66b6860301999f700c2c1b20edab6934cd0.tar.gz
job_portal-5a74f66b6860301999f700c2c1b20edab6934cd0.tar.bz2
job_portal-5a74f66b6860301999f700c2c1b20edab6934cd0.zip
Merge pull request #1 from prashantsinalkar/master
Added text for page
Diffstat (limited to 'js/smooth_scroll.js')
-rwxr-xr-xjs/smooth_scroll.js47
1 files changed, 23 insertions, 24 deletions
diff --git a/js/smooth_scroll.js b/js/smooth_scroll.js
index d16dc1a..10e9145 100755
--- a/js/smooth_scroll.js
+++ b/js/smooth_scroll.js
@@ -1,26 +1,25 @@
(function($) {
- $(document).ready(function() {
- $('a[href*=#]:not([href=#])').click(function() {
- if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
- || location.hostname == this.hostname) {
-
- var target = $(this.hash);
- target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
- if (target.length) {
- $('html,body').animate({
- scrollTop: target.offset().top
- }, 1000);
- return false;
- }
- }
- });
- $(".quick").click(function() {
- $(".quick").removeClass("badge-success");
- $(this).addClass("badge-success");
- setTimeout(function() {
- $(".quick").removeClass("badge-success");
- }, 4000);
- });
- $('.quick').tooltip();
- });
+ $(document).ready(function() {
+ $('a[href*=#]:not([href=#])').click(function() {
+ if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
+ || location.hostname == this.hostname) {
+ var target = $(this.hash);
+ target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
+ if (target.length) {
+ $('html,body').animate({
+ scrollTop: target.offset().top
+ }, 1000);
+ return false;
+ }
+ }
+ });
+ $(".quick").click(function() {
+ $(".quick").removeClass("badge-success");
+ $(this).addClass("badge-success");
+ setTimeout(function() {
+ $(".quick").removeClass("badge-success");
+ }, 4000);
+ });
+ //$('.quick').tooltip();
+ });
})(jQuery);