]> git.plutz.net Git - serve0/blobdiff - templates/frame.html.sh
updates in shcgi
[serve0] / templates / frame.html.sh
index eae2968a46d43e1c68b0e332cdf26a66c5e8e42b..7d953da972f014665bbed2df282426d4dadf278d 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 Paul Hänsch
+# Copyright 2014, 2015 Paul Hänsch
 #
 # This file is part of Serve0
 # 
@@ -20,35 +20,16 @@ cat <<EOF
 
 <html>
   <head>
-    <title>$(. $PAGE title)</title>
+    <meta name="viewport" content="width=device-width">
+    <title>${PAGE}</title>
     <style type="text/css">
     <!--
-    $(. $PAGE css)
+    $(. "${_EXEC}/templates/common.css.sh")
     -->
     </style>
-    <script type="text/javascript">
-    <!--
-    function show_block(id){
-      document.getElementById(id).style.display = "block";
-      try{document.getElementById('vid_'+id).play();}catch(foo){}
-    }
-    function show_inline(id){
-      document.getElementById(id).style.display = "inline";
-      try{document.getElementById('vid_'+id).play();}catch(foo){}
-    }
-    function show_iblock(id){
-      document.getElementById(id).style.display = "inline-block";
-      try{document.getElementById('vid_'+id).play();}catch(foo){}
-    }
-    function hide(id){
-      try{document.getElementById('vid_'+id).pause();}catch(foo){}
-      document.getElementById(id).style.display = "none";
-    }
-    -->
-    </script>
   </head>
   <body>
-    $(. $PAGE body)
+    $([ -x "${BODY}" ] && . "${BODY}" || printf %s Error)
   </body>
 </html>
 EOF