[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r14989: (ticket:92) Making TorStatus more noscript friendly (torstatus/trunk/web)
Author: kasimir
Date: 2008-06-06 01:05:50 -0400 (Fri, 06 Jun 2008)
New Revision: 14989
Modified:
torstatus/trunk/web/index.php
Log:
(ticket:92) Making TorStatus more noscript friendly
Modified: torstatus/trunk/web/index.php
===================================================================
--- torstatus/trunk/web/index.php 2008-06-06 04:55:16 UTC (rev 14988)
+++ torstatus/trunk/web/index.php 2008-06-06 05:05:50 UTC (rev 14989)
@@ -2114,14 +2114,18 @@
<form action="<?php echo $Self; ?>" method="post" name="search">
<input type="hidden" name="CSMod" value="Contains" />
<input type="hidden" name="CSField" value="Name" />
-<input type="text" class="searchbox" value="<?php echo ($CSInput)?htmlspecialchars($CSInput, ENT_QUOTES):"search for a router";?>" onfocus="javascript:if(this.value=='search for a router') { this.style.color = 'black';this.value=''; }" id="searchbox" name="CSInput"/><a href="javascript:document.search.submit();" class="searchbox"><img class="searchbox" alt="Search" src="/img/blank.gif" /></a><noscript><input type="submit" value="Search"/></noscript>
+<input type="text" class="searchbox" value="<?php echo ($CSInput)?htmlspecialchars($CSInput, ENT_QUOTES):"";?>" onfocus="javascript:if(this.value=='search for a router') { this.style.color = 'black';this.value=''; }" id="searchbox" name="CSInput"/><a href="javascript:document.search.submit();" class="searchbox" id="searchbutton"></a><noscript><input type="submit" value="Router Search"/></noscript>
</form>
</td></tr></table>
<?php if (!$CSInput) { ?>
<script type="text/javascript">
document.getElementById('searchbox').style.color = 'gray';
+ document.getElementById('searchbox').value = 'search for a router';
</script>
<?php } ?>
+<script type="text/javascript">
+ document.getElementById('searchbutton').innerHTML = '<img class="searchbox" alt="Search" src="/img/blank.gif" />';
+</script>
</div>
<div class="separator"></div>
<div class="mirrorbar">