Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.addEventListener("DOMContentLoaded", function () {
- const decrypted = document.querySelector("#decrypted");
- decryptData(
- IV, KEY, DATA,
- function (text) {
- decrypted.innerHTML = text;
- var swiperContainers = ["#news-container", "#reviews-container", "#latest-container", "#instores-container"];
- for (var i = 0; i < swiperContainers.length; i++) {
- try {
- if (!document.querySelector(swiperContainers[i])) continue; // missing container, skip
- new Swiper(swiperContainers[i], {
- slidesPerView: 'auto',
- scrollbar: '.swiper-scrollbar',
- scrollbarHide: true,
- spaceBetween: 0
- });
- } catch (error) {
- // swiper failed
- }
- }
- },
- function (error) {
- decrypted.innerHTML += `<div><b style="color: red;">ERROR:</b> ${error.toString()}</div>`;
- }
- );
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement