• R/O
  • HTTP
  • SSH
  • HTTPS

keitairc: Commit

keitaircメインレポジトリ


Commit MetaInfo

Révision172988489e8dd6cc453f617a63b68f1be740f875 (tree)
l'heure2010-12-02 01:53:28
AuteurISHIKAWA Mutsumi <ishikawa@hanz...>
CommiterISHIKAWA Mutsumi

Message de Log

websocket closed indicate

Change Summary

Modification

--- a/data/public/webkit.css
+++ b/data/public/webkit.css
@@ -22,6 +22,10 @@ body > * {
2222 background: url(stripe.png) #c5ccd3;
2323 }
2424
25+body.ws_closed > * {
26+ background: pink;
27+}
28+
2529 body > .current {
2630 display: block !important;
2731 }
--- a/data/public/webkit.js
+++ b/data/public/webkit.js
@@ -128,11 +128,11 @@ jQuery(document).ready(function($) {
128128 ws = new WebSocket('ws://' + location.host + '/' + session_id + '/push/' + cid);
129129 ws.addEventListener("open",
130130 function () {
131- /* alert('open'); */
131+ $('body').removeClass('ws_closed');
132132 },false);
133133 ws.addEventListener("close",
134134 function () {
135- /* alert('close') */
135+ $('body').addClass('ws_closed');
136136 }, false);
137137 ws.addEventListener("message",
138138 function (e) {
Afficher sur ancien navigateur de dépôt.