2026-03-01 20:04:35 -05:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2026-03-02 14:09:59 -05:00
|
|
|
<button type="button" class="btn btn-info p-2 rounded-circle" aria-label="Back to Top" id="btn-back-to-top" onclick="dataLayer.push({'event': 'backToTop'});">
|
2026-03-01 20:04:35 -05:00
|
|
|
<span class="top-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M232 64C201.1 64 176 89.1 176 120L176 320.6C172.8 322.6 169.6 324.8 166.5 327.1L144 344C123.9 359.1 112 382.8 112 408L112 427.5C112 480.5 141.1 529.2 187.7 554.3L196 558.8C217 570.1 240.4 576 264.3 576L400 576C461.9 576 512 525.9 512 464L512 368C512 332.7 483.3 304 448 304C445.2 304 442.4 304.2 439.7 304.5C428.7 285.1 407.9 272 384 272C378.7 272 373.5 272.7 368.5 273.9C357.7 253.7 336.5 240 312 240C303.5 240 295.4 241.7 288 244.7L288 120C288 89.1 262.9 64 232 64zM208 120C208 106.7 218.7 96 232 96C245.3 96 256 106.7 256 120L256 277.5C256 284.6 260.6 290.8 267.4 292.8C274.2 294.8 281.4 292.2 285.4 286.3C291.2 277.6 301 272 312.1 272C327.7 272 340.7 283.2 343.5 297.9C344.5 303 347.9 307.4 352.7 309.5C357.5 311.6 363 311.3 367.5 308.6C372.3 305.7 378 304 384.1 304C398.8 304 411.3 314 415 327.6C416.2 332 419.2 335.7 423.3 337.7C427.4 339.7 432.1 339.9 436.4 338.3C440 336.9 444 336.1 448.2 336.1C465.9 336.1 480.2 350.4 480.2 368.1L480.2 464.1C480.2 508.3 444.4 544.1 400.2 544.1L264.5 544.1C246 544.1 227.7 539.5 211.4 530.7L211.4 530.7L203.1 526.2C166.6 506.6 144 468.7 144 427.5L144 408C144 392.9 151.1 378.7 163.2 369.6L176 360L176 408C176 416.8 183.2 424 192 424C200.8 424 208 416.8 208 408L208 120z"/></svg></span>
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
//Get the button
|
|
|
|
|
let mybutton = document.getElementById("btn-back-to-top");
|
|
|
|
|
|
|
|
|
|
// When the user scrolls down 20px from the top of the document, show the button
|
|
|
|
|
window.onscroll = function () {
|
|
|
|
|
scrollFunction();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function scrollFunction() {
|
|
|
|
|
if (
|
|
|
|
|
document.body.scrollTop > 20 ||
|
|
|
|
|
document.documentElement.scrollTop > 20
|
|
|
|
|
) {
|
|
|
|
|
mybutton.style.display = "block";
|
|
|
|
|
} else {
|
|
|
|
|
mybutton.style.display = "none";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// When the user clicks on the button, scroll to the top of the document
|
|
|
|
|
mybutton.addEventListener("click", backToTop);
|
|
|
|
|
|
|
|
|
|
function backToTop() {
|
|
|
|
|
document.body.scrollTop = 0;
|
|
|
|
|
document.documentElement.scrollTop = 0;
|
|
|
|
|
}
|
|
|
|
|
</script>
|