danix
's git repository
home
/
my projects
/
theme-danix.xyz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added bg image to header. Fixed backtotop link and icons in home and footer.
[theme-danix.xyz.git]
/
static
/
js
/
main.js
diff --git
a/static/js/main.js
b/static/js/main.js
index
1a13dd3
..
0e03888
100644
(file)
--- a/
static/js/main.js
+++ b/
static/js/main.js
@@
-10,6
+10,7
@@
$body = $('body'),
\r
$wrapper = $('#wrapper'),
\r
$header = $('#header'),
\r
$body = $('body'),
\r
$wrapper = $('#wrapper'),
\r
$header = $('#header'),
\r
+ $btt = $('#backtotop'),
\r
$banner = $('#banner');
\r
\r
// Breakpoints.
\r
$banner = $('#banner');
\r
\r
// Breakpoints.
\r
@@
-332,4
+333,13
@@
\r
});
\r
\r
\r
});
\r
\r
+ // backtotop
\r
+ $(window).scroll( function(){
\r
+ if( $(window).scrollTop() > 150 ){
\r
+ $btt.removeClass("hidden");
\r
+ } else {
\r
+ $btt.addClass("hidden");
\r
+ }
\r
+ });
\r
+
\r
})(jQuery);
\ No newline at end of file
})(jQuery);
\ No newline at end of file