mirror of https://github.com/interlegis/sapl.git
Edward Ribeiro
8 years ago
1 changed files with 0 additions and 35 deletions
@ -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<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…
Reference in new issue