Changeset 5362
- Timestamp:
- 06/19/09 08:24:57 (3 years ago)
- File:
-
- 1 edited
-
trunk/padre.perlide.org/irc.html (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/padre.perlide.org/irc.html
r5361 r5362 50 50 if (loc > 0) { 51 51 var val = window.location.toString().substr(loc + 1); 52 //alert(val);53 52 var pairs = val.split("&"); 54 //alert(pairs);55 //alert(pairs.length);56 53 var data = Array; 57 54 for (var i = 0; i < pairs.length; i++) { 58 55 var pair = pairs[i].split("="); 59 // alert(pair[0] + " = " + pair[1]);60 56 data[pair[0]] = pair[1]; 61 57 } 62 58 return data; 63 59 } else { 64 return ;60 return []; 65 61 } 66 62 } … … 68 64 </script> 69 65 <p> 70 Please select a nick name and click on one of the links.66 Please select a nickname and click on one of the links. 71 67 </p> 72 68 <form name="n"> … … 77 73 <!-- 78 74 todo: check values received on the url: 79 nick name,80 75 hash_key (maybe that should be host_channel instead of of our own special name) 81 76 82 77 redirect to selected url 83 have drop-down box with list of channels ?78 have drop-down box with list of channels or radio buttons ?? 84 79 show the localized channels first ? 85 better random nick generator86 80 87 if all the necessary in 88 81 if all the necessary input is available don't even show this page just redirec to 82 the mibbit service 83 89 84 --> 90 85 … … 97 92 } else { 98 93 var nick = Math.floor(Math.random()*10000); 99 document.forms.n.nickname.value = nick;94 document.forms.n.nickname.value = "user_" + nick; 100 95 } 101 96
Note: See TracChangeset
for help on using the changeset viewer.
