aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/WebInterface/web/index.html.xml
blob: 370f9329d4c33eda5c1dcf56451742bfc2260d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<e2:screen name="TestScreen">&lt;html>
<head>
	<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
	<title>Enigma 2 realtime OSD example </title>
	<script src="/webdata/tools.js" type="text/javascript" />
</head>
<style type="text/css">
body { background-color:#445566; color:#FFCC99; }
a:link { color:#FF9966; }
a:visited { color:#FF9900; }
a:active { color:#FFFFFF; }
#CurrentTime { 
	position: absolute; top:30px; right:30px;
	color: white; 
	font-family:Arial,sans-serif;
	font-size:2em;
	font-weight:normal;
}

#CurrentService { 
	color: white;
	font-family:Arial,sans-serif;
	font-size:4em;
	font-weight:normal;
}

#Event_Now_Name { 
	color: #998888;
	font-family:Arial,sans-serif;
	font-size:3em;
	font-weight:bold;
}

#Event_Now_Begin { 
	color: #999999;
	font-family:Arial,sans-serif;
	font-size:2em;
	font-weight:bold;
}

#Event_Now_Remaining { 
	position: absolute; right: 30px;
	color: #999999;
	font-family:Arial,sans-serif;
	font-size:2em;
	font-weight:bold;
}

#Event_Now_Description { 
	color: #99aaaa;
	font-family:Arial,sans-serif;
	font-size:1em;
	font-weight:bold;
}

#Event_Now_Extended_Description { 
	color: #99bbbb;
	font-family:Arial,sans-serif;
	font-size:1em;
	font-weight:bold;
}


	/* allow room for 3 columns */
ol
{
	width: 45em;
}

	/* float and allow room for the widest item */
ol li
{
	float: left;
	width: 15em;
}

/* stop the float */
br
{
	clear: left;
}

	/* separate the list from subsequent markup */
div.wrapper
{
	margin-bottom: 1em;
}

</style>
<body>

<div id="CurrentTime"> </div>
<div id="CurrentService"> </div>
<div>
<span id="Event_Now_Begin"> </span> <span id="Event_Now_Name"> </span>
<a href="javascript:imdb()">...</a>
<span id="Event_Now_Remaining"> </span>
</div>
<div id="Event_Now_Description"> </div>
<div id="Event_Now_Extended_Description"> </div>

<div id="ChannelList">
<ol>
<e2:element source="ServiceList">

<e2:convert type="web:ListFiller">
&lt;li onclick="zap(this)" id="<e2:item name="Reference" />"><e2:item name="Name"/>&lt;/li>
</e2:convert>

	<e2:convert type="web:TextToHTML" />
</e2:element>
</ol>
</div>

<script type="text/javascript" language="javascript">
function set(what, value)
{
	document.getElementById(what).innerHTML = value;
}

function updatePage()
{
} 

function zap(li)
{
	var request = getHTTPObject();
	var url = "/web/zap?ZapTo=" + escape(li.id);
	request.open("GET", url, true);
	request.onreadystatechange = updatePage;
	request.send(null);
}

function imdb()
{
	w = window.open("http://www.imdb.com/find?s=all&amp;q=" + escape(document.getElementById("Event_Now_Name").innerHTML));
	w.focus();
}

</script>
</body>

<!-- realtime updates follow -->
<e2:element source="CurrentTime" streaming="yes">
  <e2:convert type="ClockToText">WithSeconds</e2:convert>
	<e2:convert type="web:JavascriptUpdate" />
</e2:element>
<e2:element source="CurrentService" streaming="yes">
	<e2:convert type="ServiceName">Name</e2:convert>
	<e2:convert type="web:JavascriptUpdate" />
</e2:element>
<e2:element source="Event_Now" id="Event_Now_Name" streaming="yes">
	<e2:convert type="EventName">Name</e2:convert>
	<e2:convert type="web:JavascriptUpdate" />
</e2:element>
<e2:element source="Event_Now" id="Event_Now_Description" streaming="yes">
	<e2:convert type="EventName">Description</e2:convert>
	<e2:convert type="web:JavascriptUpdate" />
</e2:element>
<e2:element source="Event_Now" id="Event_Now_Extended_Description" streaming="yes">
	<e2:convert type="EventName">ExtendedDescription</e2:convert>
	<e2:convert type="web:JavascriptUpdate" />
</e2:element>
<e2:element source="Event_Now" id="Event_Now_Remaining" streaming="yes">
	<e2:convert type="EventTime">Remaining</e2:convert>
	<e2:convert type="RemainingToText">InMinutes</e2:convert>
	<e2:convert type="web:JavascriptUpdate" />
</e2:element>
<e2:element source="Event_Now" id="Event_Now_Begin" streaming="yes">
	<e2:convert type="EventTime">StartTime</e2:convert>
	<e2:convert type="ClockToText">Default</e2:convert>
	<e2:convert type="web:JavascriptUpdate" />
</e2:element>
</e2:screen>