<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<getTime>
nowRequestCounter = Add(nowRequestCounter, 1);
if (null == now || nowRequestCounter == 20) {
nowRequestCounter = 0;
now = getUrl("http://192.168.1.206:8002/modules/GlavTVLink/?srv=utils&req=seconds");
}
</getTime>
<getTimeStr>
timeStrRequestCounter = Add(timeStrRequestCounter, 1);
if (null == timeStr || timeStrRequestCounter == 10) {
timeStrRequestCounter = 0;
timeStr = getUrl("http://192.168.1.206:8002/modules/GlavTVLink/?srv=utils&req=time");
}
</getTimeStr>
<onEnter>
now = null;
timeStr = null;
nowRequestCounter = 0;
timeStrRequestCounter = 0;
</onEnter>
<rssLink><link><script>url;</script></link></rssLink>
<onEnter>
viewerMode = readStringFromFile("/tmp/env_viewerMode");
defaultMode = 7;
if (null == viewerMode || "" == viewerMode) {
viewerMode = defaultMode;
}
SwitchViewer(viewerMode);
writeStringToFile("/tmp/env_viewerMode", defaultMode);
</onEnter>
<onEnter>
x = 2;
y = 2;
</onEnter>
<saveMargins>
url = "http://192.168.1.206:8002/modules/GlavTVLink/?srv=utils&req=saveIniParams";
url += "&" + urlEncode("params[marginX]") + "=" + x;
url += "&" + urlEncode("params[marginY]") + "=" + y;
jumpToLink("rssLink");
</saveMargins>
<mediaDisplay name="onePartView"
showHeader="no"
showDefaultInfo="no"
imageFocus="null"
imageParentFocus="null"
backgroundColor="0:0:0"
mainPartColor="0:0:0"
itemBackgroundColor="0:0:0"
itemBorderColor="0:0:0"
sideTopHeightPC="0"
sideBottomHeightPC="0"
sideLeftWidthPC="0"
sideRightWidthPC="0"
sideColorTop="0:0:0"
sideColorBottom="0:0:0"
sideColorLeft="0:0:0"
sideColorRight="0:0:0"
drawItemText="no"
slidingItemText="no"
sliding="no"
viewAreaXPC="0"
viewAreaYPC="0"
viewAreaWidthPC="100"
viewAreaHeightPC="100"
idleImageXPC="NAN"
idleImageYPC="76"
idleImageWidthPC="10"
idleImageHeightPC="16"
itemImageXPC="35"
itemImageYPC="55"
itemImageWidthPC="0"
itemImageHeightPC="0"
itemXPC="35"
itemYPC="55"
itemWidthPC="30"
itemHeightPC="10"
autoSelectMenu="no"
autoSelectItem="no"
itemPerPage="1"
>
<idleImage>/data/icapp/www/modules/GlavTV/templates/img/loading/loading_1.jpg</idleImage>
<idleImage>/data/icapp/www/modules/GlavTV/templates/img/loading/loading_2.jpg</idleImage>
<idleImage>/data/icapp/www/modules/GlavTV/templates/img/loading/loading_3.jpg</idleImage>
<idleImage>/data/icapp/www/modules/GlavTV/templates/img/loading/loading_4.jpg</idleImage>
<idleImage>/data/icapp/www/modules/GlavTV/templates/img/loading/loading_5.jpg</idleImage>
<idleImage>/data/icapp/www/modules/GlavTV/templates/img/loading/loading_6.jpg</idleImage>
<onUserInput>
key = currentUserInput();
res = "true";
if (key == "enter") {
executeScript("saveMargins");
} else if (key == "right") {
if (x <= 14) {
x = x - -1;
}
} else if (key == "left") {
if (x >= 1) {
x = x - 1;
}
} else if (key == "down") {
if (y <= 14) {
y = y - -1;
}
} else if (key == "up") {
if (y >= 1) {
y = y - 1;
}
} else {
res = "false";
}
if (res == "true") {
redrawDisplay();
}
res;
</onUserInput>
<backgroundDisplay>
<image redraw="yes" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100">
<script>"/data/icapp/www/modules/GlavTV/templates/img/screenshot.jpg";</script>
<offsetXPC><script>x;</script></offsetXPC>
<offsetYPC><script>y;</script></offsetYPC>
<widthPC><script>100 - 2*x;</script></widthPC>
<heightPC><script>100 - 2*y;</script></heightPC>
</image>
<text redraw="yes" backgroundColor="200:50:0" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="NAN">
<script>"";</script>
<offsetXPC><script>x;</script></offsetXPC>
<offsetYPC><script>y;</script></offsetYPC>
<widthPC><script>100 - 2*x;</script></widthPC>
</text>
<text redraw="yes" backgroundColor="200:50:0" offsetXPC="0" offsetYPC="0" widthPC="NAN" heightPC="100">
<script>"";</script>
<offsetXPC><script>x;</script></offsetXPC>
<offsetYPC><script>y;</script></offsetYPC>
<heightPC><script>100 - 2*y;</script></heightPC>
</text>
<text redraw="yes" backgroundColor="200:50:0" offsetXPC="0" offsetYPC="NAN" widthPC="100" heightPC="NAN">
<script>"";</script>
<offsetXPC><script>x;</script></offsetXPC>
<offsetYPC><script>NAN - y;</script></offsetYPC>
<widthPC><script>100 - 2*x;</script></widthPC>
</text>
<text redraw="yes" backgroundColor="200:50:0" offsetXPC="NAN" offsetYPC="0" widthPC="NAN" heightPC="100">
<script>"";</script>
<offsetXPC><script>NAN - x;</script></offsetXPC>
<offsetYPC><script>y;</script></offsetYPC>
<heightPC><script>100 - 2*y;</script></heightPC>
</text>
<text offsetXPC="25" offsetYPC="30" widthPC="50" heightPC="40" backgroundColor="40:40:40" />
<!-- Bounding frame -->
<text offsetXPC="25" offsetYPC="30" widthPC="50" heightPC="NAN" backgroundColor="130:130:130" />
<text offsetXPC="25" offsetYPC="30" widthPC="NAN" heightPC="40" backgroundColor="130:130:130" />
<text offsetXPC="NAN" offsetYPC="30" widthPC="NAN" heightPC="40" backgroundColor="130:130:130" />
<text offsetXPC="25" offsetYPC="NAN" widthPC="50" heightPC="NAN" backgroundColor="130:130:130" />
<text offsetXPC="30" offsetYPC="35" widthPC="40" heightPC="17"
foregroundColor="150:150:150" fontSize="17" align="center"
lines="3">Используйте стрелки для регулирования отступов. Чем шире картинка, тем лучше.</text>
</backgroundDisplay>
<itemDisplay>
<text offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="100"
backgroundColor="40:40:40"
foregroundColor="200:200:200"
align="center" fontSize="18">
<script>"marginX: " + x + ", marginY: " + y;</script>
</text>
</itemDisplay>
</mediaDisplay>
<channel>
<item><title>Ok</title></item>
</channel>
</rss>
ssergey писал(а):Страница на компе без ini файла открылась, сначала выбор языка, затем выбор часового пояса.
ssergey писал(а):И собственно все, дальше непонятки какие-то на странице и выбор языка и часового пояса и при каждом выборе кнопок "ок" становится все больше и больше
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel xmlns:cfi="http://www.microsoft.com/schemas/rss/core/2005/internal" cfi:lastdownloaderror="None"><item><title xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" cf:type="text">Ok</title><cfi:id>0</cfi:id><cfi:effectiveId>816592960</cfi:effectiveId><cfi:read>true</cfi:read><cfi:downloadurl>http://192.168.1.206:8002/modules/GlavTVLink/</cfi:downloadurl><cfi:lastdownloadtime>2012-03-26T15:13:59.640Z</cfi:lastdownloadtime></item></channel></rss>
Вернуться в Устаревшие темы и offtopic
Сейчас этот форум просматривают: Google [Bot] и гости: 1