]> git.plutz.net Git - serve0/blob - templates/frame.html.sh
improvements for smaller screens
[serve0] / templates / frame.html.sh
1 # Copyright 2014 Paul Hänsch
2 #
3 # This file is part of Serve0
4
5 # Serve0 is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Serve0 is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Serve0  If not, see <http://www.gnu.org/licenses/>. 
17
18 cat <<EOF
19 <!Doctype HTML>
20
21 <html>
22   <head>
23     <meta name="viewport" content="width=device-width">
24     <title>$(. $PAGE title)</title>
25     <style type="text/css">
26     <!--
27     $(. $PAGE css)
28     -->
29     </style>
30     <script type="text/javascript">
31     <!--
32     function show_block(id){
33       document.getElementById(id).style.display = "block";
34       try{document.getElementById('vid_'+id).play();}catch(foo){}
35     }
36     function show_inline(id){
37       document.getElementById(id).style.display = "inline";
38       try{document.getElementById('vid_'+id).play();}catch(foo){}
39     }
40     function show_iblock(id){
41       document.getElementById(id).style.display = "inline-block";
42       try{document.getElementById('vid_'+id).play();}catch(foo){}
43     }
44     function hide(id){
45       try{document.getElementById('vid_'+id).pause();}catch(foo){}
46       document.getElementById(id).style.display = "none";
47     }
48     -->
49     </script>
50   </head>
51   <body>
52     $(. $PAGE body)
53   </body>
54 </html>
55 EOF
56
57 # vi:set filetype=html: