1
1
<!doctype html>
2
2
< html lang ="la ">
3
+ <!--
4
+ Dominium Publicum
5
+ SPDX-License-Identifier: Unlicense
6
+ -->
3
7
4
8
< head >
5
9
< meta charset ="utf-8 ">
10
14
< link rel ="icon " href ="img/favicon.png ">
11
15
< title > Numerordĭnātĭo pictūrae</ title >
12
16
< style >
13
- : root {
14
- /* --bcp47-language: 'lat,prs'; */
15
- --bcp47-language : 'lat' ;
16
- }
17
-
18
17
details > details {
19
18
padding-left : 2em ;
20
19
}
20
+ dt {
21
+ padding-left : 1em ;
22
+ font-size : 0.9em ;
23
+ color : # 666666 ;
24
+ }
25
+ dd {
26
+ padding-left : 2em ;
27
+ font-size : 0.8em ;
28
+ color : # 666666 ;
29
+ }
21
30
22
31
[data-hide-significatum = "1" ] dl [data-significatum = "1" ] {
23
32
display : none;
@@ -57,7 +66,17 @@ <h1>Numerordĭnātĭo pictūrae</h1>
57
66
</ label >
58
67
</ div >
59
68
</ div >
60
-
69
+ </ div >
70
+ < div class ="col-12 ">
71
+ < div class ="mb-3 ">
72
+ < div class ="form-check form-switch ">
73
+ <!-- <input class="form-check-input instrumentum-optionem" type="checkbox" role="switch" id="se" checked> -->
74
+ < input class ="form-check-input instrumentum-optionem " type ="checkbox " role ="switch " id ="se1 " checked >
75
+ < label class ="form-check-label " for ="se1 ">
76
+ Simple velox nomen
77
+ </ label >
78
+ </ div >
79
+ </ div >
61
80
</ div >
62
81
</ div >
63
82
< div class ="col-xxl-8 col-12 ">
@@ -113,9 +132,9 @@ <h1>Numerordĭnātĭo pictūrae</h1>
113
132
< div id ="picturam-notitia ">
114
133
< div class ="alert alert-info ">
115
134
< ul >
116
- < li > Exemplum: < a target ="_blank "
135
+ <!-- < li>Exemplum: <a target="_blank"
117
136
href='./picturam.html#?peritum={"json_iri":"data/exemplum/scientiae-communitatem--sexualitatem.json"}'>./picturam.html#?peritum={"json_iri":"data/exemplum/scientiae-communitatem--sexualitatem.json"}</a>
118
- </ li >
137
+ </li> -->
119
138
< li > Exemplum: < a target ="_blank "
120
139
href ='./picturam.html#?peritum={"json_data":{"10":{},"10:1":{"lat-Latn":{"0":"Exemplum"},"prs-Arab":{"0":"مثال"},"rus-Cyrl":{"0":"Пример"}}}} '> ./picturam.html#?peritum={"json_data":{"10":{},"10:1":{"lat-Latn":{"0":"Exemplum"},"prs-Arab":{"0":"مثال"},"rus-Cyrl":{"0":"Пример"}}}}</ a >
121
140
</ li >
@@ -147,6 +166,12 @@ <h1>Numerordĭnātĭo pictūrae</h1>
147
166
< script src ="https://cdnjs.cloudflare.com/ajax/libs/d3/7.2.1/d3.min.js "
148
167
integrity ="sha512-wkduu4oQG74ySorPiSRStC0Zl8rQfjr/Ty6dMvYTmjZw6RS5bferdx8TR7ynxeh79ySEp/benIFFisKofMjPbg== "
149
168
crossorigin ="anonymous " referrerpolicy ="no-referrer "> </ script >
169
+
170
+
171
+ <!--
172
+ _[eng-Latn] Note: this interface code _works_ to glue the libraries
173
+ to the interface, but this part is not as well documented [eng-Latn]_
174
+ -->
150
175
< script type ="module ">
151
176
import * as Picturam from './lib/numerordinatio-picturam.mjs' ;
152
177
@@ -170,8 +195,8 @@ <h1>Numerordĭnātĭo pictūrae</h1>
170
195
function picturam_css ( object_de_array , stylesheet_id = 'picturam-stylesheet' ) {
171
196
let picturamStylesheet = document . getElementById ( stylesheet_id )
172
197
let crudumStylesheet = [ ]
173
- console . log ( picturamStylesheet )
174
- console . log ( object_de_array )
198
+ // console.log(picturamStylesheet)
199
+ // console.log(object_de_array)
175
200
176
201
for ( let [ selector , optionem ] of Object . entries ( object_de_array ) ) {
177
202
crudumStylesheet . push ( `${ selector } {\n ${ optionem . join ( ";\n " ) } \n}` )
@@ -181,18 +206,9 @@ <h1>Numerordĭnātĭo pictūrae</h1>
181
206
}
182
207
window . picturam_css = picturam_css
183
208
184
- // picturam_css({
185
- // 'dl [data-bcp47-language="Lat" i]': [
186
- // 'display: none;'
187
- // ],
188
- // 'dl [data-bcp47-language="lat" i]': [
189
- // 'display: none;'
190
- // ],
191
- // })
192
-
193
209
function render_optionem ( ) {
194
210
let picturam_css_optionem = { }
195
- console . log ( 'render_optionem' )
211
+ // console.log('render_optionem')
196
212
let details = document . querySelectorAll ( '#picturam-html details' ) ;
197
213
// let significatum = document.querySelectorAll('[data-significatum]');
198
214
[ ...details ] . map ( item => document . getElementById ( 'ce' ) . checked ? item . setAttribute ( "open" , 1 ) : item . removeAttribute ( "open" ) )
@@ -244,7 +260,16 @@ <h1>Numerordĭnātĭo pictūrae</h1>
244
260
}
245
261
}
246
262
247
- console . log ( 'picturam_css_optionem' , picturam_css_optionem )
263
+ let se1_val = document . querySelector ( '#se1' ) . checked
264
+ if ( se1_val ) {
265
+ // picturam_css_optionem[`dl dt.meta-in-lineam]`] = ['display: block !important;']
266
+ } else {
267
+ picturam_css_optionem [ `.meta-in-lineam` ] = [ 'display: none;' ]
268
+ }
269
+
270
+ // meta-in-lineam
271
+
272
+ // console.log('picturam_css_optionem', picturam_css_optionem)
248
273
picturam_css ( picturam_css_optionem )
249
274
250
275
@@ -282,10 +307,10 @@ <h1>Numerordĭnātĭo pictūrae</h1>
282
307
render ( data )
283
308
} )
284
309
} else if ( resultatum . json_data ) {
285
- console . log ( 'resultatum.json_data' , resultatum . json_data )
310
+ // console.log('resultatum.json_data', resultatum.json_data)
286
311
render ( resultatum . json_data )
287
312
} else if ( resultatum . json_form ) {
288
- console . log ( 'resultatum.json_form' , resultatum . json_form )
313
+ // console.log('resultatum.json_form', resultatum.json_form)
289
314
document . getElementById ( 'picturam-form' ) . style . display = 'block'
290
315
document . getElementById ( 'picturam-form-textarea' ) . value = JSON . stringify ( resultatum . json_form , null , 2 )
291
316
document . getElementById ( 'picturam-form-actionem' ) . addEventListener ( 'click' , function ( el ) {
@@ -298,7 +323,11 @@ <h1>Numerordĭnātĭo pictūrae</h1>
298
323
console . log ( 'no json_iri' , resultatum )
299
324
}
300
325
}
301
- console . log ( resultatum )
326
+ // console.log(resultatum)
327
+ }
328
+
329
+ function hoverdetails ( el ) {
330
+
302
331
}
303
332
304
333
let picturam_html_wp = document . getElementById ( 'picturam-html' )
@@ -316,44 +345,9 @@ <h1>Numerordĭnātĭo pictūrae</h1>
316
345
picturam_html_wp . setAttribute ( "data-hide-significatum" , "1" )
317
346
}
318
347
} )
319
- // document.getElementById('cl').addEventListener('change', function (el) {
320
- // let rem = cl.value.split(',').map(item => item.trim())
321
-
322
- // // console.log('changed', el.checked, el)
323
- // console.log(cl.value)
324
- // console.log('rem', rem)
325
- // if (rem && rem.length > 0) {
326
- // rem.forEach(language => {
327
- // picturam_html_wp.setAttribute("data-show-bcp47-language", language)
328
- // });
329
- // } else {
330
- // picturam_html_wp.removeAttribute("data-hide-significatum")
331
- // }
332
- // })
333
-
334
- // function fontem_data(functionem_regressae) {
335
- // let _functionem_regressae = functionem_regressae || console.log
336
- // let de_hash = {}
337
- // let _hash = document.location.hash
338
- // if (_hash.indexOf('#?json_iri=') > -1) {
339
- // let json_iri = _hash.replace('#?json_iri=', '')
340
-
341
- // d3.json(json_iri).then((data) => {
342
- // functionem_regressae(data)
343
- // });
344
- // }
345
- // functionem_regressae(de_hash)
346
- // }
347
348
348
349
fontem_data_peritum ( )
349
- // fontem_data(function (data) {
350
- // render(data)
351
- // })
352
-
353
350
354
- // d3.json("data/exemplum/scientiae-communitatem--sexualitatem.json").then((data) => {
355
- // render(data)
356
- // });
357
351
</ script >
358
352
</ body >
359
353
0 commit comments