added the ability to add costum js/css

This commit is contained in:
Peter 'Pita' Martischka 2011-07-30 16:33:35 +01:00
parent 325839f9fd
commit a47b5ab458
5 changed files with 22 additions and 1 deletions

View File

@ -53,4 +53,12 @@ fi
echo "Clear minfified cache..."
rm -f var/minified*
echo "ensure custom css/js files are created..."
for f in $(cat "static/custom/.gitignore")
do
if [ ! -f "static/custom/$f" ]; then
touch "static/custom/$f"
fi
done
exit 0

6
static/custom/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
index.css
index.js
pad.css
pad.js
timeslider.css
timeslider.js

View File

@ -81,6 +81,8 @@
width: 40px;
}
</style>
<link href="static/custom/index.css" rel="stylesheet">
<script src="static/custom/index.js"></script>
<div id="container">
<div id="button" onclick="go2Random()">New Pad</div>
<br>
@ -122,4 +124,4 @@
return randomstring;
}
</script>
</html>
</html>

View File

@ -13,6 +13,8 @@
</script>
<script src="../socket.io/socket.io.js"></script>
<script src="../minified/pad.js"></script>
<link href="../static/custom/pad.css" rel="stylesheet">
<script src="../static/custom/pad.js"></script>
<style type="text/css" title="dynamicsyntax"></style>
</head>

View File

@ -12,6 +12,9 @@
<script type="text/javascript" src="../../socket.io/socket.io.js"></script>
<script type="text/javascript" src="../../minified/timeslider.js"></script>
<link href="../../static/custom/timeslider.css" rel="stylesheet">
<script src="../../static/custom/timeslider.js"></script>
<script>
// <![CDATA[
var clientVars = {};