webif/var/mongoose/html/m/lib/header.jim
hummypkg 0a2c7966b5 checkpoint
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1182 2a923420-c742-0410-a762-8d5b09965624
2012-10-30 18:58:54 +00:00

78 lines
2.1 KiB
Plaintext
Executable File

#!/mod/bin/jimsh
source /mod/webif/lib/setup
require system.class
puts "Humax [system model] Fox T2 ([system hostname])"
puts "
<!DOCTYPE html>
<html>
<head>
<title>
Humax [system model] Fox T2 ([system hostname])
</title>
"
puts {
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width,user-scalable=no,initial-scale=1">
<meta name=apple-mobile-web-app-capable content=yes>
<meta name=apple-mobile-web-app-status-bar-style content=black>
<link rel="stylesheet" href="/lib/jquery.mobile/jquery.mobile.css" />
<link rel="stylesheet" href="/m/style.css" type="text/css"/>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/lib/jquery.mobile/jquery.mobile.js">
</script>
<script type="text/javascript" src="/m/script.js"></script>
<xlink rel="apple-touch-icon" href="/img/mobile.png" />
<xlink rel="apple-touch-icon" sizes="57x57" href="/img/remote_57.png" />
<xlink rel="apple-touch-icon" sizes="72x72" href="/img/remote_72.png" />
<xlink rel="apple-touch-icon" sizes="114x114" href="/img/remote_114.png" />
<xlink rel="apple-touch-icon" sizes="144x144" href="/img/remote_144.png" />
</head>
}
if [dict exists $env SCRIPT_NAME] {
set pageid [string range $env(SCRIPT_NAME) 3 end-4]
} else {
set pageid test
}
set _dialog 0
if {[string range $pageid end-1 end] eq "_d"} {
set _dialog 1
}
puts "<body>"
if {$_dialog} {
puts "<div data-role=page id=${pageid}page>\n"
} else {
puts "
<div data-role=page data-add-back-btn=true id=${pageid}page>
<div class=\"hidden status\"></div>
<div data-role=header data-theme=b>
<div class=ui-btn-right style=\"top: -5px\">
<div style=\"display: inline-block; margin-right: 10px;\">
<a data-theme=b data-icon=home data-iconpos=notext data-role=button
data-direction=reverse href=index.jim></a>
</div>
<div style=\"display: inline-block;\">
<a data-theme=b data-icon=refresh data-iconpos=notext data-role=button
class=refresh data-direction=reverse href=#></a>
</div>
</div>
<h1>[system model] ([system hostname])</h1>
</div>
<div data-role=content>
}
set renderstart [clock milliseconds]