]> git.plutz.net Git - serve0/blobdiff - templates/frame.html.sh
styling for pagination links
[serve0] / templates / frame.html.sh
index 822659b78df896757995da80d18f3ee83c60290c..c389e103036bc37f180bcde80e30247491b4dde2 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 Paul Hänsch
+# Copyright 2014 - 2016 Paul Hänsch
 #
 # This file is part of Serve0
 # 
 cat <<EOF
 <!Doctype HTML>
 
-<html>
-  <head>
-    <title>$(. $PAGE title)</title>
-    <style type="text/css">
-    <!--
-    $(. $PAGE css)
-    -->
-    </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 hide_block(id){
-      try{document.getElementById('vid_'+id).pause();}catch(foo){}
-      document.getElementById(id).style.display = "none";
-    }
-    function hide_inline(id){ hide_block(id);}
-    -->
-    </script>
-  </head>
-  <body>
-    $(. $PAGE body)
-  </body>
-</html>
+<html><head>
+  <meta name="viewport" content="width=device-width">
+  <link rel="stylesheet" href="?static=common.css" />
+  <title>${TITLE:-${PAGE}}</title>
+</head>
 EOF
 
+printf '<body class="%s">' "${PAGE}"
+
+[ -x "${BODY}" ] && . "${BODY}" || printf %s Error
+
+printf '</body></html>'
+
 # vi:set filetype=html: