Active Users
<html>
<head>
    <title>Chatroom Active Users</title>
    <!-- © James Kanjo 2011 -->
    <style type="text/css">
        a {text-decoration: none; font-style: italic;}
    </style>
</head>
<body>
    <script type="text/javascript">
        <!--
        /* Remove duplicate elements from array function taken from:
        http://www.martienus.com/code/javascript-remove-duplicates-from-array.html
        */
        function unique(a) {
            var r = new Array();
            o:for(var i = 0, n = a.length; i < n; i++) {
                for(var x = 0, y = r.length; x < y; x++) {
                    if(r[x]==a[i]) continue o;
                }
                r[r.length] = a[i];
            }
            return r;
        }
        //-->
 
        var string_users = unescape(window.location.hash);
        var users = new Array();
        var tmp_count = 0;
 
        while (0<=string_users.search(/##/)) {
            string_users = string_users.substring(string_users.search(/##/)+2);
            users[tmp_count] = string_users.substring(0);
            if (0<=string_users.search(/##/))
                users[tmp_count] = string_users.substring(0,string_users.search(/##/));
            tmp_count = tmp_count+1;
        }
 
        users = unique(users);
        for (tmp_count=0;tmp_count<=users.length-1;tmp_count++) {
            document.write('<a href="http://www.wikidot.com/user:info/' + users[tmp_count].substring(0,users[tmp_count].search(/#/)) + '" target="_top">' + users[tmp_count].substring(users[tmp_count].search(/#/)+1) + '</a><br />');
        }
    </script>
</body>
</html>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License