mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-29 11:49:13 -04:00
improve including of custom js/css
This commit is contained in:
parent
340fbf4d44
commit
de32503f8e
6 changed files with 30 additions and 4 deletions
5
static/custom/css.template
Normal file
5
static/custom/css.template
Normal file
|
@ -0,0 +1,5 @@
|
|||
/*
|
||||
You may have to use !important to override css attributs, for example:
|
||||
|
||||
* {color: blue !important;}
|
||||
*/
|
6
static/custom/js.template
Normal file
6
static/custom/js.template
Normal file
|
@ -0,0 +1,6 @@
|
|||
function costumStart()
|
||||
{
|
||||
//define your javascript here
|
||||
//jquery is avaiable - except index.js
|
||||
//you can load extra scripts with $.getScript http://api.jquery.com/jQuery.getScript/
|
||||
}
|
|
@ -123,5 +123,8 @@
|
|||
}
|
||||
return randomstring;
|
||||
}
|
||||
|
||||
//start the costum js
|
||||
if(costumStart) costumStart();
|
||||
</script>
|
||||
</html>
|
||||
|
|
|
@ -29,6 +29,9 @@ $(document).ready(function()
|
|||
document.location = expectedURL;
|
||||
}
|
||||
|
||||
//start the costum js
|
||||
if(costumStart) costumStart();
|
||||
|
||||
handshake();
|
||||
});
|
||||
|
||||
|
|
|
@ -55,8 +55,11 @@
|
|||
|
||||
var socket, token, padId;
|
||||
|
||||
$(window).load(function ()
|
||||
$(document).ready(function ()
|
||||
{
|
||||
//start the costum js
|
||||
if(costumStart) costumStart();
|
||||
|
||||
//get the padId out of the url
|
||||
var urlParts= document.location.pathname.split("/");
|
||||
padId = urlParts[urlParts.length-2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue