diff --git a/static/css/broadcast.css b/static/css/broadcast.css index 3f47b77bb..0aeeb207a 100644 --- a/static/css/broadcast.css +++ b/static/css/broadcast.css @@ -17,7 +17,7 @@ #timeslider-left { position: absolute; left:0px; - background-image: url(/static/img/timeslider_left.png); + background-image: url(../../static/img/timeslider_left.png); width: 134px; height: 63px; } @@ -26,7 +26,7 @@ position: absolute; top:0px; right:-2px; - background-image: url(/static/img/timeslider_right.png); + background-image: url(../../static/img/timeslider_right.png); width: 155px; height: 63px; } @@ -38,7 +38,7 @@ height: 63px; margin-left: 9px; margin-right: 9px; - background-image: url(/static/img/timeslider_background.png); + background-image: url(../../static/img/timeslider_background.png); } div#timeslider #timeslider-slider { @@ -52,7 +52,7 @@ div#timeslider #timeslider-slider { div#ui-slider-handle { width: 13px; height: 61px; - background-image: url(/static/img/crushed_current_location.png); + background-image: url(../../static/img/crushed_current_location.png); cursor: pointer; -moz-user-select: none; -khtml-user-select: none; @@ -62,7 +62,7 @@ div#ui-slider-handle { left: 0; } * html div#ui-slider-handle { /* IE 6/7 */ - background-image: url(/static/img/current_location.gif); + background-image: url(../../static/img/current_location.gif); } div#ui-slider-bar { @@ -79,7 +79,7 @@ div#ui-slider-bar { } div#timeslider div#playpause_button { - background-image: url(/static/img/crushed_button_undepressed.png); + background-image: url(../../static/img/crushed_button_undepressed.png); width: 47px; height: 47px; position: absolute; @@ -88,7 +88,7 @@ div#timeslider div#playpause_button { } div#timeslider div#playpause_button div#playpause_button_icon { - background-image: url(/static/img/play.png); + background-image: url(../../static/img/play.png); width: 47px; height: 47px; position: absolute; @@ -96,14 +96,14 @@ div#timeslider div#playpause_button div#playpause_button_icon { left:0px; } * html div#timeslider div#playpause_button div#playpause_button_icon { - background-image: url(/static/img/play.gif); /* IE 6/7 */ + background-image: url(../../static/img/play.gif); /* IE 6/7 */ } div#timeslider div#playpause_button div.pause#playpause_button_icon { - background-image: url(/static/img/pause.png); + background-image: url(../../static/img/pause.png); } * html div#timeslider div#playpause_button div.pause#playpause_button_icon { - background-image: url(/static/img/pause.gif); /* IE 6/7 */ + background-image: url(../../static/img/pause.gif); /* IE 6/7 */ } div #timeslider div#steppers div#leftstar { @@ -112,7 +112,7 @@ div #timeslider div#steppers div#leftstar { top: 8px; width:30px; height:21px; - background: url(/static/img/stepper_buttons.png) 0px 44px; + background: url(../../static/img/stepper_buttons.png) 0px 44px; overflow:hidden; } @@ -122,7 +122,7 @@ div #timeslider div#steppers div#rightstar { top: 8px; width:29px; height:21px; - background: url(/static/img/stepper_buttons.png) 29px 44px; + background: url(../../static/img/stepper_buttons.png) 29px 44px; overflow:hidden; } @@ -132,7 +132,7 @@ div #timeslider div#steppers div#leftstep { top: 33px; width:30px; height:21px; - background: url(/static/img/stepper_buttons.png) 0px 22px; + background: url(../../static/img/stepper_buttons.png) 0px 22px; overflow:hidden; } @@ -142,20 +142,20 @@ div #timeslider div#steppers div#rightstep { top: 33px; width:29px; height:21px; - background: url(/static/img/stepper_buttons.png) 29px 22px; + background: url(../../static/img/stepper_buttons.png) 29px 22px; overflow:hidden; } #timeslider div.star { position: absolute; top: 40px; - background-image: url(/static/img/star.png); + background-image: url(../../static/img/star.png); width: 15px; height: 16px; cursor: pointer; } * html #timeslider div.star { - background-image: url(/static/img/star.gif); /* IE 6/7 */ + background-image: url(../../static/img/star.gif); /* IE 6/7 */ } #timeslider div#timer { diff --git a/static/js/pad2.js b/static/js/pad2.js index e359b0443..24aa182b2 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -60,7 +60,16 @@ function randomString() { function handshake() { - socket = io.connect(); + var loc = document.location; + //get the correct port + var port = loc.port == "" ? (loc.protocol == "https:" ? 443 : 80) : loc.port; + //create the url + var url = loc.protocol + "//" + loc.hostname + ":" + port + "/"; + //find out in which subfolder we are + var resource = loc.pathname.substring(0,loc.pathname.indexOf("/p/")) + "/socket.io"; + + //connect + socket = io.connect(url, {resource: resource}); socket.on('connect', function(){ var padId= document.URL.substring(document.URL.lastIndexOf("/")+1); diff --git a/static/pad.html b/static/pad.html index 5b263648d..abdfa238c 100644 --- a/static/pad.html +++ b/static/pad.html @@ -9,9 +9,9 @@ Etherpad Lite - + - - - - - + + @@ -50,38 +31,38 @@ var clientVars = {}; // ]]> @@ -89,12 +70,12 @@ var clientVars = {}; // ]]> diff --git a/static/timeslider.html b/static/timeslider.html index 3f4192d19..2c369b366 100644 --- a/static/timeslider.html +++ b/static/timeslider.html @@ -8,10 +8,10 @@ Etherpad Lite Timeslider - - + + - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + @@ -166,7 +172,7 @@
Etherpad v1.1 Etherpad is Etherpad is free software
@@ -196,14 +202,14 @@ - + - +
Public Pad  
@@ -251,10 +257,10 @@ Link to this version
Link to read-only page
Edit this pad

Download as

- HTML
- Plain text
- Microsoft Word
- PDF + HTML
+ Plain text
+ Microsoft Word
+ PDF