Browse Source

final fixes

master
sijanec 1 year ago
parent
commit
a79490fdcf
  1. 13
      .well-known/assetlinks.json
  2. 524
      900/404/index.html
  3. 23
      README.md

13
.well-known/assetlinks.json

@ -0,0 +1,13 @@
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target" : {
"namespace": "android_app",
"package_name": "tk.xn--jha.teletekst",
"sha256_cert_fingerprints":
[
"78:51:6D:C4:40:49:83:A0:AA:38:09:EF:CF:83:37:F4:5D:F0:88:18:89:DE:C2:84:DD:14:D4:8C:09:FF:46:A8"
]
}
}
]

524
900/404/index.html

@ -0,0 +1,524 @@
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<base href="https://teletekst.ž.ga/">
<meta name="copyright" content="Za MMC RTV Slovenija napisal: Sebastjan Dobnik, 2020" />
<meta name="description" content="Teletext MMC RTV slovenija" />
<meta name="keywords" content="Teletext, Teletekst, TTX, MMC, RTV, Slovenija, Multimedijski, Center, Teletext na internetu" />
<link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no max-scale=1.0" >
<link rel="stylesheet" media="only screen and (min-width: 491px)" href="desktop2.css" type="text/css" />
<link rel="stylesheet" media="only screen and (max-width: 490px)" href="phone2.css" type="text/css"/>
<link rel="icon" href="favicon.png" type="image/png" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script>
<script src="redfox.js" type="text/javascript"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed" rel="stylesheet">
<title>Teletext RTVSLO</title>
</head>
<body>
<script>
$(document).ready(function(){$.get("?cmd=okCookie");});
</script>
<map name="900_0404" id="900_0404"><area shape="rect" coords="72,308,107,322" href="900/404" alt=""></map>
<div id="ttxMain">
<div id="userMenu">&nbsp;
<div id="userMenuObjava">
Zadnja posodobitev pred 3 meseci
</div>
<div id="userMenuHelp">
<span id="userMenuHelpSpan">
<a href="?help">&nbsp;?&nbsp;</a>
</span>
</div>
</div>
<div id="ttxSlika">
<div id="paginator">900.404</div>
<img id="mainDisplay" src="/ttxdata/900_0404.png?30.8.2020 21:21:15" usemap="#900_0404">
</div>
<div id="podstrani">
<button id="pin" class=""><img id="pinImg" src="slike/pin.svg"></button>
Podstrani:
<a class="podstranLink " href="900/1">1</a>
<a class="podstranLink " href="900/2">2</a>
<a class="podstranLink " href="900/3">3</a>
</div>
<div id="navigator">
<div id="navigatorCenter">
<div id="keyboard" style="display:none;">
<div id="kbDisplay">&nbsp;</div>
<button id="kb1" class="navBtnKb">1</button>
<button id="kb2" class="navBtnKb">2</button>
<button id="kb3" class="navBtnKb">3</button><br>
<button id="kb4" class="navBtnKb">4</button>
<button id="kb5" class="navBtnKb">5</button>
<button id="kb6" class="navBtnKb">6</button><br>
<button id="kb7" class="navBtnKb">7</button>
<button id="kb8" class="navBtnKb">8</button>
<button id="kb9" class="navBtnKb">9</button><br>
<button id="kbClr" class="navBtnKb">clr</button>
<button id="kb0" class="navBtnKb">0</button>
<button id="kbGo" disabled="" class="navBtnKb">GO</button>
</div>
<button id="btnHome" class="navBtn "><img src="slike/home100.svg">domov</button>
<button id="btnPrPage" class="navBtn"><img src="slike/prPage.svg">prejšnja stran</button>
<button id="btnPrSubPage" class="navBtn"><img src="slike/prSubPage.svg">prejšnja podstran</button>
<button id="btnNeSubPage" class="navBtn"><img src="slike/neSubPage.svg">naslednja podstran</button>
<button id="btnNePage" class="navBtn"><img src="slike/nePage.svg">naslednja stran</button>
<button id="btnKbPage" class="navBtn"><img src="slike/keyboard.svg">tipkovnica</button>
<div id="navigatorStrani">
<div style="display:inline-block;width:60px; height:38px;margin-left:45px;padding-top:10px;">
stran<br>
<input type="number" id="txtStran" type="text" value="900" style="width:50px; padding:2px;border-radius:2px;border:none;outline:none;margin-top:2px;">
</div>
<div style="display:inline-block;width:50px; height:38px; padding-top:10px;">
podstran<br>
<input type="number" id="txtPodStran" type="text" value="404" style="width:35px;padding:2px;border-radius:2px;border:none;outline:none;margin-top:2px;">
</div>
</div>
<button id="btnGo" type="submit" class="navBtn"><img src="slike/go.svg"><br>pojdi</button>
</div>
</div>
<div id="kazalo">
<div>
<div>
<div class="kSkupina">
<a id="k109" href="109/1/Danasnje_novice">&nbsp;Novice&nbsp;</a>
</div>
<div class="kLink">
<a id="k101" href="101/1/Novice_dneva">Novice Dneva</a>,
<a id="k110" href="110/1/Slovenija">Slovenija</a>,
<a id="k130" href="130/1/EU">EU</a>,
<a id="k140" href="140/1/Svet">Svet</a>,
<a id="k190" href="190/1/Crna_Kronika">Črna kronika</a>
</div>
</div>
<div>
<div class="kSkupina">
<a id="k160" href="160/1/Vreme">&nbsp;Vreme&nbsp;</a>
</div>
<div class="kLink">
<a id="k161" href="161/1/Vreme_Na_kratko">Na kratko</a>,
<a id="k162" href="162/1/Vreme_Slovenija">SLO</a>,
<a id="k164" href="164/1/Vreme_Svet">Svet</a>,
<a id="k165" href="165/1/Vreme_Letalstvo">Letalstvo</a>,
<a id="k166" href="166/1/Vreme_AGRO">Agro</a>,
<a id="k167" href="167/1/Vreme_Zrak">Zrak</a>,
<a id="k168" href="168/1/Vreme_Vode">Vode</a>,
<a id="k169" href="169/1/Vreme_Pomorsvo">Pomorstvo</a>,
<a id="k380" href="380/1/Temperature_morja__in_jezer">Temperature morja in jezer</a>
</div>
</div>
<div>
<div class="kSkupina">
<a id="k500" href="500/1/Sport">&nbsp;Šport&nbsp;</a>
</div>
<div class="kLink">
<a id="k510" href="510/1/Sport_Nogomet">Nogomet</a>,
<a id="k531" href="531/1/Sport_Kosarka">Košarka</a>,
<a id="k540" href="540/1/Sport_Rokomet">Rokomet</a>
</div>
</div>
<div>
<div class="kSkupina">
<a id="k400" href="400/1/Kultura">&nbsp;Kultura&nbsp;</a>
</div>
<div class="kLink">
</div>
</div>
<div>
<div class="kSkupina">
<a id="k600" href="600/1/Zabava">&nbsp;Zabava&nbsp;</a>
</div>
<div class="kLink">
<a id="k629" href="629/1/Sale">Šale</a>,
<a id="k625" href="625/1/Na_danasnji_Dan">Na današnji dan</a>,
<a id="k450" href="450/1/Kino">Kino</a>
</div>
</div>
<div>
<div class="kSkupina" style="margin-left:1px;">&nbsp;Ostalo&nbsp;
</div>
<div class="kLink">
<a id="k300" href="300/1/Gospodarstvo">Gospodarstvo</a>,
<a id="k170" href="170/1/Promet">Promet</a>,
<a id="k627" href="627/1/Loterija_Slovenije">Loterija</a>,
<a id="k590" href="590/1/Rekreacija">Rekreacija</a>,
<a id="k761" href="761/1/Rdeci_kriz_slovenije">RKS</a>,
<a id="k108" href="108/1/MMC_urednistvo">MMC uredništvo</a>
</div>
</div>
<div>
<div class="kSkupina">
<a id="k200" href="200/1/TV_Spored">&nbsp;TV&nbsp;</a>
</div>
<div class="kLink">
&nbsp;TVSLO1:
<a id="k201" href="201/1/TV_Spored_Slo1_Dopoldne">Dopoldne</a>,
<a id="k202" href="202/1/TV_Spored_Slo1_Popoldne">Popoldne</a>,
<a id="k203" href="203/1/TV_Spored_Slo1_Zvecer">Zvečer</a><br>
&nbsp;TVSLO2:
<a id="k204" href="204/1/TV_Spored_Slo2_Dopoldne">Dopoldne</a>,
<a id="k205" href="205/1/TV_Spored_Slo2_Popoldne">Popoldne</a><br>
&nbsp;TVSLO3:
<a id="k254" href="254/1/TV_Spored_Slo3">Spored za današnji dan</a>
</div>
</div>
<div>
<div class="kSkupina">
<a id="k260" href="260/1/RA_Spored">&nbsp;Radio&nbsp;</a>
</div>
<div class="kLink">
<a id="k261" href="261/1/RA_Spored_SLO1">RASLO1</a>,
<a id="k262" href="262/1/RA_Spored_SLO2">RASLO2</a>,
<a id="k263" href="263/1/RA_Spored_SLO3">RASLO3</a>,
<a id="k267" href="267/1/RA_Spored_Koper_Capodistria">Koper Capodistria</a>,
<a id="k268" href="268/1/RA_Spored_Maribor">Maribor</a>
</div>
</div>
</div>
</div>
</div>
<script>
$().ready(function(){
document.title = "Teletext RTVSLO | 900.404"
var pageTextFocus = false;
var pin=0;
var kbVidno = false;
var vStran ="";
if ($("#btnKbPage").is(":visible") == true) {
setTimeout(function(){
$("#paginator").fadeIn(50)
setTimeout(function(){
$("#paginator").fadeOut(500)
}, 2000);
}, 10);
}
$("#mainDisplay").on("swipeleft",function(){
alert("left");
});
$("#mainDisplay").on("swiperight",function(){
alert("right");
});
setInterval(function(){
if (pin == 1){
location.reload();
} else {
$("#btnNeSubPage").click();
};
}, 45*1000);
$("#txtStran").change(function(){
var stran = $(this).val()
if (stran < 100){
stran=100;
$(this).val(stran);
};
if (stran > 800){
stran=100;
$(this).val(stran);
};
})
$("#txtStran").blur(function(){
pageTextFocus = false;
$("#txtPodStran").val('1');
});
$("#txtStran").keydown(function(){
//pageTextFocus = false;
$("#txtPodStran").val('1');
});
$("#txtPodStran").blur(function(){
pageTextFocus = false;
});
$("#txtStran, #txtPodStran").focus(function(){
pageTextFocus = true;
});
$("#txtPodStran").change(function(){
var podStran = $(this).val()
if (podStran < 1){
podStran = 1;
$(this).val(podStran);
};
if (podStran > 99){
podStran=99;
$(this).val(podStran);
};
})
$("#btnHome").click(function(){
location.href = "100/1";
});
$("#btnPrPage").click(function(){
location.href = "877/1";
});
$("#btnNePage").click(function(){
location.href = "100/1";
});
$("#btnPrSubPage").click(function(){
var podstran = 404-1;
if (podstran<1){podstran=3}
location.href = "900/"+podstran;
});
$("#btnNeSubPage").click(function(){
var podstran = 404+1;
if (podstran>3){podstran=1}
location.href = "900/"+podstran;
});
$("#pin").click(function(){
$.get("?pin", function(data){
pin=data;
if (pin==1){$(".podstranLink.selectedSubPage").addClass("redSubPage")}else{$(".podstranLink.selectedSubPage").removeClass("redSubPage")}
})
$("#pin").toggleClass("pinOn");
});
$(document).on('keyup',function(e) {
switch(e.which) {
case 13:
$("#btnGo").click();
break;
case 36: //home
$("#btnHome").click();
break;
case 37: //puščica levo
if(pageTextFocus == false){
$("#btnPrPage").click();
} else {
var stran = $("#txtStran").val()
if (stran < 100){
stran=801;
$("#txtStran").val(stran);
};
};
break;
case 38: //puščica gor
if(pageTextFocus == false){$("#btnPrSubPage").click();};
break;
case 39: //puščica desno
if(pageTextFocus == false){$("#btnNePage").click();};
break;
case 40: //puščica dol
if(pageTextFocus == false){$("#btnNeSubPage").click();};
break;
case 106: //zvezdica
$("#txtStran").focus();
$("#txtStran").select();
break;
}
});
$("#btnGo").click(function(){
var stran = $("#txtStran").val()
var podstran = $("#txtPodStran").val()
location.href = stran+"/"+podstran;
});
$("#k900").addClass("selectedSubPage");
function setStran(stStrani){
vStran=vStran + stStrani;
$("#kbDisplay").html("&nbsp;"+vStran);
if (vStran.length == 3){
location.href = vStran+"/1";
vStran=""
}
}
$("#btnKbPage").click(function(){
$('#keyboard').toggle(0, function(){
kbVidno = !kbVidno;
console.log (kbVidno);
if (kbVidno == true) {
$("#mainDisplay").css("filter", "grayscale(100%)");
$("#kb0").click(function(){setStran("0")});
$("#kb1").click(function(){setStran("1")});
$("#kb2").click(function(){setStran("2")});
$("#kb3").click(function(){setStran("3")});
$("#kb4").click(function(){setStran("4")});
$("#kb5").click(function(){setStran("5")});
$("#kb6").click(function(){setStran("6")});
$("#kb7").click(function(){setStran("7")});
$("#kb8").click(function(){setStran("8")});
$("#kb9").click(function(){setStran("9")});
$("#kbClr").click(function(){vStran="";setStran("")});
} else {
$("#mainDisplay").css("filter", "grayscale(0%)");
}
});
});
//resize map on img
var ImageMap = function (map, img) {
var n,
areas = map.getElementsByTagName('area'),
len = areas.length,
coords = [],
previousWidth = 480;
for (n = 0; n < len; n++) {
coords[n] = areas[n].coords.split(',');
}
this.resize = function () {
var n, m, clen,
x = img.offsetWidth / previousWidth;
for (n = 0; n < len; n++) {
clen = coords[n].length;
for (m = 0; m < clen; m++) {
coords[n][m] *= x;
}
areas[n].coords = coords[n].join(',');
}
previousWidth = img.width;
return true;
};
window.onresize = this.resize;
},
imageMap = new ImageMap(document.getElementById('900_0404'), document.getElementById('mainDisplay'));
imageMap.resize();
return;
})
</script>
</body>
</html>

