Initial node code.
[KiwiIRC.git] / embed.php
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>kiwi</title>
6 <link rel="stylesheet" type="text/css" href="css/default.css">
7 <link rel="stylesheet" type="text/css" href="css/ui.css">
8
9 <?php
10
11 switch(true){
12 case stripos($_SERVER['HTTP_USER_AGENT'], 'android') > 0:
13 case stripos($_SERVER['HTTP_USER_AGENT'], 'iphone') > 0:
14 case stripos($_SERVER['HTTP_USER_AGENT'], 'ipod') > 0:
15 ?>
16 <meta name="viewport" content="width=device-width,user-scalable=no" />
17
18 <?php
19 break;
20
21 }
22 ?>
23
24 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
25 <script type="text/javascript" src="js/jquery.json-2.2.min.js"></script>
26 <script type="text/javascript" src="js/util.js"></script>
27 <script type="text/javascript" src="js/gateway.js"></script>
28 <script type="text/javascript" src="js/front.js"></script>
29 <script type="text/javascript">
30
31 var init_data = {};
32
33 $(document).ready(function(){
34
35 //#nick@irc.anonnet.org:6679+/#channel,##channel,&channel
36 var chans = document.location.hash.match(/[#&]+[^ ,\007]+/g);
37 if(chans != null && chans.length > 0) { init_data.channel = chans.join(','); }
38
39 front.init();
40 });
41 </script>
42
43 </head>
44
45 <body>
46
47 <div id="kiwi">
48 <div class="connectwindow">
49 <form class="formconnectwindow">
50 <label for="nick">Nick</label>
51 <input type="text" class="nick" value="<?php if(isset($_GET['nick'])) echo htmlentities($_GET['nick']); ?>" /><br />
52
53 <span class="networkselection">
54 <?php if(isset($_GET['server'])){ ?>
55 <input type="hidden" class="network" value="<?php if(isset($_GET['server'])) echo htmlentities($_GET['server']); ?>" />
56 <?php } else { ?>
57 <label for="network">Network</label>
58 <select class="network">
59 <option value="irc.anonnet.org">AnonNet</option>
60 <option value="irc.freenode.net">Freenode</option>
61 <option value="irc.dal.net">DALnet</option>
62
63 </select>
64 <?php } ?>
65 </span>
66 <button type="submit">Connect</button>
67 </form>
68 </div>
69
70
71
72
73 <div class="windowlist">
74 <ul></ul>
75 <div class="poweredby">Powered by kiwi</div>
76 </div>
77
78 <div class="userlist">
79 <ul></ul>
80 </div>
81
82
83 <div class="control">
84 <div class="msginput">
85 <div class="nick"><a href="#"></a>:</div>
86 <input type="text" name="kiwi_msginput" id="kiwi_msginput" />
87 </div>
88 <div class="plugins">
89 <ul>
90 <li><a class="load_plugin_file">Load plugin file</a></li>
91 </ul>
92 </div>
93 </div>
94 </div>
95
96 </body>
97 </html>