]> code.citadel.org Git - citadel.git/commitdiff
Now we have to click on the info link to opening
authorThierry Pasqualier <thierry@uncensored.citadel.org>
Mon, 12 Mar 2007 22:10:51 +0000 (22:10 +0000)
committerThierry Pasqualier <thierry@uncensored.citadel.org>
Mon, 12 Mar 2007 22:10:51 +0000 (22:10 +0000)
the info panel. Then click on a link to close it.

webcit/roomops.c
webcit/static/webcit.css

index 2c391f7e8f3d2e38b621499f454fa87407d51b90..f71830a61fb33c459e86b6d78ac99b4df5ab8914 100644 (file)
@@ -278,11 +278,15 @@ void readinfo(void)
        serv_getln(buf, sizeof buf);
        if (buf[0] == '1') {
                 wprintf("<div class=\"infos\" "
-                "onmouseover=\"javascript:document.getElementById('room_infos').style.display='block';\" "
-                "onmouseout=\"javascript:document.getElementById('room_infos').style.display='none';\" "
-                "> ");
+                "onclick=\"javascript:document.getElementById('room_infos').style.display='block';\" "
+                ">");
                 wprintf(_("Room info"));
-                wprintf("</div><div id=\"room_infos\">");
+                wprintf("</div><div id=\"room_infos\" > "
+                "<p class=\"close_infos\" "
+                "onclick=\"javascript:document.getElementById('room_infos').style.display='none';\" "
+                ">");
+               wprintf(_("Close window"));
+               wprintf("</p>");
                 fmout("CENTER");
                 wprintf("</div>");
        }
index 7a69061ef78c6ff51bcb979d40a7872bd59c36db..e4fd4ccb2d0aac912ea5cee8addfd5974ca7b447 100644 (file)
@@ -94,6 +94,7 @@ body {
        color: #FFFFEE;
         text-align: center;
         padding: 2px;
+       cursor: help;
 }
 
 #room_infos {
@@ -109,6 +110,14 @@ body {
         background: white;
 }
 
+#room_infos .close_infos {
+       cursor: pointer;
+        font-size: 8pt;
+       color: black;
+        text-align: right;
+        padding: 2px;
+       margin-top: 5px;
+}
 
 #banner ul {
         float: right;