Personal tools

Template:TestTemplate: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
{{{1}}} {{{2}}} {{{3}}} {{{4}}}
<html>
<script type="text/javascript">


{{#arraymap:{{{3}}}|,|$|
$(document).ready(function() {
<span>
var content = "</html>{{{1}}}<html>";
{{Test|$}}  
var count = countItems(content,"UNIPROBE");
</span>
});
|}}
 
 
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