(function(){var Z="cdn.androidpimp.com",O="https://www.androidpimp.com";function toOrigin(h){var i=h.indexOf("/a:");if(i!==-1){var r=h.slice(i+3);if(!r)return null;return /^https?:\/\//i.test(r)?r:O+(r.charAt(0)==="/"?"":"/")+r;}try{var u=new URL(h);if(!u.pathname||u.pathname==="/")return null;return O+u.pathname+u.search;}catch(e){return null;}}window.addEventListener("error",function(e){var el=e.target;if(!el||el.tagName!=="LINK"||el.rel!=="stylesheet")return;var h=el.href||"";if(h.indexOf(Z)===-1||el.getAttribute("data-wpco"))return;var o=toOrigin(h);if(!o||o===h)return;el.setAttribute("data-wpco","1");var l=document.createElement("link");l.rel="stylesheet";if(el.media)l.media=el.media;l.href=o;el.parentNode.insertBefore(l,el.nextSibling);},true);})();
(function(){var u=[["https://cdn.androidpimp.com/wp-content/plugins/wpdiscuz/themes/default/css/fonts/sqr721c-webfont.woff2","font/woff2","square721_cn_btroman"],["https://www.androidpimp.com/wp-content/cache/wp-cio-fonts/3c6f8c7e0f2b7a78a4db33d9a14caee1/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2","font/woff2","poppins"],["https://www.androidpimp.com/wp-content/cache/wp-cio-fonts/3c6f8c7e0f2b7a78a4db33d9a14caee1/pxiByp8kv8JHgFVrLGT9Z1xlFd2JQEk.woff2","font/woff2","poppins"],["https://www.androidpimp.com/wp-content/cache/wp-cio-fonts/3c6f8c7e0f2b7a78a4db33d9a14caee1/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2","font/woff2","poppins"]];var g=function(){window.__wpcFPB=window.__wpcFPB||{};var used=null,uf=function(f){if(used===null){used={};try{var els=document.querySelectorAll("body *"),n=0;for(var k=0;k<els.length&&n<400;k++){var r=els[k].getBoundingClientRect();if(!r.width||r.top>innerHeight*2)continue;n++;var ff=getComputedStyle(els[k]).fontFamily.split(",")[0].replace(/["']/g,"").trim().toLowerCase();if(ff)used[ff]=1}}catch(x){used=false}}return used===false||!f||!!used[f]};for(var i=0;i<u.length;i++){if(window.__wpcFPB[u[i][0]])continue;if(!uf(u[i][2]))continue;window.__wpcFPB[u[i][0]]=1;var l=document.createElement("link");l.rel="preload";l.as="font";l.type=u[i][1];l.crossOrigin="anonymous";l.href=u[i][0];document.head.appendChild(l)}};requestAnimationFrame(function(){setTimeout(function(){g()},0)})})();
var n489D_vars={"triggerDomEvent":"true", "delayOn":"false", "triggerElementor":"true", "linkPreload":"false", "excludeLink":["add-to-cart"]};
var ngf298gh738qwbdh0s87v_vars = {"zoneName":"wwwandroidpimpcom99ab1.zapwp.com","siteurl":"https://www.androidpimp.com","ajaxurl":"https://www.androidpimp.com/wp-admin/admin-ajax.php","spinner":"https://www.androidpimp.com/wp-content/plugins/wp-compress-image-optimizer/assets/images/spinner.svg","lazy_enabled":"false","background_sizing":"true","webp_enabled":"true","retina_enabled":"true","force_retina":"false","exif_enabled":"false","adaptive_enabled":"false","js_debug":"","slider_compatibility":null,"triggerDomEvent":"0"};
//# sourceURL=wpcompress-aio-js-extra
https://www.androidpimp.com/wp-content/plugins/wp-compress-image-optimizer/assets/js/dist/optimizer.pixel.min.js
https://www.androidpimp.com/wp-includes/js/jquery/jquery.min.js
https://www.androidpimp.com/wp-includes/js/jquery/jquery-migrate.min.js
var breeze_prefetch = {"local_url":"https://www.androidpimp.com","ignore_remote_prefetch":"1","ignore_list":["wp-admin","wp-login.php"]};
//# sourceURL=breeze-prefetch-js-extra
https://www.androidpimp.com/wp-content/plugins/breeze/assets/js/js-front-end/breeze-prefetch-links.min.js
var wsm_ajax = "https://www.androidpimp.com/wp-admin/admin-ajax.php";
//# sourceURL=wsm-custom-front-js-js-extra
https://www.androidpimp.com/wp-content/plugins/wordpress-stats-manager-pro/js/custom_front_js.js
var BunyadSchemeKey = 'bunyad-scheme';
(() => {
const d = document.documentElement;
const c = d.classList;
var scheme = localStorage.getItem(BunyadSchemeKey);
if (scheme) {
d.dataset.origClass = c;
scheme === 'dark' ? c.remove('s-light', 'site-s-light') : c.remove('s-dark', 'site-s-dark');
c.add('site-s-' + scheme, 's-' + scheme);
}
})();
Table of contents
Nanopi R4S Review, Specs, Features, and Highlights
Nanopi R4S
FriendlyElec is expected to launch a new Nanopi R4S SBC. This is a small complete computer on a circuit board. The SBC is based on the Rockhip RK3399 , powered with six ARM cores CPU with a combination of Cortex-A72 dual-core and Cortex-A53 quad-core next to a Mali-T864 graphics unit.
The Nanopi R4S is a headless system without a display interface. But it can be used as a printer server, network router, file server, or for various purposes that do not require a screen.
Hardware
Compared to its predecessor NanoPi R2s FriendlyElec offers 1 GByte or 4 GByte DDR3 RAM configurations on a small PCB measuring 66 x 66 mm, so the board is very compact and can be placed almost in every environment without occupying too much space. There is no eMMC flash on board, but a micro SD card socket/slot comes built-in on the board capable of loading Linux systems on the memory card.
The board comes with two USB 3.2 Gen 1 socket, an onboard USB 2.0 header, and a micro USB connection for the power supply. Two Gigabit Ethernet sockets (RJ45) make the mini-computer interesting for network applications along with an external 10-pin GPIO interface.
Specifications
SoC: Rockchip RK3399
RAM: 1GB DDR3/4GB LPDDR4
Ethernet: one Native Gigabit Ethernet, and one PCIe Gigabit Ethernet
CPU: big.LITTLE๏ผDual-Core Cortex-A72(up to 2.0GHz) + Quad-Core Cortex-A53(up to 1.5GHz)
GPU: Mali-T864 GPU๏ผsupports OpenGL ES1.1/2.0/3.0/3.1, OpenCL, DX11, and AFBC
VPU: 4K VP9 and 4K 10bits H265/H264 60fps decoding, Dual VOP, etc
PMU: RK808-D PMIC, cooperated with independent DC/DC, enabling DVFS, software power-down, RTC wake-up, system sleep mode
Interfaces:
USB: two USB 3.0 Type-A ports
Pin header extension interface
2×5-pin header: SPI x 1, I2C x 1
4-pin header: USB 2.0
microSD Slot x 1
Debug: one Debug UART, 3 Pin 2.54mm header, 3V level, 1500000bps
LEDs: 1 x power LED and 3 x GPIO Controlled LED (SYS, LAN, WAN)
Others:
2 Pin 1.27/1.25mm RTC battery input connector
one UserKey
one 5V Fan connector
Power supply: DC 5V/3A, via USB-C connector or Pin header
PCB: 8 Layer, 66 mm x 66 mm
Ambient Operating Temperature: -20โ to 70โ
Nanopi R4S Layout
[Nanopi R4S Front view]
Nanopi R4S Review
[Nanopi R4S Back view]
What’s included (Default package)
As mentioned previously. The Nanopi R4S is powered by a Rockchip RK399 SoC equipped with a 6-core (Hexa Core) CPU, which is considered to be a high-end performance chip for SBCs. You can buy the board as a bare board without any extra accessories, but we definitely recommend buying the metal case and, if really needed, also a 5V 4A power supply unit.
Prices:
NanoPi R4S bare board with 1GB DDR3 RAM for $45
NanoPi R4S bare board with 4GB LPDDR4 RAM for $55
NanoPi R4S with 1GB DDR3 RAM + metal case for $59
NanoPi R4S with 4GB LPDDR4 RAM + metal case for $69
Nanopi R4S
Case Design
From our impression, FriendlyElec invests highly in manufacturing a superb all-metal case that fits perfectly with the Nanopi R4S board and also has a great modern external design. The case is composed of two partsโthe main cover, plus the button cover.
Nanopi R4S All Metal Case
Case Assembly
Assemble is very straightforward. To assemble the board inside the case, you will first put the thermal pad on top of the CPU and position it carefully inside the case.
In step two, you will need to connect the board to the case using a pair of Philips-type screws, and finally assemble the bottom cover with an additional four Philips screws. FriendlyElec included four silicon legs you can add on top of the screws. If for some reason, you will need to open the case, you can skip adding them.
Nanopi R4S Case + Board
Passive Cooling
You will not find any fan inside the Nanopi R4S case. Therefore, it’s quiet and not noisy. The heat convection is done through direct contact between the Nanopi R4S RK3399 Processor Chip and the case shell using a conductive thermal pad also included with the Case kit.
HSF (Heat Sink and Fan)
If you decided not to use a metal case and design/ customize your own, you will most likely need to buy a heatsink with a built-in fan. FrienldyElec Heatsink is designed to fit the Nanopi R4S PCB mounting holes flawlessly. Please note that this item is not yet available in FriendlyElec’s store and is expected to go on sale in a few weeks. When we will have more information we will post more details about it including the price.
Nanopi R4S Heatsink (optional)
| __| _(_)___ _ _ __| | |_ \ \ / / _ \_ _|
| _| '_| / -_) ' \/ _` | | || \ \/\/ /| / | |
|_||_| |_\___|_||_\__,_|_|\_, |\_/\_/ |_|_\ |_|
|__/
-----------------------------------------------------
FriendlyWRT 19.07.4, r11208-ce6496d796
-----------------------------------------------------
root@FriendlyWrt:~# cat /sys/class/thermal/thermal_zone0/temp
30555
According to our tests (Idle / very light usage)
Core CPU temperature: ~26-36C
Power: 3W >
Designed also for Industrial Applications
Because the board is completely made of metal, it can be used inside factories or “hostile” environments considered dirty and none ideal for running an SBC. This metal is very capable of providing great protection for the board. FirendlyElec also included a 1/4 inch mm screw thread located on the right side of the case that can be used to mount the unit almost everywhere, including walls.
Interfaces
Similar to the previous NanoPi R2S SBC, the NanoPi R4S comes with two Ethernet interfaces. One for WAN and a secondary port for LAN. For the power supply interface, FriendlyElec used a USB Type C interface, which is very comfortable too. The only problem we had was with the short length of the USB Type C (~30cm) which can be pretty limiting for most users.
Power button
An onboard power button wasn’t added in the new NanoPi R4S. If you are not planning on powering the board 24×7, we strongly advise buying a USB Type C cable with a built-in on/off power switch.
Software
As most FriendlyElec SBCs, likely, the new expected Nanopi R4S board will mainly support Ubuntu/ OpenWRT Software. Obviously, It’s pretty limiting in terms of software support having only two Linux distributions.
Most users would find Nanopi R4S valuable for running OpenWrt distribution as a portable router/gateway/monitoring device capable of running various services that also can be used wisely to improve a small local network security protection against cyber attacks with its advanced firewall features.
htop running under FriendlyWrt (OpenWrt 19.07.4 r1120)
NanoPi R4S Review – Verdict
In our opinion, the combination of the NanoPi R4S board, including the case, is an excellent choice for users seeking a high-performance SBC for applications that do not require a video output. The quality of the NanoPi R4S, including all accessories provided for this review, was excellent and above average.
FriendlyElec NanoPi R4S can be used for a wide selection of IT applications. A few useful applications are listed in the table below:
firewall zones over all network interfaces. SYN-flood protection. Drop invalid packets, Port Forwarding. Traffic Rules
Printing over the network
Samba MiniDLNA (media server) FTP
a free and open source containerization platform.
Bandwidth monitoring speedtest-cli tool QoS
The most popular ad blocker. It can block Block pop-ups and annoying ads on websites.
Configure multiple VPN profiles
Manage multiple DNS address
Personal Insights
We strongly think that the NanoPi R4S could have been more successful as a personal router device with additional 2-3 LAN ports. The few extra ports could have made a huge impact running FriendlyWrt (OpenWrt) by offering more useful features this advanced distribution has to offer like WAN Bonding , which is impossible to accomplish with a single LAN port.
Final verdict
POSITIVES
Design Quality Value for Money Dual gigabit Ethernet ports
wpDiscuz
Insert
(function(){var n=document.getElementById("stoc-nav-1");if(!n)return;var sw=n.querySelector(".stoc-darkswitch input");if(!sw)return;var AUTO=n.getAttribute("data-autodark")==="1";var mq=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;function gs(){try{return localStorage.getItem("slimtoc_theme");}catch(e){return null;}}function ss(v){try{localStorage.setItem("slimtoc_theme",v);}catch(e){}}function isDark(){var st=gs();if(st==="dark")return true;if(st==="light")return false;return !!(mq&&mq.matches);}function paint(d){var manual=!!gs();n.classList.remove("stoc-dark","stoc-light","stoc-autodark");if(manual){n.classList.add(d?"stoc-dark":"stoc-light");}else if(AUTO){n.classList.add("stoc-autodark");}document.querySelectorAll(".stoc-review").forEach(function(r){r.classList.remove("stoc-dark","stoc-light","stoc-autodark");if(manual){r.classList.add(d?"stoc-dark":"stoc-light");}else if(AUTO){r.classList.add("stoc-autodark");}});sw.checked=d;}paint(isDark());sw.addEventListener("change",function(){var d=sw.checked;ss(d?"dark":"light");paint(d);});if(mq){var f=function(){if(!gs())paint(isDark());};if(mq.addEventListener)mq.addEventListener("change",f);else if(mq.addListener)mq.addListener(f);}})();
( ( dropdownId ) => {
const dropdown = document.getElementById( dropdownId );
function onSelectChange() {
setTimeout( () => {
if ( 'escape' === dropdown.dataset.lastkey ) {
return;
}
if ( dropdown.value && parseInt( dropdown.value ) > 0 && dropdown instanceof HTMLSelectElement ) {
dropdown.parentElement.submit();
}
}, 250 );
}
function onKeyUp( event ) {
if ( 'Escape' === event.key ) {
dropdown.dataset.lastkey = 'escape';
} else {
delete dropdown.dataset.lastkey;
}
}
function onClick() {
delete dropdown.dataset.lastkey;
}
dropdown.addEventListener( 'keyup', onKeyUp );
dropdown.addEventListener( 'click', onClick );
dropdown.addEventListener( 'change', onSelectChange );
})( "cat" );
//# sourceURL=WP_Widget_Categories%3A%3Awidget
var wpData = {"baseUrl":"https://www.androidpimp.com"};
var wpData = {"baseUrl":"https://www.androidpimp.com"};
var wpData = {"baseUrl":"https://www.androidpimp.com"};
var wpData = {"baseUrl":"https://www.androidpimp.com"};
//# sourceURL=metaslider-script-js-extra
https://www.androidpimp.com/wp-content/plugins/ml-slider/assets/metaslider/script.min.js
https://www.androidpimp.com/wp-content/plugins/ml-slider/themes/bubble/v1.0.0/script.js
https://www.androidpimp.com/wp-content/plugins/ml-slider/assets/sliders/flexslider/jquery.flexslider.min.js
var metaslider_72168 = function($) {
var tryToGoNextTimeout;
$('#metaslider_72168').flexslider({
slideshowSpeed:3000,
animation:"fade",
controlNav:true,
directionNav:true,
pauseOnHover:true,
direction:"horizontal",
reverse:false,
keyboard:true,
touch:true,
animationSpeed:600,
prevText:"<",
nextText:">",
smoothHeight:false,
fadeFirstSlide:false,
slideshow:true,
pausePlay:false,
showPlayText:false,
playText:false,
pauseText:false,
before: function(slider) {
jQuery('#metaslider_72168 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72168 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.pause(this);
});
clearTimeout(tryToGoNextTimeout);
},
after: function(slider) {
window.metaslider && window.metaslider.livid && window.metaslider.livid.markTransitioned('metaslider_72168');
jQuery('#metaslider_72168 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"], #metaslider_72168 .flex-active-slide .ms-livid-eager[data-autoplay-on-active="1"]').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.hold(this);
});
jQuery('#metaslider_72168 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72168 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.resume(this);
});
jQuery('#metaslider_72168 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"]:not([data-playing="1"])').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.triggerAutoplay(this);
});
// Re-disable focusable elements after slide transitions
var slider_ = $('#metaslider_72168');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
function tryToGoNextAfterDelay(slideObj, delay) {
clearTimeout(tryToGoNextTimeout);
if (!slideObj) {
console.error('No slideObj!');
return false;
}
var isVideoPlaying = slideObj.hasClass('video-playing');
if (!delay) {
console.error('No delay!');
return false;
}
tryToGoNextTimeout = setTimeout(function() {
isVideoPlaying = $('#metaslider_72168').find('li.flex-active-slide').hasClass('video-playing');
if (isVideoPlaying) {tryToGoNextAfterDelay(slideObj, delay);
} else {slider.play();
slider.flexAnimate(slider.getTarget('next'));
}
}, delay);
}
},
start: function(slider) {
if (window.metaslider && window.metaslider.livid) {
window.metaslider.livid.setAdvanceOnEnd('metaslider_72168', true, 'continuously');
}
jQuery('#metaslider_72168 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"], #metaslider_72168 .flex-active-slide .ms-livid-eager[data-autoplay-on-active="1"]').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.hold(this);
});
jQuery('#metaslider_72168 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72168 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.resume(this);
});
jQuery('#metaslider_72168 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"]:not([data-playing="1"])').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.triggerAutoplay(this);
});
var placeholder = '#metaslider_72168 .ms-postfeed .ms-slide-image-placeholder';
if ( $(placeholder).length > 0 ) {
var ms_placeholder_postfeed_image = function() {
var canvas = document.createElement('canvas');
canvas.width = 0;
canvas.height = 0;
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(255, 255, 255, 0)';
ctx.fillRect(0, 0, 0, 0);
var imageData = canvas.toDataURL('image/png');
return imageData || '';
};
$(placeholder).each(function() {
if ($(this).find('img').length === 0) {
var img = $('<img />').attr({ src: ms_placeholder_postfeed_image(), width: 0, height: 0, class: 'msDefaultImage' });
$(this).append(img);
}
});
}
slider.find('.flex-prev').attr('aria-label', 'Previous');
slider.find('.flex-next').attr('aria-label', 'Next');
// Function to disable focusable elements in aria-hidden slides
function disableAriaHiddenFocusableElements() {
var slider_ = $('#metaslider_72168');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides (these should never be focusable)
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
}
// Initial setup
disableAriaHiddenFocusableElements();
// Observer for aria-hidden and clone changes
if (typeof MutationObserver !== 'undefined') {
var ariaObserver = new MutationObserver(function(mutations) {
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
shouldUpdate = true;
}
if (mutation.type === 'childList') {
// Check if cloned slides were added/removed
for (var i = 0; i < mutation.addedNodes.length; i++) {
if (mutation.addedNodes[i].nodeType === 1 &&
(mutation.addedNodes[i].classList.contains('clone') ||
mutation.addedNodes[i].querySelector && mutation.addedNodes[i].querySelector('.clone'))) {
shouldUpdate = true;
break;
}
}
}
});
if (shouldUpdate) {
setTimeout(disableAriaHiddenFocusableElements, 10);
}
});
var targetNode = $('#metaslider_72168')[0];
if (targetNode) {
ariaObserver.observe(targetNode, {
attributes: true,
attributeFilter: ['aria-hidden'],
childList: true,
subtree: true
});
}
}
},
init: function(slider) {
}
});
$(document).trigger('metaslider/initialized', '#metaslider_72168');
};
var timer_metaslider_72168 = function() {
var slider = !window.jQuery ? window.setTimeout(timer_metaslider_72168, 100) : !jQuery.isReady ? window.setTimeout(timer_metaslider_72168, 1) : metaslider_72168(window.jQuery);
};
timer_metaslider_72168();
var metaslider_72151 = function($) {
var tryToGoNextTimeout;
var tryToGoNextTimeout;
$('#metaslider_72151').flexslider({
slideshowSpeed:3000,
animation:"fade",
controlNav:true,
directionNav:true,
pauseOnHover:true,
direction:"horizontal",
reverse:false,
keyboard:true,
touch:true,
animationSpeed:600,
prevText:"<",
nextText:">",
smoothHeight:false,
fadeFirstSlide:false,
slideshow:true,
pausePlay:false,
showPlayText:false,
playText:false,
pauseText:false,
before: function(slider) {
jQuery('#metaslider_72151 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72151 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.pause(this);
});
clearTimeout(tryToGoNextTimeout);
clearTimeout(tryToGoNextTimeout);
},
after: function(slider) {
window.metaslider && window.metaslider.livid && window.metaslider.livid.markTransitioned('metaslider_72151');
jQuery('#metaslider_72151 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"], #metaslider_72151 .flex-active-slide .ms-livid-eager[data-autoplay-on-active="1"]').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.hold(this);
});
jQuery('#metaslider_72151 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72151 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.resume(this);
});
jQuery('#metaslider_72151 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"]:not([data-playing="1"])').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.triggerAutoplay(this);
});
// Re-disable focusable elements after slide transitions
var slider_ = $('#metaslider_72151');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
function tryToGoNextAfterDelay(slideObj, delay) {
clearTimeout(tryToGoNextTimeout);
if (!slideObj) {
console.error('No slideObj!');
return false;
}
var isVideoPlaying = slideObj.hasClass('video-playing');
if (!delay) {
console.error('No delay!');
return false;
}
tryToGoNextTimeout = setTimeout(function() {
isVideoPlaying = $('#metaslider_72151').find('li.flex-active-slide').hasClass('video-playing');
if (isVideoPlaying) {tryToGoNextAfterDelay(slideObj, delay);
} else {slider.play();
slider.flexAnimate(slider.getTarget('next'));
}
}, delay);
}
// Re-disable focusable elements after slide transitions
var slider_ = $('#metaslider_72151');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
function tryToGoNextAfterDelay(slideObj, delay) {
clearTimeout(tryToGoNextTimeout);
if (!slideObj) {
console.error('No slideObj!');
return false;
}
var isVideoPlaying = slideObj.hasClass('video-playing');
if (!delay) {
console.error('No delay!');
return false;
}
tryToGoNextTimeout = setTimeout(function() {
isVideoPlaying = $('#metaslider_72151').find('li.flex-active-slide').hasClass('video-playing');
if (isVideoPlaying) {tryToGoNextAfterDelay(slideObj, delay);
} else {slider.play();
slider.flexAnimate(slider.getTarget('next'));
}
}, delay);
}
},
start: function(slider) {
if (window.metaslider && window.metaslider.livid) {
window.metaslider.livid.setAdvanceOnEnd('metaslider_72151', true, 'continuously');
}
jQuery('#metaslider_72151 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"], #metaslider_72151 .flex-active-slide .ms-livid-eager[data-autoplay-on-active="1"]').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.hold(this);
});
jQuery('#metaslider_72151 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72151 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.resume(this);
});
jQuery('#metaslider_72151 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"]:not([data-playing="1"])').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.triggerAutoplay(this);
});
slider.find('.flex-prev').attr('aria-label', 'Previous');
slider.find('.flex-next').attr('aria-label', 'Next');
slider.find('.flex-prev').attr('aria-label', 'Previous');
slider.find('.flex-next').attr('aria-label', 'Next');
// Function to disable focusable elements in aria-hidden slides
function disableAriaHiddenFocusableElements() {
var slider_ = $('#metaslider_72151');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides (these should never be focusable)
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
}
// Initial setup
disableAriaHiddenFocusableElements();
// Observer for aria-hidden and clone changes
if (typeof MutationObserver !== 'undefined') {
var ariaObserver = new MutationObserver(function(mutations) {
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
shouldUpdate = true;
}
if (mutation.type === 'childList') {
// Check if cloned slides were added/removed
for (var i = 0; i < mutation.addedNodes.length; i++) {
if (mutation.addedNodes[i].nodeType === 1 &&
(mutation.addedNodes[i].classList.contains('clone') ||
mutation.addedNodes[i].querySelector && mutation.addedNodes[i].querySelector('.clone'))) {
shouldUpdate = true;
break;
}
}
}
});
if (shouldUpdate) {
setTimeout(disableAriaHiddenFocusableElements, 10);
}
});
var targetNode = $('#metaslider_72151')[0];
if (targetNode) {
ariaObserver.observe(targetNode, {
attributes: true,
attributeFilter: ['aria-hidden'],
childList: true,
subtree: true
});
}
}
// Function to disable focusable elements in aria-hidden slides
function disableAriaHiddenFocusableElements() {
var slider_ = $('#metaslider_72151');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides (these should never be focusable)
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
}
// Initial setup
disableAriaHiddenFocusableElements();
// Observer for aria-hidden and clone changes
if (typeof MutationObserver !== 'undefined') {
var ariaObserver = new MutationObserver(function(mutations) {
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
shouldUpdate = true;
}
if (mutation.type === 'childList') {
// Check if cloned slides were added/removed
for (var i = 0; i < mutation.addedNodes.length; i++) {
if (mutation.addedNodes[i].nodeType === 1 &&
(mutation.addedNodes[i].classList.contains('clone') ||
mutation.addedNodes[i].querySelector && mutation.addedNodes[i].querySelector('.clone'))) {
shouldUpdate = true;
break;
}
}
}
});
if (shouldUpdate) {
setTimeout(disableAriaHiddenFocusableElements, 10);
}
});
var targetNode = $('#metaslider_72151')[0];
if (targetNode) {
ariaObserver.observe(targetNode, {
attributes: true,
attributeFilter: ['aria-hidden'],
childList: true,
subtree: true
});
}
}
}
});
$(document).trigger('metaslider/initialized', '#metaslider_72151');
};
var timer_metaslider_72151 = function() {
var slider = !window.jQuery ? window.setTimeout(timer_metaslider_72151, 100) : !jQuery.isReady ? window.setTimeout(timer_metaslider_72151, 1) : metaslider_72151(window.jQuery);
};
timer_metaslider_72151();
var metaslider_72189 = function($) {
var tryToGoNextTimeout;
var tryToGoNextTimeout;
var tryToGoNextTimeout;
var tryToGoNextTimeout;
$('#metaslider_72189').flexslider({
slideshowSpeed:3000,
animation:"fade",
controlNav:true,
directionNav:true,
pauseOnHover:true,
direction:"horizontal",
reverse:false,
keyboard:true,
touch:true,
animationSpeed:600,
prevText:"<",
nextText:">",
smoothHeight:false,
fadeFirstSlide:false,
slideshow:true,
pausePlay:false,
showPlayText:false,
playText:false,
pauseText:false,
before: function(slider) {
jQuery('#metaslider_72189 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72189 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.pause(this);
});
clearTimeout(tryToGoNextTimeout);
clearTimeout(tryToGoNextTimeout);
clearTimeout(tryToGoNextTimeout);
},
after: function(slider) {
window.metaslider && window.metaslider.livid && window.metaslider.livid.markTransitioned('metaslider_72189');
jQuery('#metaslider_72189 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"], #metaslider_72189 .flex-active-slide .ms-livid-eager[data-autoplay-on-active="1"]').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.hold(this);
});
jQuery('#metaslider_72189 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72189 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.resume(this);
});
jQuery('#metaslider_72189 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"]:not([data-playing="1"])').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.triggerAutoplay(this);
});
// Re-disable focusable elements after slide transitions
var slider_ = $('#metaslider_72189');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
function tryToGoNextAfterDelay(slideObj, delay) {
clearTimeout(tryToGoNextTimeout);
if (!slideObj) {
console.error('No slideObj!');
return false;
}
var isVideoPlaying = slideObj.hasClass('video-playing');
if (!delay) {
console.error('No delay!');
return false;
}
tryToGoNextTimeout = setTimeout(function() {
isVideoPlaying = $('#metaslider_72189').find('li.flex-active-slide').hasClass('video-playing');
if (isVideoPlaying) {tryToGoNextAfterDelay(slideObj, delay);
} else {slider.play();
slider.flexAnimate(slider.getTarget('next'));
}
}, delay);
}
// Re-disable focusable elements after slide transitions
var slider_ = $('#metaslider_72189');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
function tryToGoNextAfterDelay(slideObj, delay) {
clearTimeout(tryToGoNextTimeout);
if (!slideObj) {
console.error('No slideObj!');
return false;
}
var isVideoPlaying = slideObj.hasClass('video-playing');
if (!delay) {
console.error('No delay!');
return false;
}
tryToGoNextTimeout = setTimeout(function() {
isVideoPlaying = $('#metaslider_72189').find('li.flex-active-slide').hasClass('video-playing');
if (isVideoPlaying) {tryToGoNextAfterDelay(slideObj, delay);
} else {slider.play();
slider.flexAnimate(slider.getTarget('next'));
}
}, delay);
}
// Re-disable focusable elements after slide transitions
var slider_ = $('#metaslider_72189');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
function tryToGoNextAfterDelay(slideObj, delay) {
clearTimeout(tryToGoNextTimeout);
if (!slideObj) {
console.error('No slideObj!');
return false;
}
var isVideoPlaying = slideObj.hasClass('video-playing');
if (!delay) {
console.error('No delay!');
return false;
}
tryToGoNextTimeout = setTimeout(function() {
isVideoPlaying = $('#metaslider_72189').find('li.flex-active-slide').hasClass('video-playing');
if (isVideoPlaying) {tryToGoNextAfterDelay(slideObj, delay);
} else {slider.play();
slider.flexAnimate(slider.getTarget('next'));
}
}, delay);
}
},
start: function(slider) {
if (window.metaslider && window.metaslider.livid) {
window.metaslider.livid.setAdvanceOnEnd('metaslider_72189', true, 'continuously');
}
jQuery('#metaslider_72189 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"], #metaslider_72189 .flex-active-slide .ms-livid-eager[data-autoplay-on-active="1"]').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.hold(this);
});
jQuery('#metaslider_72189 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72189 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.resume(this);
});
jQuery('#metaslider_72189 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"]:not([data-playing="1"])').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.triggerAutoplay(this);
});
slider.find('.flex-prev').attr('aria-label', 'Previous');
slider.find('.flex-next').attr('aria-label', 'Next');
slider.find('.flex-prev').attr('aria-label', 'Previous');
slider.find('.flex-next').attr('aria-label', 'Next');
slider.find('.flex-prev').attr('aria-label', 'Previous');
slider.find('.flex-next').attr('aria-label', 'Next');
// Function to disable focusable elements in aria-hidden slides
function disableAriaHiddenFocusableElements() {
var slider_ = $('#metaslider_72189');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides (these should never be focusable)
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
}
// Initial setup
disableAriaHiddenFocusableElements();
// Observer for aria-hidden and clone changes
if (typeof MutationObserver !== 'undefined') {
var ariaObserver = new MutationObserver(function(mutations) {
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
shouldUpdate = true;
}
if (mutation.type === 'childList') {
// Check if cloned slides were added/removed
for (var i = 0; i < mutation.addedNodes.length; i++) {
if (mutation.addedNodes[i].nodeType === 1 &&
(mutation.addedNodes[i].classList.contains('clone') ||
mutation.addedNodes[i].querySelector && mutation.addedNodes[i].querySelector('.clone'))) {
shouldUpdate = true;
break;
}
}
}
});
if (shouldUpdate) {
setTimeout(disableAriaHiddenFocusableElements, 10);
}
});
var targetNode = $('#metaslider_72189')[0];
if (targetNode) {
ariaObserver.observe(targetNode, {
attributes: true,
attributeFilter: ['aria-hidden'],
childList: true,
subtree: true
});
}
}
// Function to disable focusable elements in aria-hidden slides
function disableAriaHiddenFocusableElements() {
var slider_ = $('#metaslider_72189');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides (these should never be focusable)
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
}
// Initial setup
disableAriaHiddenFocusableElements();
// Observer for aria-hidden and clone changes
if (typeof MutationObserver !== 'undefined') {
var ariaObserver = new MutationObserver(function(mutations) {
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
shouldUpdate = true;
}
if (mutation.type === 'childList') {
// Check if cloned slides were added/removed
for (var i = 0; i < mutation.addedNodes.length; i++) {
if (mutation.addedNodes[i].nodeType === 1 &&
(mutation.addedNodes[i].classList.contains('clone') ||
mutation.addedNodes[i].querySelector && mutation.addedNodes[i].querySelector('.clone'))) {
shouldUpdate = true;
break;
}
}
}
});
if (shouldUpdate) {
setTimeout(disableAriaHiddenFocusableElements, 10);
}
});
var targetNode = $('#metaslider_72189')[0];
if (targetNode) {
ariaObserver.observe(targetNode, {
attributes: true,
attributeFilter: ['aria-hidden'],
childList: true,
subtree: true
});
}
}
// Function to disable focusable elements in aria-hidden slides
function disableAriaHiddenFocusableElements() {
var slider_ = $('#metaslider_72189');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides (these should never be focusable)
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
}
// Initial setup
disableAriaHiddenFocusableElements();
// Observer for aria-hidden and clone changes
if (typeof MutationObserver !== 'undefined') {
var ariaObserver = new MutationObserver(function(mutations) {
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
shouldUpdate = true;
}
if (mutation.type === 'childList') {
// Check if cloned slides were added/removed
for (var i = 0; i < mutation.addedNodes.length; i++) {
if (mutation.addedNodes[i].nodeType === 1 &&
(mutation.addedNodes[i].classList.contains('clone') ||
mutation.addedNodes[i].querySelector && mutation.addedNodes[i].querySelector('.clone'))) {
shouldUpdate = true;
break;
}
}
}
});
if (shouldUpdate) {
setTimeout(disableAriaHiddenFocusableElements, 10);
}
});
var targetNode = $('#metaslider_72189')[0];
if (targetNode) {
ariaObserver.observe(targetNode, {
attributes: true,
attributeFilter: ['aria-hidden'],
childList: true,
subtree: true
});
}
}
}
});
$(document).trigger('metaslider/initialized', '#metaslider_72189');
};
var timer_metaslider_72189 = function() {
var slider = !window.jQuery ? window.setTimeout(timer_metaslider_72189, 100) : !jQuery.isReady ? window.setTimeout(timer_metaslider_72189, 1) : metaslider_72189(window.jQuery);
};
timer_metaslider_72189();
var metaslider_72286 = function($) {
var tryToGoNextTimeout;
var tryToGoNextTimeout;
var tryToGoNextTimeout;
var tryToGoNextTimeout;
var tryToGoNextTimeout;
var tryToGoNextTimeout;
var tryToGoNextTimeout;
$('#metaslider_72286').flexslider({
slideshowSpeed:3000,
animation:"fade",
controlNav:true,
directionNav:true,
pauseOnHover:true,
direction:"horizontal",
reverse:false,
keyboard:true,
touch:true,
animationSpeed:600,
prevText:"<",
nextText:">",
smoothHeight:false,
fadeFirstSlide:false,
slideshow:true,
pausePlay:false,
showPlayText:false,
playText:false,
pauseText:false,
before: function(slider) {
jQuery('#metaslider_72286 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72286 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.pause(this);
});
clearTimeout(tryToGoNextTimeout);
clearTimeout(tryToGoNextTimeout);
clearTimeout(tryToGoNextTimeout);
clearTimeout(tryToGoNextTimeout);
},
after: function(slider) {
window.metaslider && window.metaslider.livid && window.metaslider.livid.markTransitioned('metaslider_72286');
jQuery('#metaslider_72286 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"], #metaslider_72286 .flex-active-slide .ms-livid-eager[data-autoplay-on-active="1"]').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.hold(this);
});
jQuery('#metaslider_72286 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72286 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.resume(this);
});
jQuery('#metaslider_72286 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"]:not([data-playing="1"])').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.triggerAutoplay(this);
});
// Re-disable focusable elements after slide transitions
var slider_ = $('#metaslider_72286');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
function tryToGoNextAfterDelay(slideObj, delay) {
clearTimeout(tryToGoNextTimeout);
if (!slideObj) {
console.error('No slideObj!');
return false;
}
var isVideoPlaying = slideObj.hasClass('video-playing');
if (!delay) {
console.error('No delay!');
return false;
}
tryToGoNextTimeout = setTimeout(function() {
isVideoPlaying = $('#metaslider_72286').find('li.flex-active-slide').hasClass('video-playing');
if (isVideoPlaying) {tryToGoNextAfterDelay(slideObj, delay);
} else {slider.play();
slider.flexAnimate(slider.getTarget('next'));
}
}, delay);
}
// Re-disable focusable elements after slide transitions
var slider_ = $('#metaslider_72286');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
function tryToGoNextAfterDelay(slideObj, delay) {
clearTimeout(tryToGoNextTimeout);
if (!slideObj) {
console.error('No slideObj!');
return false;
}
var isVideoPlaying = slideObj.hasClass('video-playing');
if (!delay) {
console.error('No delay!');
return false;
}
tryToGoNextTimeout = setTimeout(function() {
isVideoPlaying = $('#metaslider_72286').find('li.flex-active-slide').hasClass('video-playing');
if (isVideoPlaying) {tryToGoNextAfterDelay(slideObj, delay);
} else {slider.play();
slider.flexAnimate(slider.getTarget('next'));
}
}, delay);
}
// Re-disable focusable elements after slide transitions
var slider_ = $('#metaslider_72286');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
function tryToGoNextAfterDelay(slideObj, delay) {
clearTimeout(tryToGoNextTimeout);
if (!slideObj) {
console.error('No slideObj!');
return false;
}
var isVideoPlaying = slideObj.hasClass('video-playing');
if (!delay) {
console.error('No delay!');
return false;
}
tryToGoNextTimeout = setTimeout(function() {
isVideoPlaying = $('#metaslider_72286').find('li.flex-active-slide').hasClass('video-playing');
if (isVideoPlaying) {tryToGoNextAfterDelay(slideObj, delay);
} else {slider.play();
slider.flexAnimate(slider.getTarget('next'));
}
}, delay);
}
// Re-disable focusable elements after slide transitions
var slider_ = $('#metaslider_72286');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
function tryToGoNextAfterDelay(slideObj, delay) {
clearTimeout(tryToGoNextTimeout);
if (!slideObj) {
console.error('No slideObj!');
return false;
}
var isVideoPlaying = slideObj.hasClass('video-playing');
if (!delay) {
console.error('No delay!');
return false;
}
tryToGoNextTimeout = setTimeout(function() {
isVideoPlaying = $('#metaslider_72286').find('li.flex-active-slide').hasClass('video-playing');
if (isVideoPlaying) {tryToGoNextAfterDelay(slideObj, delay);
} else {slider.play();
slider.flexAnimate(slider.getTarget('next'));
}
}, delay);
}
},
start: function(slider) {
if (window.metaslider && window.metaslider.livid) {
window.metaslider.livid.setAdvanceOnEnd('metaslider_72286', true, 'continuously');
}
jQuery('#metaslider_72286 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"], #metaslider_72286 .flex-active-slide .ms-livid-eager[data-autoplay-on-active="1"]').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.hold(this);
});
jQuery('#metaslider_72286 .flex-active-slide .ms-livid-lazy-wrap[data-playing="1"], #metaslider_72286 .flex-active-slide .ms-livid-eager').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.resume(this);
});
jQuery('#metaslider_72286 .flex-active-slide .ms-livid-lazy-wrap[data-autoplay-on-active="1"]:not([data-playing="1"])').each(function () {
window.metaslider && window.metaslider.livid && window.metaslider.livid.triggerAutoplay(this);
});
slider.find('.flex-prev').attr('aria-label', 'Previous');
slider.find('.flex-next').attr('aria-label', 'Next');
slider.find('.flex-prev').attr('aria-label', 'Previous');
slider.find('.flex-next').attr('aria-label', 'Next');
slider.find('.flex-prev').attr('aria-label', 'Previous');
slider.find('.flex-next').attr('aria-label', 'Next');
slider.find('.flex-prev').attr('aria-label', 'Previous');
slider.find('.flex-next').attr('aria-label', 'Next');
// Function to disable focusable elements in aria-hidden slides
function disableAriaHiddenFocusableElements() {
var slider_ = $('#metaslider_72286');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides (these should never be focusable)
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
}
// Initial setup
disableAriaHiddenFocusableElements();
// Observer for aria-hidden and clone changes
if (typeof MutationObserver !== 'undefined') {
var ariaObserver = new MutationObserver(function(mutations) {
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
shouldUpdate = true;
}
if (mutation.type === 'childList') {
// Check if cloned slides were added/removed
for (var i = 0; i < mutation.addedNodes.length; i++) {
if (mutation.addedNodes[i].nodeType === 1 &&
(mutation.addedNodes[i].classList.contains('clone') ||
mutation.addedNodes[i].querySelector && mutation.addedNodes[i].querySelector('.clone'))) {
shouldUpdate = true;
break;
}
}
}
});
if (shouldUpdate) {
setTimeout(disableAriaHiddenFocusableElements, 10);
}
});
var targetNode = $('#metaslider_72286')[0];
if (targetNode) {
ariaObserver.observe(targetNode, {
attributes: true,
attributeFilter: ['aria-hidden'],
childList: true,
subtree: true
});
}
}
// Function to disable focusable elements in aria-hidden slides
function disableAriaHiddenFocusableElements() {
var slider_ = $('#metaslider_72286');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides (these should never be focusable)
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
}
// Initial setup
disableAriaHiddenFocusableElements();
// Observer for aria-hidden and clone changes
if (typeof MutationObserver !== 'undefined') {
var ariaObserver = new MutationObserver(function(mutations) {
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
shouldUpdate = true;
}
if (mutation.type === 'childList') {
// Check if cloned slides were added/removed
for (var i = 0; i < mutation.addedNodes.length; i++) {
if (mutation.addedNodes[i].nodeType === 1 &&
(mutation.addedNodes[i].classList.contains('clone') ||
mutation.addedNodes[i].querySelector && mutation.addedNodes[i].querySelector('.clone'))) {
shouldUpdate = true;
break;
}
}
}
});
if (shouldUpdate) {
setTimeout(disableAriaHiddenFocusableElements, 10);
}
});
var targetNode = $('#metaslider_72286')[0];
if (targetNode) {
ariaObserver.observe(targetNode, {
attributes: true,
attributeFilter: ['aria-hidden'],
childList: true,
subtree: true
});
}
}
// Function to disable focusable elements in aria-hidden slides
function disableAriaHiddenFocusableElements() {
var slider_ = $('#metaslider_72286');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides (these should never be focusable)
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
}
// Initial setup
disableAriaHiddenFocusableElements();
// Observer for aria-hidden and clone changes
if (typeof MutationObserver !== 'undefined') {
var ariaObserver = new MutationObserver(function(mutations) {
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
shouldUpdate = true;
}
if (mutation.type === 'childList') {
// Check if cloned slides were added/removed
for (var i = 0; i < mutation.addedNodes.length; i++) {
if (mutation.addedNodes[i].nodeType === 1 &&
(mutation.addedNodes[i].classList.contains('clone') ||
mutation.addedNodes[i].querySelector && mutation.addedNodes[i].querySelector('.clone'))) {
shouldUpdate = true;
break;
}
}
}
});
if (shouldUpdate) {
setTimeout(disableAriaHiddenFocusableElements, 10);
}
});
var targetNode = $('#metaslider_72286')[0];
if (targetNode) {
ariaObserver.observe(targetNode, {
attributes: true,
attributeFilter: ['aria-hidden'],
childList: true,
subtree: true
});
}
}
// Function to disable focusable elements in aria-hidden slides
function disableAriaHiddenFocusableElements() {
var slider_ = $('#metaslider_72286');
// Disable focusable elements in slides with aria-hidden='true'
slider_.find('.slides li[aria-hidden="true"] a, .slides li[aria-hidden="true"] button, .slides li[aria-hidden="true"] input, .slides li[aria-hidden="true"] select, .slides li[aria-hidden="true"] textarea, .slides li[aria-hidden="true"] [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
// Disable focusable elements in cloned slides (these should never be focusable)
slider_.find('.slides li.clone a, .slides li.clone button, .slides li.clone input, .slides li.clone select, .slides li.clone textarea, .slides li.clone [tabindex]:not([tabindex="-1"])').attr('tabindex', '-1');
}
// Initial setup
disableAriaHiddenFocusableElements();
// Observer for aria-hidden and clone changes
if (typeof MutationObserver !== 'undefined') {
var ariaObserver = new MutationObserver(function(mutations) {
var shouldUpdate = false;
mutations.forEach(function(mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') {
shouldUpdate = true;
}
if (mutation.type === 'childList') {
// Check if cloned slides were added/removed
for (var i = 0; i < mutation.addedNodes.length; i++) {
if (mutation.addedNodes[i].nodeType === 1 &&
(mutation.addedNodes[i].classList.contains('clone') ||
mutation.addedNodes[i].querySelector && mutation.addedNodes[i].querySelector('.clone'))) {
shouldUpdate = true;
break;
}
}
}
});
if (shouldUpdate) {
setTimeout(disableAriaHiddenFocusableElements, 10);
}
});
var targetNode = $('#metaslider_72286')[0];
if (targetNode) {
ariaObserver.observe(targetNode, {
attributes: true,
attributeFilter: ['aria-hidden'],
childList: true,
subtree: true
});
}
}
}
});
$(document).trigger('metaslider/initialized', '#metaslider_72286');
};
var timer_metaslider_72286 = function() {
var slider = !window.jQuery ? window.setTimeout(timer_metaslider_72286, 100) : !jQuery.isReady ? window.setTimeout(timer_metaslider_72286, 1) : metaslider_72286(window.jQuery);
};
timer_metaslider_72286();
//# sourceURL=metaslider-flex-slider-js-after
jQuery(function(){
var arrLiveStats=[];
var P_PREFIX="wsm";
jQuery(".if-js-closed").removeClass("if-js-closed").addClass("closed");
var wsmFnSiteLiveStats=function(){
jQuery.ajax({
type: "POST",
url: wsm_ajaxObject.ajax_url,
data: { action: 'liveSiteStats', requests: JSON.stringify(arrLiveStats), r: Math.random() }
}).done(function( strResponse ) {
if(strResponse!="No"){
arrResponse=JSON.parse(strResponse);
jQuery.each(arrResponse, function(key,value){
$element= document.getElementById(key);
oldValue=parseInt($element.getAttribute("data-value").replace(/,/g, ""));
diff=parseInt(value.replace(/,/g, ""))-oldValue;
$class="";
if(diff>=0){
diff="+"+diff;
}else{
$class="wmcRedBack";
}
$element.setAttribute("data-value",value);
$element.innerHTML=diff;
jQuery("#"+key).addClass($class).show().siblings(".wsmH2Number").text(value);
if(key=="SiteUserOnline")
{
var onlineUserCnt = arrResponse.wsmSiteUserOnline;
if(jQuery("#wsmSiteUserOnline").length)
{
jQuery("#wsmSiteUserOnline").attr("data-value",onlineUserCnt); jQuery("#wsmSiteUserOnline").next(".wsmH2Number").html("<a target=\"_blank\" href=\"admin.php?page=wsm_traffic&subPage=UsersOnline&subTab=summary\">"+onlineUserCnt+"</a>");
}
}
});
setTimeout(function() {
jQuery(".site_stats_panel .wsmBoxUPDdataTIP").removeClass("wmcRedBack").hide();
}, 1500);
}
});
}
if(arrLiveStats.length>0){
setInterval(wsmFnSiteLiveStats, 10000);
}});
var wcp_ajax = {"ajax_url":"https://www.androidpimp.com/wp-admin/admin-ajax.php","nonce":"312e88b2b1"};
//# sourceURL=wcp-frontend-js-extra
https://www.androidpimp.com/wp-content/plugins/WP%20Coupons%20Pro/assets/js/frontend.js
https://www.androidpimp.com/wp-content/plugins/ultimate-post/assets/js/ultp-youtube-gallery-block.js
var SLIMTOC_FRONT = {"progress":"1","spy":"1","resume":"1","minimap":"","copy":"1","heat":"1","read":"1","pid":"71062","nonce":"039a54fbcc","ajax":"https://www.androidpimp.com/wp-admin/admin-ajax.php","min":"5"};
//# sourceURL=slimtoc-js-extra
https://www.androidpimp.com/wp-content/plugins/slimtoc/assets/js/slimtoc-front.js
var prbAnalyticsData = {"ajaxUrl":"https://www.androidpimp.com/wp-admin/admin-ajax.php","nonce":"73bea39b34","subscribeNonce":"5e9c4a3d3f","settings":{"default_label_color":"#4a6cf7","default_title_color":"#111827","default_button_color":"#000000","utm_source":"myblog","utm_medium":"content","enable_cloaking":false,"enable_utm":false,"enable_weekly_email":false,"exclude_admins":false,"openai_api_key":"","qwen_api_key":"","admin_email":"tzahi.work@gmail.com"},"excludeAdmin":""};
//# sourceURL=prb-analytics-js-extra
https://www.androidpimp.com/wp-content/plugins/product-recommendation-block/js/analytics.js
https://www.androidpimp.com/wp-content/plugins/product-recommendation-block/js/prb-frontend.js
https://www.androidpimp.com/wp-content/plugins/wpdiscuz/assets/third-party/wpdccjs/wpdcc.js
var wpdiscuzEditorOptions = {
modules: {
toolbar: "",
counter: {
uniqueID: "",
commentmaxcount : 0,
replymaxcount : 0,
commentmincount : 1,
replymincount : 1,
},
},
wc_be_the_first_text: "Be the First to Comment!",
wc_comment_join_text: "Join the discussion",
theme: 'snow',
debug: 'error'
};
//# sourceURL=quill-js-before
https://www.androidpimp.com/wp-content/plugins/wpdiscuz/assets/third-party/quill/quill.min.js
https://www.androidpimp.com/wp-content/plugins/wpdiscuz/assets/js/wpd-editor.min.js
https://www.androidpimp.com/wp-content/plugins/wpdiscuz/assets/third-party/autogrow/jquery.autogrowtextarea.min.js
https://www.androidpimp.com/wp-content/plugins/wpdiscuz/assets/js/wpdiscuz.min.js
https://www.androidpimp.com/wp-content/plugins/wpdiscuz/assets/third-party/colorbox/jquery.colorbox.min.js
https://www.androidpimp.com/wp-content/plugins/wpdiscuz/assets/js/wpdiscuz-mu-frontend.min.js
https://www.androidpimp.com/wp-content/plugins/wpdiscuz/assets/third-party/lity/lity.min.js
var wpdiscuzUCObj = {"msgConfirmDeleteComment":"Are you sure you want to delete this comment?","msgConfirmCancelSubscription":"Are you sure you want to cancel this subscription?","msgConfirmCancelFollow":"Are you sure you want to cancel this follow?","additionalTab":"0"};
//# sourceURL=wpdiscuz-user-content-js-js-extra
https://www.androidpimp.com/wp-content/plugins/wpdiscuz/assets/js/wpdiscuz-user-content.min.js
https://www.androidpimp.com/wp-content/themes/smart-mag/js/jquery.mfp-lightbox.js
https://www.androidpimp.com/wp-content/themes/smart-mag/js/jquery.sticky-sidebar.js
var Bunyad = {"ajaxurl":"https://www.androidpimp.com/wp-admin/admin-ajax.php"};
//# sourceURL=smartmag-theme-js-extra
https://www.androidpimp.com/wp-content/themes/smart-mag/js/theme.js
https://www.androidpimp.com/wp-includes/js/comment-reply.min.js
window.wpcVitals={u:"https:\/\/www.androidpimp.com\/wp-admin\/admin-ajax.php?action=wpc_v",t:"63f95f8a89bb4b4e07cae3634ffde497378dbe79",s:1,m:1790078635};
function wpcVSend(e,b,c){try{var u=e.u,f=e.a||"";try{if(f&&localStorage.getItem("wpcVCh")==="a"){u=f;f=""}}catch(x){}if("hidden"===document.visibilityState&&navigator.sendBeacon&&navigator.sendBeacon(u,new Blob([b],{type:c})))return;var p=function(t,d){return fetch(t,{method:"POST",body:d,keepalive:!0,headers:{"Content-Type":c}})};var q=function(){if(f){p(f,b+"&fb=1");try{localStorage.setItem("wpcVCh","a")}catch(x){}}};if(!window.fetch||!f){navigator.sendBeacon?navigator.sendBeacon(u,new Blob([b],{type:c})):window.fetch&&p(u,b);return}p(u,b).then(function(r){r.ok||q()}).catch(q)}catch(x){}}
var webVitals=function(e){"use strict";let t=-1;const n=e=>{addEventListener("pageshow",(n=>{n.persisted&&(t=n.timeStamp,e(n))}),!0)},i=(e,t,n,i)=>{let r,s;return a=>{t.value>=0&&(a||i)&&(s=t.value-(r??0),(s||void 0===r)&&(r=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},r=e=>{requestAnimationFrame((()=>requestAnimationFrame(e)))},s=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},a=()=>s()?.activationStart??0,o=(e,n=-1)=>{const i=s();let r="navigate";return t>=0?r="back-forward-cache":i&&(document.prerendering||a()>0?r="prerender":document.wasDiscarded?r="restore":i.type&&(r=i.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},c=new WeakMap;function l(e,t){let n=c.get(t);return n||(n=new WeakMap,c.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}class d{t;i=0;o=[];h(e){if(e.hadRecentInput)return;const t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}const u=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{queueMicrotask((()=>{t(e.getEntries())}))}));return i.observe({type:e,buffered:!0,...n}),i}}catch{}},h=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let p=-1;const m=new Set,f=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,v=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(const e of m)e();isFinite(p)||(p="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",v,!0))}},g=()=>{if(p<0){const e=a(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find((t=>"hidden"===t.name&&t.startTime>=e))?.startTime;p=t??f(),addEventListener("visibilitychange",v,!0),addEventListener("prerenderingchange",v,!0),n((()=>{setTimeout((()=>{p=f()}))}))}return{get firstHiddenTime(){return p},onHidden(e){m.add(e)}}},T=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},b=[1800,3e3],y=(e,t={})=>{T((()=>{const s=g();let c,l=o("FCP");const d=u("paint",(e=>{for(const t of e)"first-contentful-paint"===t.name&&(d.disconnect(),t.startTime<s.firstHiddenTime&&(l.value=Math.max(t.startTime-a(),0),l.entries.push(t),c(!0)))}));d&&(c=i(e,l,b,t.reportAllChanges),n((n=>{l=o("FCP"),c=i(e,l,b,t.reportAllChanges),r((()=>{l.value=performance.now()-n.timeStamp,c(!0)}))})))}))},w=[.1,.25];let C=0,L=1/0,E=0;const M=e=>{for(const t of e)t.interactionId&&(L=Math.min(L,t.interactionId),E=Math.max(E,t.interactionId),C=E?(E-L)/7+1:0)};let S;const P=()=>S?C:performance.interactionCount??0;let I=0;class A{l=[];u=new Map;m;p;v(){I=P(),this.l.length=0,this.u.clear()}T(){const e=Math.min(this.l.length-1,Math.floor((P()-I)/50));return this.l[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this.l.at(-1);let n=this.u.get(e.interactionId);if(n||this.l.length<10||e.duration>t.L){if(n?e.duration>n.L?(n.entries=[e],n.L=e.duration):e.duration===n.L&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],L:e.duration},this.u.set(n.id,n),this.l.push(n)),this.l.sort(((e,t)=>t.L-e.L)),this.l.length>10){const e=this.l.splice(10);for(const t of e)this.u.delete(t.id)}this.p?.(n)}}}const F=e=>{const t=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{const i=h(e);let r=-1;const s=()=>{n(r),i()};addEventListener("visibilitychange",s,{once:!0,capture:!0}),r=t((()=>{removeEventListener("visibilitychange",s,{capture:!0}),i()}))}},k=[200,500];class B{m;h(e){this.m?.(e)}}const V=[2500,4e3],N=[800,1800],x=e=>{document.prerendering?T((()=>x(e))):"complete"!==document.readyState?addEventListener("load",(()=>x(e)),!0):setTimeout(e)};return e.CLSThresholds=w,e.FCPThresholds=b,e.INPThresholds=k,e.LCPThresholds=V,e.TTFBThresholds=N,e.onCLS=(e,t={})=>{const s=g();y(h((()=>{let a,c=o("CLS",0);const h=l(t,d),p=e=>{for(const t of e)h.h(t);h.i>c.value&&(c.value=h.i,c.entries=h.o,a())},m=u("layout-shift",p);m&&(a=i(e,c,w,t.reportAllChanges),s.onHidden((()=>{p(m.takeRecords()),a(!0)})),n((()=>{h.i=0,c=o("CLS",0),a=i(e,c,w,t.reportAllChanges),r(a)})),setTimeout(a))})))},e.onFCP=y,e.onINP=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=g();T((()=>{"interactionCount"in performance||S||(S=u("event",M,{durationThreshold:0}));let s,a=o("INP");const c=l(t,A),d=e=>{F((()=>{for(const t of e)c.h(t);const t=c.T();t&&t.L!==a.value&&(a.value=t.L,a.entries=t.entries,s())}))},h=u("event",d,{durationThreshold:t.durationThreshold??40});s=i(e,a,k,t.reportAllChanges),h&&(h.observe({type:"first-input",buffered:!0}),r.onHidden((()=>{d(h.takeRecords()),s(!0)})),n((()=>{c.v(),a=o("INP"),s=i(e,a,k,t.reportAllChanges)})))}))},e.onLCP=(e,t={})=>{T((()=>{const s=g();let c,d=o("LCP");const p=l(t,B),m=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)p.h(t),t.startTime<s.firstHiddenTime&&(d.value=Math.max(t.startTime-a(),0),d.entries=[t],c())},f=u("largest-contentful-paint",m);if(f){c=i(e,d,V,t.reportAllChanges);const s=h((()=>{m(f.takeRecords()),f.disconnect(),c(!0)})),a=e=>{e.isTrusted&&(F(s),removeEventListener(e.type,a,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])addEventListener(e,a,{capture:!0});n((n=>{d=o("LCP"),c=i(e,d,V,t.reportAllChanges),r((()=>{d.value=performance.now()-n.timeStamp,c(!0)}))}))}}))},e.onTTFB=(e,t={})=>{let r=o("TTFB"),c=i(e,r,N,t.reportAllChanges);x((()=>{const l=s();l&&(r.value=Math.max(l.responseStart-a(),0),r.entries=[l],c(!0),n((()=>{r=o("TTFB",0),c=i(e,r,N,t.reportAllChanges),c(!0)})))}))},e}({});!function(){"use strict";var e=window.wpcVitals;if(e&&e.u&&e.t&&window.webVitals&&navigator.sendBeacon&&!0!==navigator.webdriver){var t=Number(e.s)||1;if(!(t>1&&Math.random()>=1/t)){var HU=!1;["pointerdown","keydown","touchstart","wheel","scroll","mousemove"].forEach(function(ev){addEventListener(ev,function(){HU=!0},{once:!0,passive:!0,capture:!0})});var n={},i=!1,r=function(e){return function(t){n[e]=t.value}};try{webVitals.onLCP(r("lcp")),webVitals.onCLS(r("cls")),webVitals.onINP(r("inp")),webVitals.onTTFB(r("ttfb")),webVitals.onFCP(r("fcp"))}catch(e){}addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&a()}),!0),addEventListener("pagehide",a,!0),addEventListener("pageshow",(function(e){e.persisted&&(i=!1,n={})}),!0)}}function s(){try{var t=function(){try{return performance.getEntriesByType("navigation")[0]||null}catch(e){return null}}();if(t&&t.serverTiming&&t.serverTiming.length){for(var n=0,i=0;i<t.serverTiming.length;i++){var r=t.serverTiming[i];if("wpc-cache"===r.name)return"hit"===r.description?1:0;"wpc-mint"===r.name&&(n=Number(r.description)||0)}if(n>0)return Date.now()/1e3-n>300?1:0}var s=Number(e.m)||0;if(s>0&&Date.now()/1e3-s>300)return 1}catch(e){}return 0}function a(){if(HU&&!i){i=!0;try{var t="v=1&t="+encodeURIComponent(e.t)+(e.b?"&b=1":"")+"&d="+(Math.min(window.innerWidth||1024,window.screen&&screen.width||1024)<768?"m":"d")+"&e="+(r=navigator.userAgent,(/Firefox\//.test(r)?"f":/Chrome\/|Chromium\/|Edg\//.test(r)?"c":/Safari\//.test(r)&&/Version\//.test(r)?"s":"o")+"&h=")+s();null!=n.lcp&&(t+="&lcp="+Math.round(n.lcp)),null!=n.cls&&(t+="&cls="+Math.round(1e3*n.cls)),null!=n.inp&&(t+="&inp="+Math.round(n.inp)),null!=n.ttfb&&(t+="&ttfb="+Math.round(n.ttfb)),null!=n.fcp&&(t+="&fcp="+Math.round(n.fcp)),wpcVSend(e,t,"text/plain")}catch(e){}var r}}}();(function(){try{var e=window.wpcVitals;if(!e||!e.u||!e.t)return;if(navigator.webdriver)return;var t=Number(e.s)||1;if(Math.random()>=1/t)return;var n=window.matchMedia&&matchMedia("(max-width: 767.98px)").matches?"m":"d",i=Number(e.m)||0,r=function(){try{var t=performance.getEntriesByType("navigation")[0];if(t&&t.serverTiming&&t.serverTiming.length){for(var n=0,j=0;j<t.serverTiming.length;j++){var s=t.serverTiming[j];if("wpc-cache"===s.name)return"hit"===s.description?"1":"0";"wpc-mint"===s.name&&(n=Number(s.description)||0)}if(n>0)return Date.now()/1e3-n>300?"1":"0"}}catch(c){}return i&&Math.floor(Date.now()/1e3)-i>300?"1":"0"}(),o="t="+encodeURIComponent(e.t)+(e.b?"&b=1":"")+"&k=p&d="+n+"&h="+r,a=function(){try{wpcVSend(e,o,"application/x-www-form-urlencoded")}catch(c){}};var HU2=!1;["pointerdown","keydown","touchstart","wheel","scroll","mousemove"].forEach(function(ev){addEventListener(ev,function(){HU2=!0},{once:!0,passive:!0,capture:!0})});var s=!1,g=function(){HU2&&(s||(s=!0,a()))},L=function(){setTimeout(g,8e3)};addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&g()},!0),addEventListener("pagehide",g,!0),"complete"===document.readyState?L():addEventListener("load",L,{once:!0})}catch(c){}})();
(function(){try{if(!window.PerformanceObserver||!localStorage)return;if(window.wpcVitals&&window.wpcVitals.b)return;var e=0,t=function(){try{e>0&&localStorage.setItem("wpcVitalsYou",JSON.stringify({lcp:Math.round(e),t:Math.floor(Date.now()/1e3)}))}catch(n){}};new PerformanceObserver((function(t){var n=t.getEntries();n.length&&(e=n[n.length-1].startTime)})).observe({type:"largest-contentful-paint",buffered:!0}),addEventListener("load",(function(){setTimeout(t,2e3)}),{once:!0}),addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t()}),!0)}catch(n){}})();
How could you miss best OS? https://www.armbian.com/nanopi-r4s/
Hi.
I’m not sure it’s the best one. Just didn’t have the time to Test.