Qwebirc
De Hack-it.org.
T2 (discuter | contributions) |
T2 (discuter | contributions) |
||
| Ligne 117 : | Ligne 117 : | ||
Emiliano Romero | Emiliano Romero | ||
</pre> | </pre> | ||
| + | ==Miroriser== | ||
| + | 6irc a fait un "webchat round robin" sur webchat.6irc.net<br> | ||
| + | Voici les sources | ||
| + | <pre> | ||
| + | <!DOCTYPE html> | ||
| + | <html> | ||
| + | <head> | ||
| + | <meta http-equiv="Content-type" content="text/html; charset=utf-8"> | ||
| + | <title>Best mirror selection... please wait a moment</title> | ||
| + | <script type="text/javascript"> | ||
| + | parameters = "/"; | ||
| + | |||
| + | mirrors = { | ||
| + | "http://sundance.webchat.6irc.net": "http://sundance.webchat.6irc.net/images/qwebircsmall.png", | ||
| + | "http://aus.webchat.6irc.net": "http://aus.webchat.6irc.net/images/qwebircsmall.png", | ||
| + | "http://minimal.webchat.6irc.net": "http://minimal.webchat.6irc.net/images/qwebircsmall.png", | ||
| + | |||
| + | } | ||
| + | imgloaded = 0; | ||
| + | |||
| + | window.onload = function() { | ||
| + | str = ""; | ||
| + | for (i in mirrors) { | ||
| + | str += "<img src='"+mirrors[i]+"?lid="+Math.random()+"' alt='' onload='loaded(\""+i+ | ||
| + | "\")' style='width:1px;height:1px;'>"; | ||
| + | } | ||
| + | document.getElementById("container").innerHTML = str; | ||
| + | } | ||
| + | |||
| + | function loaded(site) { | ||
| + | if (!imgloaded) { | ||
| + | document.location.replace(site+parameters); | ||
| + | imgloaded = !imgloaded; | ||
| + | } | ||
| + | } | ||
| + | </script> | ||
| + | <meta http-equiv='Refresh' content='3;URL=http://sundance.webchat.6irc.net/'> | ||
| + | </head> | ||
| + | <body> | ||
| + | <div id="container"></div> | ||
| + | </body> | ||
| + | </pre> | ||
==Forks== | ==Forks== | ||
* [[Iris]] | * [[Iris]] | ||
