You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
931 B
JavaScript
1 line
931 B
JavaScript
jQuery((function(){jQuery("#competitor_url").length&&jQuery("#competitor_url").on("keyup",(function(e){if("Enter"===e.key){if(""===e.target.value)return;e.preventDefault(),document.querySelector(".rank-math-recheck").click(),document.querySelector("#competitor_url").blur()}})).on("input",(function(e){""===e.target.value?document.querySelector(".rank-math-recheck").disabled=!0:document.querySelector(".rank-math-recheck").disabled=!1})).trigger("input"),jQuery("#rank-math-print-results").on("click",(function(e){var t=window.location.href;-1===(t=t.split("#")[0]).indexOf("?")?t+="?":t+="&";var n=this.classList;n.add("print-loading","disabled");var r=document.createElement("iframe");r.style.display="none",r.setAttribute("src",t+"print=1"),document.body.appendChild(r),r.addEventListener("load",(function(){setTimeout((function(){r.contentWindow.print(),n.remove("print-loading","disabled")}),1e3)})),e.preventDefault()}))})); |