23
README.md

@ -0,0 +1,23 @@
# teletekst android aplikacija
zaradi prenove teleteksta v 2020 so obstoječe aplikacije za branje teleteksta
postale nedelujoče. Zato sem skupaj spravil tele skripte, ki novo aplikacijo,
ki so jo naredili na RTV, pripravijo za objavo na trgovini google play.
Kršenje avtorskih pravic ni namen te aplikacije, v tem repozitoriju je edina
datoteka, ki je dejansko last rtvslo, 900/404/index.html.
# namestitev na lasten strežnik
aplikacija mora biti zaradi same origin policyja nameščena na posredniškem strežniku. Uporabite nginx.conf in apache.conf, spremenite domene in nastavite apache2 in nginx. domeno morate spremeniti še v 900/404/index.html. S tem naredite
PWA.
# legalno
RTVSLO sem vprašal, če smem njihovo aplikacijo javno objaviti v trgovini play
pod mojim imenom, in strinjali so se.
Če ste si premislili, napišite elektronsko sporočilo na moj e-poštni naslov ali
na SMS na +38664176345 in aplikacijo bom po naročulu nemudoma izbrisal.
od aplikacije nimam nobene koristi, vse delam prostovoljno
Loading…
Cancel
Save

Med zimskimi počitnicami so pričakovani občasni izpadi podomrežja O, ker bodo izvajana testiranja varnosti komunikacijsko-informacijske opreme.