-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
148 lines (141 loc) · 6.89 KB
/
index.html
File metadata and controls
148 lines (141 loc) · 6.89 KB
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
<!DOCTYPE HTML>
<html lang="en">
<head> <title>elefteron</title>
<meta charset="utf-8" />
<META content="text/html; charset=utf-8" http-equiv="Content-Type" />
<META name="description" content="elefteron on GitHub" />
<META name="author" content="mailto:elefter@abv.bg" />
<!--
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
https://w3c.github.io/webappsec-trusted-types/dist/spec/#trusted-html
https://content-security-policy.com/
https://content-security-policy.com/#source_list
<meta http-equiv="Content-Security-Policy" content="default-src 'self';">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; connect-src 'self'; img-src 'self'; style-src 'self'; base-uri 'self'; form-action 'self';">
-->
<!-- ? -- > <meta http-equiv="Content-Security-Policy" content="*" /> <!-- -->
<style>
HTML, body{margin-left: 2px; margin-right: 1px; margin-top: 2px; margin-bottom: 2px;
padding: 0; width: 100%; height: 100%; z-index: 10; overflow: scroll
}
body {font-family:Verdana,Tahoma,'Arial Cyr',Arial,Helvetica,'MS Sans Serif','Sans Serif',Geneva,Hebar;
font-size:10pt; line-height:11pt; text-decoration:none; /* underline */
text-align:left;font-style:normal; vertical-align:top;
margin-right:"5mm"; margin-bottom:"5mm";
margin-left:"5mm"; margin-top:"5mm";
background-color:#302525; color:#ffeedd;
}
ul,li {list-style-type: circle; margin-left:15px; padding: 0;}
.subhd { color:#d93600;}
a:visited { color:#ff8040; text-decoration:none;}
a:active { color:#d93600; text-decoration:none;}
a:link { color:#d93600; text-decoration:none;}
a:hovel { color:#00d93b; text-decoration:none;}
table {border:"0" cell-spacing:"5"}
td {vertical-align: text-top;}
</style>
<script type="text/javascript">
// <meta http-equiv="refresh" content="0; url=https://github.com/elefteron">
function undef(v) {return (typeof(v)==='undefined') }
function getid(id){
if(undef(id) || id=='') { sys('no/empty id');return}
var id_=document.getElementById(id)
if(undef(id_) || id_=='') { sys('miss id'); return}
return id_
}
function sys(s) {document.write(s)}
function out(){// out(id_,p1,...)
var s='',id_=arguments[0]; // Variadic function use arguments[] special variable!
var clear=(arguments[1]==null) // flag for begin with null to clear box
for (var i=1; i<arguments.length; ++i)
if(arguments[i]!=null && arguments[i]!='') s+= arguments[i]; // skip empty's
if(undef(id_) || id_==null || id_=='') sys('»'+s); // document.write(s)
else try {if(clear) id_.innerHTML=''; id_.innerHTML+=s}
catch(Exception){sys('»»'+s)}
}
function set_root(new_root){ var msg='';
switch (new_root) {
case 'locdev': root_=root.locdev; break;
case 'gitdev': root_=root.gitdev; break;
default: msg=' bad set_root:'+new_root; root_==''; break;
}
console.log('root:'+root_+msg);
if(msg!='') alert('*** err "'+msg+'" on set_root()');
out(show_root_,null);
out(show_root_,root_);
out(mnu_,null);
out(mnu_,mnu_gen());
}
function mnu_gen(){ var buf='', path
buf+='<ul>'
for(i=0;i<prj.length;i++){ // 'https://github.com/elefteron/'
if(prj[i].nam=='') buf+='<br/>';
else { path=root_+prj[i].pth; // add toot before path
if(prj[i].pth.indexOf('https://')>=0
|| prj[i].pth.indexOf('http://')>=0
|| prj[i].pth.indexOf('file://')>=0
) { path=prj[i].pth; // console.log(prj[i].pth.indexOf('https://'))
}
buf+='<li><a class="subhd" '+'target="'+prj[i].trg+'" '
+'href="'+path+'" '+'title="'+path+'" '+'>'+prj[i].nam+'</a></li>';
}
}
buf+='</ul>';
return buf;
}
root= {locdev:'file:///F:/elefter.github.io/'
,gitdev:'https://elefteron.github.io/'}
,root_='';
prj=[{nam:'root' ,trg:'_self' ,pth:'index.html'}//_blank|_self|_parent|_top|framename
,{nam:'github' ,trg:'_blank',pth:'https://github.com/elefteron/elefteron.github.io'}
,{nam:'descr' ,trg:'work' ,pth:'README.txt'}
,{nam:''}
,{nam:'icard' ,trg:'work' ,pth:'icard/icard2-ea+.htm'}
// ,{nam:'cv' ,trg:'work' ,pth:'cv/elefter-arnaudov_cv_dotbrain 2020-09-06.pdf'}
,{nam:''}
// ,{nam:'SVC' ,trg:'work' ,pth:'svc/SVC.htm'}
,{nam:'SEQ' ,trg:'work' ,pth:'seq/SEQ.htm'}
,{nam:'Bible_bg' ,trg:'work' ,pth:'Bible-bg.2013/Bible-bg.2013.index.htm'}
// ,{nam:'Bible_bg OT',trg:'work' ,pth:'Bible-bg.2013/bible-bg.OT.xml.html'}
,{nam:'Bible_bg NT',trg:'work' ,pth:'Bible-bg.2013/bible-bg.NT.xml.html'}
,{nam:'FontOrg-Make',trg:'work' ,pth:'fontorg/fontorg-makecat.htm'}
,{nam:'FontOrg-Cat',trg:'work' ,pth:'fontorg/fontorg-catalog.htm'}
,{nam:'CharMap' ,trg:'work' ,pth:'charmap/CharMap-table2.htm'}
,{nam:''}
,{nam:'x14_widget',trg:'work' ,pth:'x14/run/x-widget.htm'}
,{nam:'Xclock' ,trg:'work' ,pth:'xclock/clock-24+.htm'}
,{nam:''}
,{nam:'proj' ,trg:'work' ,pth:'proj/proj.htm'}
,{nam:'boot_log' ,trg:'work' ,pth:'boot-log/boot-log.htm'}
] // relative paths
// --- https://github.com/elefteron/elefteron.github.io/edit/main/svc/README.md
mnu_=null; show_root_=null;
</script>
</head>
<body> elefteron on
<select id="sel_root" onchange="set_root(this.value)" style="height:22px;">
<option value="gitdev" selected="selected">github</option>
<option value="locdev" >local</option>
</select>
<span id="show_root">...</span>
<br>
<table>
<tr><td>
<span id="mnu" name="mnu"></span>
</td><td>
<iframe title="work" id="work" name="work" height="820px" width="920px"
style="border:none; background-color:#575148;"
srcdoc="
<h1>elefteron.github.io</h1>" src="README.txt">
</iframe>
</td></tr>
</table>
<script>
mnu_=getid("mnu"); // console.log('root:'+root_)
show_root_=getid("show_root"); // select root {locdev, gitdev, gitweb}
out(show_root_,null);
out(show_root_,root_);
set_root('gitdev');// -> mnu_gen()
</script>
</body>
</html>