|
Lines 297-302
$(document).ready(function() {
Link Here
|
| 297 |
var op = $(this).data("op"); |
297 |
var op = $(this).data("op"); |
| 298 |
resultsBatchProcess( op ); |
298 |
resultsBatchProcess( op ); |
| 299 |
}); |
299 |
}); |
|
|
300 |
|
| 301 |
$("body").append('<button id="backtotop" class="btn btn-primary"><i class="fa fa-arrow-up" aria-hidden="true"></i></button>'); |
| 302 |
$("#backtotop").hide(); |
| 303 |
$(window).scroll(function(){ |
| 304 |
if ( $(window).scrollTop() < 300 ) { |
| 305 |
$("#backtotop").fadeOut(); |
| 306 |
} else { |
| 307 |
$("#backtotop").fadeIn(); |
| 308 |
} |
| 309 |
}); |
| 310 |
$("#backtotop").click(function(e) { |
| 311 |
e.preventDefault(); |
| 312 |
$("html,body").animate({scrollTop: 0}, "slow"); |
| 313 |
}); |
| 300 |
}); |
314 |
}); |
| 301 |
|
315 |
|
| 302 |
|
316 |
|
| 303 |
- |
|
|