From a47b5ab4585ec0bbcaf37e928c443dc20dcb65fd Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sat, 30 Jul 2011 16:33:35 +0100 Subject: [PATCH] added the ability to add costum js/css --- bin/installDeps.sh | 8 ++++++++ static/custom/.gitignore | 6 ++++++ static/index.html | 4 +++- static/pad.html | 2 ++ static/timeslider.html | 3 +++ 5 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 static/custom/.gitignore diff --git a/bin/installDeps.sh b/bin/installDeps.sh index feff219e5..ffe15b9aa 100755 --- a/bin/installDeps.sh +++ b/bin/installDeps.sh @@ -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 diff --git a/static/custom/.gitignore b/static/custom/.gitignore new file mode 100644 index 000000000..1d1dcd228 --- /dev/null +++ b/static/custom/.gitignore @@ -0,0 +1,6 @@ +index.css +index.js +pad.css +pad.js +timeslider.css +timeslider.js \ No newline at end of file diff --git a/static/index.html b/static/index.html index f6c350f4d..3e2e5e1c8 100644 --- a/static/index.html +++ b/static/index.html @@ -81,6 +81,8 @@ width: 40px; } + +
New Pad

@@ -122,4 +124,4 @@ return randomstring; } - \ No newline at end of file + diff --git a/static/pad.html b/static/pad.html index 8e6ebba48..6f4709dc6 100644 --- a/static/pad.html +++ b/static/pad.html @@ -13,6 +13,8 @@ + + diff --git a/static/timeslider.html b/static/timeslider.html index b850874af..395ba183f 100644 --- a/static/timeslider.html +++ b/static/timeslider.html @@ -12,6 +12,9 @@ + + +