[] =e))for(d=Math.floor(128*(1*d-p)/e),0>d&&(d=0),c=Math.ceil(128*(1*c-p)/e),127
wikiHow: How-to instructions you can trust. =g||g>b?(c&&(clearTimeout(c),c=null),d=f,a.apply()):c||(c=setTimeout(e,g))}}function w(){var a=!1,b=window.innerHeight||document.documentElement.clientHeight,c;for(c in g){var d=g[c];if(!d.isLoaded){a=d;var e=a.element.getBoundingClientRect(),f={top:e.top,bottom:e.bottom};0==a.lastTop-e.top&&window.scrollY!=a.lastY&&(f.top-=window.scrollY,f.bottom-=window.scrollY);a.lastTop=e.top;a.lastY=window.scrollY;a=f;e=b;f=52;var h=2*e;f-=h;e+=h;(0==a.top&&0==a.bottom?0:a.top>=f&&a.top=f&&a.bottom<=e||a.top=e)&&d.load();a=!0}}!a&&g.length&&(window.removeEventListener("scroll",l),l=null) }function r(a){if(a&&a.element){var b=!0;a.element.className||(b=!1);-1==a.element.className.indexOf("content-fill")&&(b=!1);if(b&&document.addEventListener&&a.finishedLoadingEvent){a.loaderRemoved=!1;b=document.createElement("div");b.className="loader";for(var c=0;3>c;c++){var d=document.createElement(“div”);d.className=”loader-dot”;b.appendChild(d)}var e=document.createElement(“div”);e.className=”loading-container”;e.appendChild(b);a.element.parentElement.insertAdjacentElement(“afterbegin”,e);a.element.addEventListener(a.finishedLoadingEvent,function(){a.loadedCallback&&a.loadedCallback();0==a.loaderRemoved&&(this.parentElement.removeChild(e),a.loaderRemoved=!0,”undefined”!==typeof a.element.classList&&a.element.classList.remove(“img-loading-hide”));a.alt&&(a.element.alt=a.alt,”undefined”!==typeof a.element.classList&&a.element.classList.remove(“img-loading-alt”))});a.errorEvent&&a.element.addEventListener(a.errorEvent,function(){a.alt&&(a.element.alt=a.alt)})}else a.alt&&(a.element. alt=a.alt),”undefined”!==typeof a.element.classList&&a.element.classList.remove(“img-loading-hide”)}}function x(a){if(!a)return””;if(!h)return a;var b=a.split(“.”).pop();”jpg”!==b&&”png”!==b||!a.match(/images(_[a-z]{2})?/thumb//)||a.match(/(.[a-zA-Z]+){2}$/)||(a+=”.webp”);return a}function L(a){this.isLoaded=!1;this.element=a;k||(this.lastY=window.scrollY,this.lastTop=a.getBoundingClientRect().top);this.src=a.getAttribute(“data-src”);this.load=function(){this.element.setAttribute(“src”,this.src);this.isLoaded=!0;this.finishedLoadingEvent=”loadeddata”;r(this)}}function D(a){this.isLoaded=!1;this.element=a;k||m||(this.lastTop=a.getBoundingClientRect().top,this.lastY=window.scrollY);this.alt=a.alt;a.alt=””;this.finishedLoadingEvent=”load”;this.errorEvent=”error”;if(n){var b=a.getAttribute(“data-srclarge”);null!=b&&(this.src=b)}this.src||(this.src=a.getAttribute(“data-src”));1!=a.getAttribute(“data-nowebp”)&&(this.src=x(this.src));a&&void 0!==a.classList&&a.classList.add( “img-loading-hide”);this.load=function(){this.element.setAttribute(“src”,this.src);this.isLoaded=!0;r(this)}}function M(a){this.isLoaded=!1;this.element=a;k||(this.lastTop=a.getBoundingClientRect().top,this.lastY=window.scrollY);this.finishedLoadingEvent=”loadeddata”;this.isPlaying=!1;this.src=”https://www.wikihow.com/video”+this.element.getAttribute(“data-src”);this.poster=this.element.getAttribute(“data-poster”);(this.poster=x(this.poster))&&”jpg”==this.poster.split(“.”).pop()&&h&&(this.poster+=”.webp”);this.noAutoplay=this.element.getAttribute(“data-noautoplay”);this.play=function(){this.element.play();this.isPlaying=!0};this.pause=function(){this.element.pause();this.isPlaying=!1};this.load=function(){this.element.setAttribute(“poster”,this.poster);!E||this.noAutoplay||!n&&!0!==window.wgIsMainPage?this.finishedLoadingEvent=null:(this.element.setAttribute(“src”,this.src),this.play());this.isLoaded=!0;this.noAutoplay||r(this)}}function t(a){var b=document.getElementById(a);if(b)if(h ||F){a=!1;var c=null,d=b.nodeName.toLowerCase();if(“img”===d)c=new D(b),m?(d=c,d.element.classList.remove(“img-loading-hide”),d.element.classList.add(“img-loading-alt”),d.element.setAttribute(“loading”,”lazy”),d.load()):k?p(c.element):a=!0;else if(“video”===d)c=new M(b),k?p(c.element):a=!0;else if(“iframe”===d)c=new L(b),k?p(c.element):a=!0;else if(“picture”===d)if(d=b.getElementsByTagName(“img”)[0],m){u?(d.width=d.dataset.width,d.height=d.dataset.height):(d.width=d.dataset.widthlarge,d.height=d.dataset.heightlarge);d.src=d.dataset.src;d=b.getElementsByTagName(“source”);for(var e=0;e