|
Lines 244-250
$(document).ready(function() {
Link Here
|
| 244 |
resetSearchContext(); |
244 |
resetSearchContext(); |
| 245 |
}); |
245 |
}); |
| 246 |
// add back to top button on each staff page |
246 |
// add back to top button on each staff page |
| 247 |
$("body").append('<button id="backtotop" class="btn btn-default"><i class="fa fa-arrow-up" aria-hidden="true"></i></button>'); |
247 |
$("body").append('<button id="backtotop" class="btn btn-default" aria-label="' + __("Back to top") + '"><i class="fa fa-arrow-up" aria-hidden="true"></i></button>'); |
| 248 |
$("#backtotop").hide(); |
248 |
$("#backtotop").hide(); |
| 249 |
$(window).scroll(function(){ |
249 |
$(window).scroll(function(){ |
| 250 |
if ( $(window).scrollTop() < 300 ) { |
250 |
if ( $(window).scrollTop() < 300 ) { |
| 251 |
- |
|
|