Mindless Banter 79 – Q&A [PODCAST]

Mindless Banter 79 – Q&A [PODCAST] | Survival Life <![CDATA[ window._wpemojiSettings = {"baseUrl":"https://s.w.org/images/core/emoji/13.1.0/72×72/","ext":".png","svgUrl":"https://s.w.org/images/core/emoji/13.1.0/svg/","svgExt":".svg","source":{"concatemoji":"https://survivallife.com/wp-includes/js/wp-emoji-release.min.js?ver=5.8.3"}}; !function(e,a,t){var n,r,o,i=a.createElement("canvas"),p=i.getContext&&i.getContext("2d");function s(e,t){var a=String.fromCharCode;p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,e),0,0);e=i.toDataURL();return p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,t),0,0),e===i.toDataURL()}function c(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(o=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},r=0;r = 2) {show_wpcp_message(alertMsg_IMG);return false;} if (elemtype != “TEXT”) { if (smessage !== “” && e.detail == 2) show_wpcp_message(smessage); if (isSafari) return true; else return false; } } ////////////////////////////////////////// function disable_copy_ie() { var e = e || window.event; var elemtype = window.event.srcElement.nodeName; elemtype = elemtype.toUpperCase(); if(wccp_free_iscontenteditable(e)) return true; if (elemtype == “IMG”) {show_wpcp_message(alertMsg_IMG);return false;} if (elemtype != “TEXT” && elemtype != “TEXTAREA” && elemtype != “INPUT” && elemtype != “PASSWORD” && elemtype != “SELECT” && elemtype != “OPTION” && elemtype != “EMBED”) { return false; } } function reEnable() { return true; } document.onkeydown = disableEnterKey; document.onselectstart = disable_copy_ie; if(navigator.userAgent.indexOf(‘MSIE’)==-1) { document.onmousedown = disable_copy; document.onclick = reEnable; } function disableSelection(target) { //For IE This code will work if (typeof target.onselectstart!=”undefined”) target.onselectstart = disable_copy_ie; //For Firefox This code will work else if (typeof target.style.MozUserSelect!=”undefined”) {target.style.MozUserSelect=”none”;} //All other (ie: Opera) This code will work else target.onmousedown=function(){return false} target.style.cursor = “default”; } //Calling the JS function directly just after body load window.onload = function(){disableSelection(document.body);}; //////////////////special for safari Start//////////////// var onlongtouch; var timer; var touchduration = 1000; //length of time we want the user to touch before we do something var elemtype = “”; function touchstart(e) { var e = e || window.event; // also there is no e.target property in IE. // instead IE uses window.event.srcElement var target = e.target || e.srcElement; elemtype = window.event.srcElement.nodeName; elemtype = elemtype.toUpperCase(); if(!wccp_pro_is_passive()) e.preventDefault(); if (!timer) { timer = setTimeout(onlongtouch, touchduration); } } function touchend() { //stops short touches from firing the event if (timer) { clearTimeout(timer); timer = null; } onlongtouch(); } onlongtouch = function(e) { //this will clear the current selection if anything selected if (elemtype != “TEXT” && elemtype != “TEXTAREA” && elemtype != “INPUT” && elemtype != “PASSWORD” && elemtype != “SELECT” && elemtype != “EMBED” && elemtype != “OPTION”) { if (window.getSelection) { if (window.getSelection().empty) { // Chrome window.getSelection().empty(); } else if (window.getSelection().removeAllRanges) { // Firefox window.getSelection().removeAllRanges(); } } else if (document.selection) { // IE? document.selection.empty(); } return false;…

Continue reading

Leave a Reply

Your email address will not be published. Required fields are marked *