Remove ransomware and protect your Windows, Android, Mac, or iOS device with Avast One — the award-winning, 100% free anti-ransomware tool. Stop dangerous ransomware and other threats before they can harm your files.
' }); $('[data-toggle="tooltip"]').on('click', function () { function tooltipClickHandler() { $(this).tooltip('show'); var tooltipElement = $(this).data('bs.tooltip').getTipElement(); var tooltipOffset = $(tooltipElement).offset(); var tooltipWidth = $(tooltipElement).outerWidth(); var windowWidth = $(window).width(); var distanceToRightEdge = windowWidth - (tooltipOffset.left + tooltipWidth); if (distanceToRightEdge < 100) { $(tooltipElement).addClass('right'); } else { $(tooltipElement).removeClass('right'); } } tooltipClickHandler.call(this); }); }); // document.addEventListener('DOMContentLoaded', function () { // var slider = tns({ // container: '.js-tiny-slider-awards', // slideBy: 1, // autoplay: false, // controls: true, // Show prev/next buttons // nav: false, // Show navigation dots // touch: true, // mouseDrag: true, // items: 2, // edgePadding: 7, // loop: false, // controlsContainer: '.tns-controls-awards', // controlsText: [ // document.querySelector('.prev').innerHTML, // document.querySelector('.next').innerHTML // ], // responsive: { // 320: { // items: 2, // }, // 576: { // items: 3, // }, // 996: { // disable: true, // } // } // }); // // function updatePrevNextControls(info) { // var prevButton = document.querySelector('.tns-controls-awards .prev'); // var nextButton = document.querySelector('.tns-controls-awards .next'); // var itemCount = slider.getInfo().slideCount; // var itemsOnScreen = slider.getInfo().items; // // prevButton.classList.toggle('disabled', info.index === 0); // nextButton.classList.toggle('disabled', info.index >= itemCount - itemsOnScreen); // } // // slider.events.on('indexChanged', updatePrevNextControls); // updatePrevNextControls(slider.getInfo()); // });