4 case stripos($_SERVER['HTTP_USER_AGENT'], 'android') > 0:
5 $agent = "android"; $touchscreen = true;
8 case stripos($_SERVER['HTTP_USER_AGENT'], 'iphone') > 0:
9 $agent = "iphone"; $touchscreen = true;
12 case stripos($_SERVER['HTTP_USER_AGENT'], 'ipod') > 0:
13 $agent = "ipod"; $touchscreen = true;
16 case stripos($_SERVER['HTTP_USER_AGENT'], 'ipad') > 0:
17 $agent = "ipad"; $touchscreen = true;
25 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
26 <html xmlns
="http://www.w3.org/1999/xhtml">
28 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8" />
30 <?php
if(in_array($agent, array("android", "ipad", "iphone", "ipad"))){ ?
>
31 <meta name
="viewport" content
="width=device-width,user-scalable=no" />
35 <link rel
="stylesheet" type
="text/css" href
="css/default.css">
36 <link rel
="stylesheet" type
="text/css" href
="css/ui.css">
38 <?php
if($touchscreen){ ?
>
39 <link rel
="stylesheet" type
="text/css" href
="css/touchscreen_tweaks.css">
43 <script type
="text/javascript" src
="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script
>
44 <script type
="text/javascript" src
="js/jquery.json-2.2.min.js"></script
>
45 <script type
="text/javascript" src
="js/util.js"></script
>
46 <script type
="text/javascript" src
="js/gateway.js"></script
>
47 <script type
="text/javascript" src
="js/front.js"></script
>
49 <?php
if(in_array($agent, array("android", "ipad", "iphone", "ipad"))){ ?
>
50 <script type
="text/javascript" src
="js/touchscreen_tweaks.js"></script
>
53 <script type
="text/javascript">
54 var agent
= '<?= $agent ?>';
55 var touchscreen
= <?
= ($touchscreen) ?
'true' : 'false' ?
>;
58 $
(document
).ready(function(){
59 if(touchscreen
) $
('#kiwi').addClass('touchscreen');
61 //#nick@irc.anonnet.org:6679+/#channel,##channel,&channel
62 var chans
= document
.location
.hash
.match(/[#&]+[^ ,\007]+/g);
63 if(chans
!= null && chans
.length
> 0) { init_data
.channel
= chans
.join(','); }
74 <div
class="box about">
76 <p
>An alternative to downloading an irc client
. This web app is the best thing you
'll use in the next couple years.</p>
77 <button class="about_close">Close</button>
80 <div class="connectwindow">
81 <form class="formconnectwindow">
82 <label for="nick">Nick</label>
83 <input type="text" class="nick" value="<?php if(isset($_GET['nick
'])) echo htmlentities($_GET['nick
']); ?>" /><br />
85 <span class="networkselection">
86 <?php if(isset($_GET['server
'])){ ?>
87 <input type="hidden" class="network" value="<?php if(isset($_GET['server
'])) echo htmlentities($_GET['server
']); ?>" />
89 <label for="network">Network</label>
90 <select class="network">
91 <?php if(1==1){ echo '<option value
="irc.anonnet.org">AnonNet
</option
>'; } ?>
92 <option value="irc.freenode.net">Freenode</option>
93 <option value="irc.dal.net">DALnet</option>
98 <button type="submit">Connect</button>
104 <div class="windowlist">
105 <div class="poweredby">Powered by kiwi</div>
109 <div class="userlist">
113 <div class="cur_topic"></div>
115 <div class="control">
116 <div class="msginput">
117 <div class="nick"><a href="#"></a>:</div>
118 <input type="text" name="kiwi_msginput" id="kiwi_msginput" />
120 <div class="plugins">
122 <li><a class="load_plugin_file">Load plugin file</a></li>
123 <li><a class="reload_css">Reload CSS</a></li>