mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Change all absolute paths to relative paths, fixed #13
This commit is contained in:
parent
2dc3e34951
commit
aac1e25c9e
8 changed files with 77 additions and 61 deletions
|
@ -1,3 +1,19 @@
|
||||||
|
/**
|
||||||
|
* 2011 Peter 'Pita' Martischka
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS-IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
var settings = require('./settings');
|
var settings = require('./settings');
|
||||||
var async = require('async');
|
var async = require('async');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
@ -112,7 +128,7 @@ exports.padJS = function(req, res)
|
||||||
var quote = item.search("_Q") != -1;
|
var quote = item.search("_Q") != -1;
|
||||||
|
|
||||||
//read the included file
|
//read the included file
|
||||||
fs.readFile(".." + filename, "utf-8", function(err, data)
|
fs.readFile("../" + filename, "utf-8", function(err, data)
|
||||||
{
|
{
|
||||||
//compress the file
|
//compress the file
|
||||||
if(type == "JS")
|
if(type == "JS")
|
||||||
|
|
|
@ -29,5 +29,5 @@ This file must be valid JSON. But comments are allowed
|
||||||
|
|
||||||
/* if true, all css & js will be minified before sending to the client. This will improve the loading performance massivly,
|
/* if true, all css & js will be minified before sending to the client. This will improve the loading performance massivly,
|
||||||
but makes it impossible to debug the javascript/css */
|
but makes it impossible to debug the javascript/css */
|
||||||
"minify" : true
|
"minify" : false
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ a { cursor: pointer !important; }
|
||||||
|
|
||||||
/*span { padding-bottom: 1px; }/* padding-top: 1px; }*/
|
/*span { padding-bottom: 1px; }/* padding-top: 1px; }*/
|
||||||
|
|
||||||
/*div { background: transparent url(/static/img/acecarets/default.gif) repeat-y left top }*/
|
/*div { background: transparent url(static/img/acecarets/default.gif) repeat-y left top }*/
|
||||||
|
|
||||||
/*tt { padding-left: 3px; padding-right: 3px; margin-right: -3px; margin-left: -3px; }*/
|
/*tt { padding-left: 3px; padding-right: 3px; margin-right: -3px; margin-left: -3px; }*/
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* @override
|
/* @override
|
||||||
http://localhost:9001/static/css/pad_lite.css */
|
static/css/pad_lite.css */
|
||||||
|
|
||||||
*,html,body,p{ margin: 0; padding: 0; }
|
*,html,body,p{ margin: 0; padding: 0; }
|
||||||
.clear { clear: both; }
|
.clear { clear: both; }
|
||||||
|
@ -23,7 +23,7 @@ body, textarea { font-family: Helvetica, Arial, sans-serif; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#sharebutton {
|
#sharebutton {
|
||||||
background: url(/static/img/inviteshare2.gif) no-repeat 0 -31px;
|
background: url(static/img/inviteshare2.gif) no-repeat 0 -31px;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
top: 6px;
|
top: 6px;
|
||||||
|
@ -163,7 +163,7 @@ OLD
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* @override
|
/* @override
|
||||||
http://localhost:9001/static/css/pad_lite.css */
|
static/css/pad_lite.css */
|
||||||
|
|
||||||
#padpage {
|
#padpage {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -190,13 +190,13 @@ a#backtoprosite, #accountnav {
|
||||||
a#backtoprosite, #accountnav a { color: #cde7ff; text-decoration: underline; }
|
a#backtoprosite, #accountnav a { color: #cde7ff; text-decoration: underline; }
|
||||||
|
|
||||||
a#backtoprosite { padding-left: 20px; left: 6px;
|
a#backtoprosite { padding-left: 20px; left: 6px;
|
||||||
background: url(/static/img/protop.gif) no-repeat -5px -6px; }
|
background: url(static/img/protop.gif) no-repeat -5px -6px; }
|
||||||
#accountnav { right: 30px; color: #fff; }
|
#accountnav { right: 30px; color: #fff; }
|
||||||
|
|
||||||
#topbarcenter { margin-left: 150px; margin-right: 150px; text-align:center;}
|
#topbarcenter { margin-left: 150px; margin-right: 150px; text-align:center;}
|
||||||
a#topbaretherpad { margin-left: auto; margin-right: auto; display: block; width: 103px;
|
a#topbaretherpad { margin-left: auto; margin-right: auto; display: block; width: 103px;
|
||||||
position: relative; top: 3px; height: 0; padding-top: 20px;
|
position: relative; top: 3px; height: 0; padding-top: 20px;
|
||||||
/* background: url(/static/img/padtop5.gif) no-repeat -397px -3px; overflow: hidden; */
|
/* background: url(static/img/padtop5.gif) no-repeat -397px -3px; overflow: hidden; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -208,7 +208,7 @@ a#topbaretherpad { margin-left: auto; margin-right: auto; display: block; width:
|
||||||
#Licensing {font-size: 1.2em; color: white;float:left;margin-top:4px;margin-left:-75px; text-decoration: none; }
|
#Licensing {font-size: 1.2em; color: white;float:left;margin-top:4px;margin-left:-75px; text-decoration: none; }
|
||||||
#fullscreen {font-size: 1.2em; color: white;float:right;margin-top:4px;margin-right:-120px; text-decoration: none; }
|
#fullscreen {font-size: 1.2em; color: white;float:right;margin-top:4px;margin-right:-120px; text-decoration: none; }
|
||||||
|
|
||||||
.propad a#topbaretherpad { background: url(/static/img/protop.gif) no-repeat -397px -3px; }
|
.propad a#topbaretherpad { background: url(static/img/protop.gif) no-repeat -397px -3px; }
|
||||||
|
|
||||||
#specialkeyarea { top: 5px; left: 250px; color: yellow; font-weight: bold;
|
#specialkeyarea { top: 5px; left: 250px; color: yellow; font-weight: bold;
|
||||||
font-size: 1.5em; position: absolute; }
|
font-size: 1.5em; position: absolute; }
|
||||||
|
@ -235,7 +235,7 @@ a#hidetopmsg { position: absolute; right: 5px; bottom: 5px; }
|
||||||
background: #ffc; padding: 0.6em; font-size: 1.2em; margin-top: 6px; }
|
background: #ffc; padding: 0.6em; font-size: 1.2em; margin-top: 6px; }
|
||||||
|
|
||||||
#docbar { margin-top: 6px; height: 25px; position: relative; zoom: 1;
|
#docbar { margin-top: 6px; height: 25px; position: relative; zoom: 1;
|
||||||
background: #fbfbfb url(/static/img/padtopback2.gif) repeat-x 0 -31px; }
|
background: #fbfbfb url(static/img/padtopback2.gif) repeat-x 0 -31px; }
|
||||||
|
|
||||||
.docbarbutton
|
.docbarbutton
|
||||||
{
|
{
|
||||||
|
@ -284,7 +284,7 @@ a#hidetopmsg { position: absolute; right: 5px; bottom: 5px; }
|
||||||
|
|
||||||
#docbarleft { position: absolute; left: 0; top: 0; height: 100%;
|
#docbarleft { position: absolute; left: 0; top: 0; height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: url(/static/img/padtop5.gif) no-repeat left -31px; width: 7px; }
|
background: url(static/img/padtop5.gif) no-repeat left -31px; width: 7px; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -294,7 +294,7 @@ a#hidetopmsg { position: absolute; right: 5px; bottom: 5px; }
|
||||||
overflow: hidden; text-overflow: ellipsis /*not supported in FF*/;
|
overflow: hidden; text-overflow: ellipsis /*not supported in FF*/;
|
||||||
white-space:nowrap; }
|
white-space:nowrap; }
|
||||||
.docbar-public #docbarpadtitle { padding-left: 22px;
|
.docbar-public #docbarpadtitle { padding-left: 22px;
|
||||||
background: url(/static/img/public.gif) no-repeat left center; }
|
background: url(static/img/public.gif) no-repeat left center; }
|
||||||
|
|
||||||
#docbarrenamelink { position: absolute; top: 6px;
|
#docbarrenamelink { position: absolute; top: 6px;
|
||||||
font-size: 1.1em; display: none; }
|
font-size: 1.1em; display: none; }
|
||||||
|
@ -302,7 +302,7 @@ a#hidetopmsg { position: absolute; right: 5px; bottom: 5px; }
|
||||||
#docbarrenamelink a:hover { color: #48d; }
|
#docbarrenamelink a:hover { color: #48d; }
|
||||||
#padtitlebuttons { position: absolute; width: 74px; zoom: 1;
|
#padtitlebuttons { position: absolute; width: 74px; zoom: 1;
|
||||||
height: 17px; top: 4px; left: 170px; display: none;
|
height: 17px; top: 4px; left: 170px; display: none;
|
||||||
background: url(/static/img/ok_or_cancel.gif) 0px 0px; }
|
background: url(static/img/ok_or_cancel.gif) 0px 0px; }
|
||||||
#padtitlesave { position: absolute; display: block;
|
#padtitlesave { position: absolute; display: block;
|
||||||
height: 0; padding-top: 17px; overflow: hidden;
|
height: 0; padding-top: 17px; overflow: hidden;
|
||||||
width: 23px; left: 0; top: 0; }
|
width: 23px; left: 0; top: 0; }
|
||||||
|
@ -338,7 +338,7 @@ a#hidetopmsg { position: absolute; right: 5px; bottom: 5px; }
|
||||||
.hidesidebar #padeditor { right: 0; }
|
.hidesidebar #padeditor { right: 0; }
|
||||||
|
|
||||||
#vdraggie {
|
#vdraggie {
|
||||||
background: url(/static/img/vdraggie.gif) no-repeat top center;
|
background: url(static/img/vdraggie.gif) no-repeat top center;
|
||||||
cursor: W-resize;
|
cursor: W-resize;
|
||||||
bottom:0;
|
bottom:0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
|
@ -394,10 +394,10 @@ a#hidetopmsg { position: absolute; right: 5px; bottom: 5px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#editbar #syncstatussyncing { position: absolute; height: 26px; width: 26px;
|
#editbar #syncstatussyncing { position: absolute; height: 26px; width: 26px;
|
||||||
background: url(/static/img/syncing2.gif) no-repeat center center;
|
background: url(static/img/syncing2.gif) no-repeat center center;
|
||||||
right: 38px; top: 5px; display: none; }
|
right: 38px; top: 5px; display: none; }
|
||||||
#editbar #syncstatusdone { position: absolute; height: 26px; width: 26px;
|
#editbar #syncstatusdone { position: absolute; height: 26px; width: 26px;
|
||||||
background: url(/static/img/syncdone.gif) no-repeat center center;
|
background: url(static/img/syncdone.gif) no-repeat center center;
|
||||||
right: 38px; top: 5px; display: none; }
|
right: 38px; top: 5px; display: none; }
|
||||||
|
|
||||||
#padsidebar {
|
#padsidebar {
|
||||||
|
@ -430,7 +430,7 @@ a#hidetopmsg { position: absolute; right: 5px; bottom: 5px; }
|
||||||
|
|
||||||
#myswatch { width: 100%; height: 100%; background: transparent;/*...initially*/ }
|
#myswatch { width: 100%; height: 100%; background: transparent;/*...initially*/ }
|
||||||
#mycolorpicker {
|
#mycolorpicker {
|
||||||
background: url(/static/img/colorpicker.gif) no-repeat left top;
|
background: url(static/img/colorpicker.gif) no-repeat left top;
|
||||||
width: 232px; height: 140px;
|
width: 232px; height: 140px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: -240px; top: 0px; z-index: 101;
|
left: -240px; top: 0px; z-index: 101;
|
||||||
|
@ -537,7 +537,7 @@ table#otheruserstable { display: none; }
|
||||||
|
|
||||||
.modaldialog.cboxreconnecting .modaldialog-inner,
|
.modaldialog.cboxreconnecting .modaldialog-inner,
|
||||||
.modaldialog.cboxconnecting .modaldialog-inner {
|
.modaldialog.cboxconnecting .modaldialog-inner {
|
||||||
background: url(/static/img/connectingbar.gif) no-repeat center 60px;
|
background: url(static/img/connectingbar.gif) no-repeat center 60px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
}
|
}
|
||||||
.modaldialog.cboxreconnecting {
|
.modaldialog.cboxreconnecting {
|
||||||
|
@ -646,27 +646,27 @@ table#otheruserstable { display: none; }
|
||||||
width: 100%; height: 100%; position: absolute; overflow: hidden; top: -10px; }
|
width: 100%; height: 100%; position: absolute; overflow: hidden; top: -10px; }
|
||||||
|
|
||||||
.dbpanel-top { position: absolute; top: 0; width: 100%;
|
.dbpanel-top { position: absolute; top: 0; width: 100%;
|
||||||
height: 400px; background-image: url(/static/img/docpanelmiddle2.png);
|
height: 400px; background-image: url(static/img/docpanelmiddle2.png);
|
||||||
background-position: left top; }
|
background-position: left top; }
|
||||||
|
|
||||||
.dbpanel-bottom { position: absolute; height: 400px;
|
.dbpanel-bottom { position: absolute; height: 400px;
|
||||||
bottom: -390px; width: 100%;
|
bottom: -390px; width: 100%;
|
||||||
background-image: url(/static/img/docpanelmiddle2.png);
|
background-image: url(static/img/docpanelmiddle2.png);
|
||||||
background-position: left top;
|
background-position: left top;
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .dbpanel-top, * html .dbpanel-bottom { /* for IE 6+ */
|
* html .dbpanel-top, * html .dbpanel-bottom { /* for IE 6+ */
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: url(/static/img/apr09/blank.gif);
|
background-image: url(static/img/apr09/blank.gif);
|
||||||
/* scale the image instead of repeating, but it amounts to the same */
|
/* scale the image instead of repeating, but it amounts to the same */
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/static/img/docpanelmiddle2.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="static/img/docpanelmiddle2.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
.dbpanel-leftedge, .dbpanel-rightedge, .dbpanel-botleftcorner, .dbpanel-botrightcorner {
|
.dbpanel-leftedge, .dbpanel-rightedge, .dbpanel-botleftcorner, .dbpanel-botrightcorner {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: url(/static/img/docpaneledge2.png);
|
background-image: url(static/img/docpaneledge2.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dbpanel-leftedge, .dbpanel-rightedge { height: 100%; width: 7px; bottom: 11px; }
|
.dbpanel-leftedge, .dbpanel-rightedge { height: 100%; width: 7px; bottom: 11px; }
|
||||||
|
@ -680,9 +680,9 @@ table#otheruserstable { display: none; }
|
||||||
|
|
||||||
* html .dbpanel-leftedge, * html .dbpanel-rightedge, * html .dbpanel-botleftcorner, * html .dbpanel-botrightcorner {
|
* html .dbpanel-leftedge, * html .dbpanel-rightedge, * html .dbpanel-botleftcorner, * html .dbpanel-botrightcorner {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: url(/static/img/apr09/blank.gif);
|
background-image: url(static/img/apr09/blank.gif);
|
||||||
/* crop the image */
|
/* crop the image */
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/static/img/docpaneledge2.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="static/img/docpaneledge2.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
* html .dbpanel-leftedge, * html .dbpanel-botleftcorner { left: -7px; width: 14px; }
|
* html .dbpanel-leftedge, * html .dbpanel-botleftcorner { left: -7px; width: 14px; }
|
||||||
|
|
||||||
|
@ -724,7 +724,7 @@ table#otheruserstable { display: none; }
|
||||||
#exportlinks .exportlink {
|
#exportlinks .exportlink {
|
||||||
display: block; position: absolute; height: 22px; width: auto;
|
display: block; position: absolute; height: 22px; width: auto;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-image: url(/static/img/fileicons.gif);
|
background-image: url(static/img/fileicons.gif);
|
||||||
line-height: 22px; padding-left: 22px; padding-right: 2px;
|
line-height: 22px; padding-left: 22px; padding-right: 2px;
|
||||||
}
|
}
|
||||||
#exportlinks .n1 { left: 350px; top: 30px; }
|
#exportlinks .n1 { left: 350px; top: 30px; }
|
||||||
|
@ -747,11 +747,11 @@ table#otheruserstable { display: none; }
|
||||||
}
|
}
|
||||||
#savedrevs-scrollleft { height: 100%; width: 14px; position: absolute;
|
#savedrevs-scrollleft { height: 100%; width: 14px; position: absolute;
|
||||||
left: 0; top: 0; cursor: pointer;
|
left: 0; top: 0; cursor: pointer;
|
||||||
background: url(/static/img/savedrevarrows.gif) no-repeat right top;
|
background: url(static/img/savedrevarrows.gif) no-repeat right top;
|
||||||
}
|
}
|
||||||
#savedrevs-scrollright { height: 100%; width: 14px; position: absolute;
|
#savedrevs-scrollright { height: 100%; width: 14px; position: absolute;
|
||||||
right: 0; top: 0; cursor: pointer;
|
right: 0; top: 0; cursor: pointer;
|
||||||
background: url(/static/img/savedrevarrows.gif) no-repeat left top;
|
background: url(static/img/savedrevarrows.gif) no-repeat left top;
|
||||||
}
|
}
|
||||||
#savedrevs-scrolly .disabledscrollleft { background-position: right bottom; }
|
#savedrevs-scrolly .disabledscrollleft { background-position: right bottom; }
|
||||||
#savedrevs-scrolly .disabledscrollright { background-position: left bottom; }
|
#savedrevs-scrolly .disabledscrollright { background-position: left bottom; }
|
||||||
|
@ -792,7 +792,7 @@ table#otheruserstable { display: none; }
|
||||||
#savedrevs-savenow { display: block; position: absolute;
|
#savedrevs-savenow { display: block; position: absolute;
|
||||||
overflow: hidden; height: 0; padding-top: 24px; width: 81px;
|
overflow: hidden; height: 0; padding-top: 24px; width: 81px;
|
||||||
top: 22px; right: 27px;
|
top: 22px; right: 27px;
|
||||||
background: url(/static/img/savedrevsgfx2.gif) no-repeat 0 0;
|
background: url(static/img/savedrevsgfx2.gif) no-repeat 0 0;
|
||||||
}
|
}
|
||||||
#savedrevs-savenow:active { background-position: 0 -24px; }
|
#savedrevs-savenow:active { background-position: 0 -24px; }
|
||||||
#savedrevs-close { display: block; position: absolute; right: 7px; bottom: 8px;
|
#savedrevs-close { display: block; position: absolute; right: 7px; bottom: 8px;
|
||||||
|
@ -875,7 +875,7 @@ form#reconnectform { display: none; }
|
||||||
#feedbackbox-hide, #feedbackbox-send, #feedbackbox-back {
|
#feedbackbox-hide, #feedbackbox-send, #feedbackbox-back {
|
||||||
position: absolute; display: block;
|
position: absolute; display: block;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-image: url(/static/img/feedbackbox2.gif);
|
background-image: url(static/img/feedbackbox2.gif);
|
||||||
}
|
}
|
||||||
#feedbackbox-tl { width: 392px;
|
#feedbackbox-tl { width: 392px;
|
||||||
height: 262px; left: 0; top: 0;
|
height: 262px; left: 0; top: 0;
|
||||||
|
@ -917,7 +917,7 @@ form#reconnectform { display: none; }
|
||||||
|
|
||||||
.expand-collapse {
|
.expand-collapse {
|
||||||
height: 22px;
|
height: 22px;
|
||||||
background-image: url(/static/img/sharedistri.gif);
|
background-image: url(static/img/sharedistri.gif);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 0 3px;
|
background-position: 0 3px;
|
||||||
padding-left: 17px;
|
padding-left: 17px;
|
||||||
|
@ -945,7 +945,7 @@ form#reconnectform { display: none; }
|
||||||
.modaldialog .modaldialog-hide {
|
.modaldialog .modaldialog-hide {
|
||||||
float: right;
|
float: right;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-image: url(/static/img/sharebox4.gif);
|
background-image: url(static/img/sharebox4.gif);
|
||||||
display: block;
|
display: block;
|
||||||
width: 22px; height: 22px;
|
width: 22px; height: 22px;
|
||||||
background-position: -454px -6px;
|
background-position: -454px -6px;
|
||||||
|
@ -978,7 +978,7 @@ form#reconnectform { display: none; }
|
||||||
#sharebox-send {
|
#sharebox-send {
|
||||||
float: right;
|
float: right;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-image: url(/static/img/sharebox4.gif);
|
background-image: url(static/img/sharebox4.gif);
|
||||||
display: block;
|
display: block;
|
||||||
width: 87px; height: 22px;
|
width: 87px; height: 22px;
|
||||||
background-position: -383px -289px;
|
background-position: -383px -289px;
|
||||||
|
@ -1005,20 +1005,20 @@ form#reconnectform { display: none; }
|
||||||
color: #444;
|
color: #444;
|
||||||
}
|
}
|
||||||
#widthprefcheck { position: absolute;
|
#widthprefcheck { position: absolute;
|
||||||
background-image: url(/static/img/layoutbuttons.gif);
|
background-image: url(static/img/layoutbuttons.gif);
|
||||||
background-repeat: no-repeat; cursor: pointer;
|
background-repeat: no-repeat; cursor: pointer;
|
||||||
width: 86px; height: 20px; top: 4px; right: 2px; }
|
width: 86px; height: 20px; top: 4px; right: 2px; }
|
||||||
.widthprefunchecked { background-position: -1px -1px; }
|
.widthprefunchecked { background-position: -1px -1px; }
|
||||||
.widthprefchecked { background-position: -1px -23px; }
|
.widthprefchecked { background-position: -1px -23px; }
|
||||||
#sidebarcheck { position: absolute;
|
#sidebarcheck { position: absolute;
|
||||||
background-image: url(/static/img/layoutbuttons.gif);
|
background-image: url(static/img/layoutbuttons.gif);
|
||||||
background-repeat: no-repeat; cursor: pointer;
|
background-repeat: no-repeat; cursor: pointer;
|
||||||
width: 86px; height: 20px; top: 4px; right: 90px; }
|
width: 86px; height: 20px; top: 4px; right: 90px; }
|
||||||
.sidebarunchecked { background-position: -1px -45px; }
|
.sidebarunchecked { background-position: -1px -45px; }
|
||||||
.sidebarchecked { background-position: -1px -67px; }
|
.sidebarchecked { background-position: -1px -67px; }
|
||||||
#feedbackbutton { display: block; position: absolute; width: 68px;
|
#feedbackbutton { display: block; position: absolute; width: 68px;
|
||||||
height: 0; padding-top: 17px; overflow: hidden;
|
height: 0; padding-top: 17px; overflow: hidden;
|
||||||
background: url(/static/img/bottomareagfx.gif);
|
background: url(static/img/bottomareagfx.gif);
|
||||||
top: 5px; right: 220px;
|
top: 5px; right: 220px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1042,11 +1042,11 @@ a#topbarmaximize {
|
||||||
height: 16px;
|
height: 16px;
|
||||||
margin-right:-143px;
|
margin-right:-143px;
|
||||||
margin-top:4px;
|
margin-top:4px;
|
||||||
background: url(/static/img/maximize_normal.png);
|
background: url(static/img/maximize_normal.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
.maximized a#topbarmaximize {
|
.maximized a#topbarmaximize {
|
||||||
background: url(/static/img/maximize_maximized.png);
|
background: url(static/img/maximize_maximized.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
#editbarinner h1 {
|
#editbarinner h1 {
|
||||||
|
|
|
@ -60,13 +60,13 @@
|
||||||
var padname = document.getElementById("padname").value;
|
var padname = document.getElementById("padname").value;
|
||||||
if(padname.length > 0)
|
if(padname.length > 0)
|
||||||
{
|
{
|
||||||
window.location = window.location.protocol + "//" + window.location.host + "/p/" + padname;
|
window.location = "p/" + padname;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function go2Random()
|
function go2Random()
|
||||||
{
|
{
|
||||||
window.location = window.location.protocol + "//" + window.location.host + "/p/" + randomPadName() ;
|
window.location = "p/" + randomPadName() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
function randomPadName()
|
function randomPadName()
|
||||||
|
|
|
@ -172,21 +172,21 @@ function Ace2Editor() {
|
||||||
"aceInitInnerdocbodyHead", {iframeHTML:iframeHTML});
|
"aceInitInnerdocbodyHead", {iframeHTML:iframeHTML});
|
||||||
|
|
||||||
// these lines must conform to a specific format because they are passed by the build script:
|
// these lines must conform to a specific format because they are passed by the build script:
|
||||||
iframeHTML.push($$INCLUDE_CSS_Q("/static/css/editor.css"));
|
iframeHTML.push($$INCLUDE_CSS_Q("static/css/editor.css"));
|
||||||
iframeHTML.push($$INCLUDE_CSS_Q("/static/css/syntax.css"));
|
iframeHTML.push($$INCLUDE_CSS_Q("static/css/syntax.css"));
|
||||||
iframeHTML.push($$INCLUDE_CSS_Q("/static/css/inner.css"));
|
iframeHTML.push($$INCLUDE_CSS_Q("static/css/inner.css"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/ace2_common.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/ace2_common.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/skiplist.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/skiplist.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/virtual_lines.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/virtual_lines.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/easysync2.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/easysync2.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/cssmanager.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/cssmanager.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/colorutils.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/colorutils.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/undomodule.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/undomodule.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/contentcollector.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/contentcollector.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/changesettracker.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/changesettracker.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/linestylefilter.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/linestylefilter.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/domline.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/domline.js"));
|
||||||
iframeHTML.push($$INCLUDE_JS_Q("/static/js/ace2_inner.js"));
|
iframeHTML.push($$INCLUDE_JS_Q("static/js/ace2_inner.js"));
|
||||||
|
|
||||||
iframeHTML.push('\'\\n<style type="text/css" title="dynamicsyntax"></style>\\n\'');
|
iframeHTML.push('\'\\n<style type="text/css" title="dynamicsyntax"></style>\\n\'');
|
||||||
iframeHTML.push('\'</head><body id="innerdocbody" class="syntax" spellcheck="false"> </body></html>\'');
|
iframeHTML.push('\'</head><body id="innerdocbody" class="syntax" spellcheck="false"> </body></html>\'');
|
||||||
|
@ -207,7 +207,7 @@ function Ace2Editor() {
|
||||||
'}, 0); }';
|
'}, 0); }';
|
||||||
|
|
||||||
var outerHTML = [doctype, '<html><head>',
|
var outerHTML = [doctype, '<html><head>',
|
||||||
$$INCLUDE_CSS("/static/css/editor.css"),
|
$$INCLUDE_CSS("static/css/editor.css"),
|
||||||
// bizarrely, in FF2, a file with no "external" dependencies won't finish loading properly
|
// bizarrely, in FF2, a file with no "external" dependencies won't finish loading properly
|
||||||
// (throbs busy while typing)
|
// (throbs busy while typing)
|
||||||
'<link rel="stylesheet" type="text/css" href="data:text/css,"/>',
|
'<link rel="stylesheet" type="text/css" href="data:text/css,"/>',
|
||||||
|
|
|
@ -533,10 +533,10 @@ var pad = {
|
||||||
},
|
},
|
||||||
preloadImages: function() {
|
preloadImages: function() {
|
||||||
var images = [
|
var images = [
|
||||||
'/static/img/feedbackbox2.gif',
|
'static/img/feedbackbox2.gif',
|
||||||
'/static/img/sharebox4.gif',
|
'static/img/sharebox4.gif',
|
||||||
'/static/img/sharedistri.gif',
|
'static/img/sharedistri.gif',
|
||||||
'/static/img/colorpicker.gif',
|
'static/img/colorpicker.gif',
|
||||||
];
|
];
|
||||||
function loadNextImage() {
|
function loadNextImage() {
|
||||||
if (images.length == 0) {
|
if (images.length == 0) {
|
||||||
|
|
|
@ -30,7 +30,7 @@ var padsavedrevs = (function() {
|
||||||
'<div class="sractions"><a class="srview" href="javascript:void(0)" target="_blank">view</a> | <a class="srrestore" href="javascript:void(0)">restore</a></div>'+
|
'<div class="sractions"><a class="srview" href="javascript:void(0)" target="_blank">view</a> | <a class="srrestore" href="javascript:void(0)">restore</a></div>'+
|
||||||
'<div class="srtime"><!-- --></div>'+
|
'<div class="srtime"><!-- --></div>'+
|
||||||
'<div class="srauthor"><!-- --></div>'+
|
'<div class="srauthor"><!-- --></div>'+
|
||||||
'<img class="srtwirly" src="/static/img/misc/status-ball.gif">'+
|
'<img class="srtwirly" src="static/img/misc/status-ball.gif">'+
|
||||||
'</div></div>');
|
'</div></div>');
|
||||||
setBoxLabel(box, revisionInfo.label);
|
setBoxLabel(box, revisionInfo.label);
|
||||||
setBoxTimestamp(box, revisionInfo.timestamp);
|
setBoxTimestamp(box, revisionInfo.timestamp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue