Browse Source

Remove arquivo scrap-js.js

pull/1322/head
Edward Ribeiro 8 years ago
parent
commit
1e783e3217
  1. 35
      scrap-js.js

35
scrap-js.js

@ -1,35 +0,0 @@
{# <script language="javascript">
function setUpHumanTest() {
var myform = document.getElementsByTagName("myform");
console.debug('hello');
// var myforms = document.getElementsByTagName("form") ;
// for (var i=0; i&lt;myforms.length; i++) {
// addEvent(myforms[i], "focus", markAsHuman, false);
// addEvent(myforms[i], "click", markAsHuman, false);
// }
}
// Generic cross-browser code for attaching events to elements
// You should really have this in a separate common JS file
var addEvent;
if (document.addEventListener) {
addEvent = function(element, type, handler) {
element.addEventListener(type, handler, null);
if (element.href) element.href="javascript:void('');" ;
}
}
else if (document.attachEvent) {
addEvent = function(element, type, handler) {
element.attachEvent("on" + type, handler);
if (element.href) element.href="javascript:void('');" ;
}
}
else {
addEvent = new Function; // not supported
}
addEvent(window, "load", setUpHumanTest, false);
</script> #}scr
Loading…
Cancel
Save