Added inner.js and inner.css for custom theming and scripting of innermost iframe

This commit is contained in:
Sofian Benaissa 2012-03-20 22:02:53 -04:00
parent c734bde7dd
commit cc06a63654
2 changed files with 3 additions and 1 deletions

View file

@ -96,7 +96,7 @@ rm -f var/minified*
echo "ensure custom css/js files are created..."
for f in "index" "pad" "timeslider"
for f in "index" "pad" "timeslider" "inner"
do
if [ ! -f "static/custom/$f.js" ]; then
cp -v "static/custom/js.template" "static/custom/$f.js" || exit 1

View file

@ -265,6 +265,8 @@ function Ace2Editor()
pushScriptsTo(iframeHTML);
iframeHTML.push('<style type="text/css" title="dynamicsyntax"></style>');
iframeHTML.push('<link rel="stylesheet" type="text/css" href="/static/custom/inner.css"/>');
iframeHTML.push('<script type="text/javascript" src="/static/custom/inner.js"></script>');
iframeHTML.push('</head><body id="innerdocbody" class="syntax" spellcheck="false">&nbsp;</body></html>');
// Expose myself to global for my child frame.