2022-05-16 19:35:22 +02:00
|
|
|
//on ready
|
|
|
|
$(document).ready(function(){
|
|
|
|
//on button click enable/disable bounce scroll
|
|
|
|
$("#bounce_scroll_button").click(function(){
|
|
|
|
//load the bounce scroll script
|
2022-05-16 19:39:28 +02:00
|
|
|
//https://brn.systems:3000/BRNSystems/js/raw/branch/master/bouncyscroll.min.js
|
|
|
|
//https://brn.systems:3000/BRNSystems/js/raw/branch/master/infiscroll.min.js
|
|
|
|
//add the script as script tag to the body
|
|
|
|
$('body').append('<script src="https://brn.systems:3000/BRNSystems/js/raw/branch/master/bouncyscroll.min.js"></script>');
|
|
|
|
});
|
|
|
|
$("#infiscroll_button").click(function(){
|
|
|
|
//load the infiscroll script
|
|
|
|
//https://brn.systems:3000/BRNSystems/js/raw/branch/master/infiscroll.min.js
|
|
|
|
//add the script as script tag to the body
|
|
|
|
$('body').append('<script src="https://brn.systems:3000/BRNSystems/js/raw/branch/master/infiscroll.min.js"></script>');
|
|
|
|
});
|
|
|
|
});
|