Lines 243-249
$(document).ready(function() {
Link Here
|
243 |
$("#bookbag_form a[href*='detail.pl?']").click(function(){ |
243 |
$("#bookbag_form a[href*='detail.pl?']").click(function(){ |
244 |
resetSearchContext(); |
244 |
resetSearchContext(); |
245 |
}); |
245 |
}); |
246 |
|
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>'); |
248 |
$("#backtotop").hide(); |
249 |
$(window).scroll(function(){ |
250 |
if ( $(window).scrollTop() < 300 ) { |
251 |
$("#backtotop").fadeOut(); |
252 |
} else { |
253 |
$("#backtotop").fadeIn(); |
254 |
} |
255 |
}); |
256 |
$("#backtotop").click(function(e) { |
257 |
e.preventDefault(); |
258 |
$("html,body").animate({scrollTop: 0}, "slow"); |
259 |
}); |
247 |
}); |
260 |
}); |
248 |
|
261 |
|
249 |
function removeLastBorrower(){ |
262 |
function removeLastBorrower(){ |
250 |
- |
|
|