PageSourceSearch

https://www.mladina.si/inc/prodajaLib.js?_dc=201812d

js mladina.si collected 2026-09-24 08:56:01 UTC 3,157 bytes, 153 lines download raw bytes

1function ProdajaLibJSOdpriZapri(e, slike_B){
2	ProdajaLibJSprikaziSkrij(e);
3	ProdajaLibJSzamenjajIkono(e);
4}
5
6
7
8function ProdajaLibJSprikaziSkrij(e){
9var el = document.getElementById(e);
10	if ( el.style.display == 'none')
11		el.style.display = '';
12	else
13		el.style.display = 'none';
14}
15
16
17function ProdajaLibJSzamenjajIkono(e){
18	if (! ikone_A ) return;
19	var el = document.getElementById(e);
20	var elSlika = document.getElementById('img_' + e);
21
22
23
24	if ( el.style.display == 'none' )
25		elSlika.src = ikone_A[1];
26	else
27		elSlika.src = ikone_A[0];
28
29}
30
31
32// prodaja kosara
33function ProdajaKosaraBrisiElement(id_S){
34var f = document.getElementById('pro').form;
35	f.del.value = id_S;
36	f.submit();
37}
38
39
40// kartice
41function ProdajaLibJSIzberiKartico(tcard){
42var el = document.getElementById('TCard');
43	el.value = tcard;
44}
45
46
47// skrivanje večih elementov
48function ProdajaLibJSskrijElemente(forma, elementi_A){
49var obj;
50	for (var i = 0; i < elementi_A.length; i++){
51		obj = forma.elements[elementi_A[i]];
52		if (obj) {
53			obj.style.visibility='hidden';
54		}
55	}
56}
57
58
59
60///////////////////////////////////////////////   ŽETONI   //////////////////////////////////////////
61
62
63// strara opcija z linki
64function mladinaZetoni(op){
65var f = document.forms['fZetoni'];
66	f.zetonOpcija.value = op;
67	if ( f.TipKartice.value == "")
68		j$('idZetoniSporocilo').innerHTML = "<p>Izberite kartico</p>";
69	else {
70		f.submit();
71		$('div#idDetajlZetoni').html('<h2>Prosimo, počakajte...</h2>');
72	}
73}
74
75
76
77// nova opcija z radio box-i
78function mladinaZetoniSubmit(){
79var f = document.forms['fZetoni'];
80var op = "";
81
82	if(f.zetonOpcija.length){
83
84		for(var i=0; i < f.zetonOpcija.length; i++){
85			if( f.zetonOpcija[i].checked){
86				op = f.zetonOpcija[i].value;
87				break;
88			}
89		}
90	}else{
91		op = f.zetonOpcija.value;
92	}
93
94	if ( op == "")
95		j$('idZetoniSporocilo').innerHTML = "<p>Izberite opcijo zakupa</p>";
96	else {
97		f.submit();
98		$('div#idDetajlZetoni').html('&nbsp;<br />&nbsp;<br />&nbsp;<br /><h2>Prosimo, počakajte...</h2><br />&nbsp;<br />&nbsp;<br />&nbsp;<br />&nbsp;');
99	}
100
101}
102
103
104
105function mladinaZetoniNakup2(op, nacin){
106    var f = document.forms['fZetoni'];
107
108    f.zetonOpcija.value = op;
109
110    if(nacin == "M"){
111        f.TipKartice.value = "MONETA";
112
113        if( op == "C_1"){
114            // zakup članka
115
116            if(f.koda2) f.koda2.value = "";
117
118            if(f.koda.value.length != 5){
119                j$('idZetoniSporocilo').innerHTML = "<p>Vnesite 5 mestno kodo!</p>";
120                return;
121            }
122        }else if( op == "D_7"){
123            // tedenski zakup
124
125            if(f.koda) f.koda.value = "";
126
127            if(f.koda2.value.length != 5){
128                j$('idZetoniSporocilo').innerHTML = "<p>Vnesite 5 mestno kodo!</p>";
129                return;
130            }
131        }
132
133
134        f.submit();
135
136    }else{
137        f.TipKartice.value = "NESTPAY_PGW";
138        f.submit();
139    }
140}
141
142
143
144
145function mladinaZetoniNarocnina(f, planID){
146    f.btsubs_planid.value = planID
147    //f.action = "/inc/bt/";
148    f.submit();
149}
150
151
152
153

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.