Template:TestTemplate: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<html> | |||
<script type="text/javascript"> | |||
{{ | $(document).ready(function() { | ||
var content = "</html>{{{1}}}<html>"; | |||
var count = countItems(content,"UNIPROBE"); | |||
</ | }); | ||
function countItems(arr, what){ | |||
var count= 0, i; | |||
while((i= arr.indexOf(what, i))!= -1){ | |||
++count; | |||
++i; | |||
} | |||
return count; | |||
} | |||
</script> | |||
</html> |
Revision as of 17:01, 11 June 2013