-
Notifications
You must be signed in to change notification settings - Fork 3
/
wersindmeinefreunde.html
27348 lines (22272 loc) · 864 KB
/
wersindmeinefreunde.html
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="de">
<!-- TODO regular updates
TODO update page number
TODO update version
-->
<!--(lang="en") TODO messung körperspannung gegen signal ground -->
<!--(lang="en") TODO bekannte menschen und ihr persönlichkeitstyp -->
<!--(lang="en")
TODO refactor annotations from
<div class="annotation" onClick="clickAnnotation(this)" title='...'>...</div>
to something like
<div class="annotation">...<div style="display:none" class="annotation-content">...</div></div>
so the annotation-content is html
also refactor html comments to hidden html tags like
<div style="display:none" class="comment">...</div>
so the comment-content is html
-->
<!--(lang="en") NOTE please use a text editor with automatic code folding
im using the "vscode" editor.
actually "vscodium", the open source version of vscode.
for vscode, i have the plugin "explicit folding".
my folding rules are defined in alchi/.vscode/settings.json
without code folding,
you will have to navigate about 20000 lines of html code ...
content starts at <article id="whoaremyfriends-german">
-->
<!--(lang="en") based on `alchi/src/whoaremyfriends/whoaremyfriends.html`
also based on
```
alchi/src/book/
alchi/src/alchi-flyer/
alchi/src/dorfkultur/
```
-->
<!--(lang="en") TODO use an XML linter for automatic refactoring
example:
`title=""` should come first in `<svg>` and its children
TODO lint annotations:
copy content to attribute
```
<div content="Hello" class="annotation" title='
...
'>Hello</div>
```
to make annotations readable with code folding.
the folded node looks like
```
<div content="Hello" class="annotation" title='...
```
so the content is still readable
lint html:
allow either 1 or 3 empty lines between nodes.
because 2 empty lines are ugly.
example:
```
<div></div>
<div></div>
<div></div>
```
exception: dont apply this rule in `<pre>`
challenge: parse CSS for `white-space:pre`
-->
<!--(lang="en")
TODO replace all `<div class="annotation"` with `<span class="annotation"`
-->
<head>
<meta charset="utf-8">
<title>Pallas. Wer sind meine Freunde. Gruppenaufbau nach Persönlichkeitstyp</title>
<!--(lang="en") TODO keep in sync with intro -->
<meta name="description" content='
Gruppenaufbau nach Persönlichkeitstyp.
Wer sind meine Freunde?
Die Frage klingt einfach ... aber, es ist kompliziert,
und die Psychologie-Experten haben bis heute keine Antwort.
Also: Wir müssen uns selber helfen.
'>
<!-- <notranslate> -->
<meta name="author" content="Milan Hauth">
<!-- TODO update version -->
<link rel="schema.dcterms" href="http://purl.org/dc/terms/">
<meta id="version" name="dcterms.modified" content="2024-10-28">
<!--(lang="en") document ID for hypothesis annotations -->
<link rel="canonical" href="https://milahu.github.io/alchi/src/whoaremyfriends/wersindmeinefreunde.html">
<!-- </notranslate> -->
<meta lang="en" ol="en" class="foldme" name="keywords" content="
who are my friends,
team composition,
matchmaking,
offline matchmaking,
interpersonal compatibility,
teamwork,
collaboration,
mate selection,
self organization,
self governance,
bottom up organization,
extended families,
village culture,
ecovillages,
small is beautiful,
small states,
minarchy,
human compatibility chart,
human compatibility algorithm,
human compatibility system,
human relations,
human resource managment,
management,
relationship management,
personality type compatibility chart,
personality type compatibility algorithm,
personality type compatibility system,
personality type,
compatibility algorithm,
compatibility chart,
compatibility system,
compatibility chart without calender astrology,
scientific compatibility chart,
dating algorithm,
dating formula,
love algorithm,
love formula,
dunbar's number,
utopia,
paradise on earth,
real communism,
small communism,
village communism,
all talents are beautiful,
naturalism,
natural order,
bioconservative,
bioconservatism,
natural philosophy,
natural religion,
primitive culture,
simple solutions,
simple and effective,
radical solutions,
dualism,
feedback,
feedback loop,
sociology,
social psychology,
work life balance,
four elements,
four basetypes,
two factor model of personality,
radical,
concept,
intuitive,
intuition,
prediction,
hypothesis,
research proposal,
research idea,
world formula,
theory of everybody,
theory of everything,
idealism,
wild theory,
alternative medicine,
irrational,
irrational world view,
esoteric,
esoteric cosmology,
alternative,
my kingdom is not of this world,
heretic,
dissident,
criminal,
opposition,
fundamental opposition,
subculture,
small groups,
gangs,
gang culture,
alternative culture,
alternative religion,
postcollapse,
post-collapse culture,
postcollapse culture,
postcrash,
post crash,
postmodern culture,
subjectivity,
nietzsche,
friedrich nietzsche,
ayn rand,
individualism,
liberalism,
liberal,
classical liberal,
classic liberal,
liberation ideology,
liberation theology,
abuse of power,
toxic rational,
toxic rationality,
balance,
justice,
natural selection,
utopia,
renaturation,
run your family like a business,
manage family like a business,
rational family management,
efficient family management,
organize your family,
family organization,
family business,
emotional aspects of human resource management,
personality psychology in human resource management,
small business,
managing talent in a family business,
organizational psychology,
industrial psychology,
early education,
talent scouting,
primitive culture,
agile development,
agile development in family,
agile family,
family meeting,
core values,
long-term strategies and short-term tactics,
talent management,
recruiting,
talent scouting,
personnel selection,
job performance,
hybrid theory,
both are right,
">
<!-- <notranslate> -->
<!-- `files/alchi-pallas-symbol.small.svg` -->
<link rel="icon" type="image/svg" href="data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%221.1%22%20viewBox%3D%220%200%2016%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20id%3D%22pallas-symbol%22%3E%0A%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23fff%22%20stroke%3D%22%23fff%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%226%22%2F%3E%0A%3Cpath%20d%3D%22m8%2B10%204-4%20-4-4%20-4%2B4%20z%20m0%200v4%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.4%22%2F%3E%0A%3Cpath%20d%3D%22m5%2012h6%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--(lang="en") non-standard tags, human readable -->
<!--(lang="en") TODO maybe use dc tags -->
<meta name="author.email.gmail" content="[email protected]">
<meta name="author.email.protonmail" content="[email protected]">
<meta name="author.email.tutamail" content="[email protected]">
<meta name="author.email.torbox" content="milahu@torbox36ijlcevujx7mjb4oiusvwgvmue7jfn2cvutwa6kl6to3uyqad.onion">
<meta name="author.phone" content="+49 151 7205 9978">
<meta name="author.offline" content='
Milan Hauth
Jägerstraße 10
83308 Trostberg
Germany
'>
<meta name="author.chat.telegram" content="+49 151 7205 9978">
<meta name="author.chat.xmpp.jabber.de" content="[email protected]">
<meta name="author.chat.irc.libera.chat" content="[email protected]">
<meta name="author.social.reddit" content="https://www.reddit.com/user/milahu">
<meta name="author.social.reddit.censored" content="https://www.reveddit.com/y/milahu/">
<meta name="author.social.reddit.2" content="https://www.reddit.com/user/milahu2">
<meta name="author.social.gab" content="https://gab.com/milahu">
<meta name="author.social.facebook" content="https://www.facebook.com/mila.nautikus"><!--(lang="en") note: "You must log in to continue" -->
<meta name="author.social.facebook.2" content="https://www.facebook.com/findus.kohlhase"><!--(lang="en") note: "You must log in to continue" -->
<meta name="author.social.lastfm" content="https://www.last.fm/user/emmhu21">
<meta name="author.social.lastfm.2" content="https://www.last.fm/user/milahu">
<meta name="author.social.lastfm.3" content="https://www.last.fm/user/kroetikroet">
<meta name="author.social.lastfm.4" content="https://www.last.fm/user/m_11">
<meta name="author.social.youtube" content="https://www.youtube.com/milahu">
<meta name="author.social.imgur" content="https://imgur.com/user/milaxnuts">
<meta name="author.social.hypothesis" content="https://hypothes.is/users/milahu">
<meta name="author.social.substack" content="https://substack.com/@milahu">
<meta name="author.social.disqus" content="https://disqus.com/by/milahu/">
<meta name="author.social.goodreads" content="https://www.goodreads.com/milahu">
<meta name="homepage" content="https://github.com/milahu/alchi">
<meta name="homepage.codeberg" content="https://codeberg.org/milahu/alchi">
<meta name="homepage.gitlab" content="https://gitlab.com/milahu/alchi">
<meta name="homepage.srht" content="https://sr.ht/~milahu/alchi">
<meta name="homepage.tor.darktea" content="http://it7otdanqu7ktntxzm427cba6i53w6wlanlh23v5i3siqmos47pzhvyd.onion/milahu/alchi">
<meta name="homepage.tor.righttoprivacy" content="http://gg6zxtreajiijztyy5g6bt5o6l3qu32nrg7eulyemlhxwwl6enk6ghad.onion/milahu/alchi">
<meta name="homepage.tor.milahuuuc365" content="http://git.milahuuuc3656fettsi3jjepqhhvnuml5hug3k7djtzlfe4dw6trivqd.onion/milahu/alchi">
<!-- </notranslate> -->
<!--(lang="en") legal stuff. short: zero limits and zero warranty
sorry, i must include a license,
otherwise the braindead legal system assumes "all rights reserved".
[since when, actually? in the past, all content was "public domain" by default.]
i want my content to be "public domain".
the closest license to "public domain" is the "MIT license",
which gives you all freedoms and zero warranty:
-->
<link rel="schema.dc" href="http://purl.org/dc/elements/1.1/">
<!-- <notranslate> -->
<meta lang="en" ol="en" name="dc.rights" content='
MIT License
Copyright (c) 2022 Milan Hauth
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The Software is provided "as is", without warranty of any kind, express or
implied, including but not limited to the warranties of merchantability,
fitness for a particular purpose and noninfringement. In no event shall the
authors or copyright holders be liable for any claim, damages or other
liability, whether in an action of contract, tort or otherwise, arising from,
out of or in connection with the Software or the use or other dealings in the
Software.
'>
<!-- </notranslate> -->
<!--(lang="en") translated license.
note: only the original license in english is legally binding.
do not rely on the inofficial translated license.
see also:
https://github.com/milahu/mit-license
-->
<meta lang="de" class="notranslate" name="inofficial-translated-mit-license-de" content='
MIT Lizenz
Copyright (c) 2022 Milan Hauth
Jedem, der eine Kopie dieser Software und der zugehörigen
Dokumentationsdateien (die "Software") erhält, wird hiermit kostenlos die
Erlaubnis erteilt, ohne Einschränkung mit der Software zu handeln,
einschließlich und ohne Einschränkung der Rechte zur Nutzung, zum Kopieren,
Ändern, Zusammenführen, Veröffentlichen, Verteilen, Unterlizensieren und/oder
Verkaufen von Kopien der Software, und Personen, denen die Software zur
Verfügung gestellt wird, dies unter den folgenden Bedingungen zu gestatten:
Der obige Urheberrechtshinweis und dieser Genehmigungshinweis müssen in allen
Kopien oder wesentlichen Teilen der Software enthalten sein.
Die Software wird ohne Mängelgewähr und ohne jegliche ausdrückliche oder
stillschweigende Gewährleistung, einschließlich, aber nicht beschränkt auf die
Gewährleistung der Marktgängigkeit, der Eignung für einen bestimmten Zweck und
der Nichtverletzung von Rechten Dritter, zur Verfügung gestellt. Die Autoren
oder Urheberrechtsinhaber sind in keinem Fall haftbar für Ansprüche, Schäden
oder andere Verpflichtungen, ob in einer Vertrags- oder Haftungsklage, einer
unerlaubten Handlung oder anderweitig, die sich aus oder in Verbindung mit der
Software oder der Nutzung oder anderen Geschäften mit der Software ergeben.
'>
<!--(lang="en") TODO allow to select pages in the "bindery" layout engine
to avoid the browser's slow "print preview".
in my case, rendering the screen layout takes 30 seconds
and rendering the print preview takes another 50 seconds.
so when i want to print just one page, this is a waste of time.
-->
<!--(lang="en") TODO replace bindery with pagedjs?
https://github.com/pagedjs/pagedjs
https://gitlab.coko.foundation/pagedjs/pagedjs/
https://github.com/evnbr/bindery/issues/132 # similar projects, pagedjs is a terrible mess ... not beginner-friendly
-->
<!--(lang="en") book layout engine, based on https://github.com/evnbr/bindery -->
<script src="src/bindery/bindery.umd.js"></script>
<!--(lang="en")
bootstrap user interface library
https://getbootstrap.com/
changes in default style
https://getbootstrap.com/docs/5.2/content/reboot/
FIXME headings too large
-->
<link rel="stylesheet" type="text/css" href="src/bootstrap/bootstrap.css">
<script defer src="src/bootstrap/bootstrap.bundle.js"></script>
<!--(lang="en") TODO move script + style to external files -->
<style>
/*
bootstrap: fix darkmode: black stroke -> white stroke
TODO find a better framework that works with darkreader extension
*/
.navbar {
--darkreader-bgimg--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath opacity='0.55' stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
:root[data-darkreader-mode]
.btn-close {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath opacity='0.55' stroke='white' d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}
</style>
<!--(lang="en") annotations -->
<!--(lang="en") hypothesis only works online, so this script is external -->
<!--(lang="en") uses `<link rel="canonical"` to identify this document -->
<!--(lang="en") default off. TODO enable from navbar -->
<!-- <notranslate> -->
<!--
<script async src="https://hypothes.is/embed.js"></script>
-->
<!-- </notranslate> -->
<!--(lang="en") note: our style must come after bootstrap.min.css -->
<style>
/* FIXME width 1105px, zoom 100%, dpi 144? -> horizontal scrollbar in grid view */
hr {
height: 0;
border: none;
margin-block-start: 0;
margin-block-end: 0;
}
.pre-line {
white-space:pre-line;
}
body {
font-family: sans-serif;
font-size: 10pt;
}
body.screen-layout {
text-align: center;
}
body.screen-layout article#content {
--print-margin: 15mm;
--narrow-screen-margin: 5%;
text-align: left;
/* DIN A5 */
--paper-page-width: 148mm;
max-width: calc(var(--paper-page-width) - 2 * var(--print-margin));
margin: 0 auto;
/*
padding: 0 min(var(--print-margin), var(--narrow-screen-margin));
box-sizing: border-box;
outline: solid 1px grey;
*/
}
body.screen-layout .narrow-scroll {
width: 100%;
overflow: auto;
}
/*
body.screen-layout article#content table {
width: 100%;
overflow: auto;
}
*/
h1 {
font-size: 250%;
}
h1, h2, h3 {
font-weight:normal;
}
/* NOTE h4 is font-weight:bold by default */
/* FIXME h5 is too small */
/* FIXME too much vertical space before headings */
h1, h2, h3, h4 {
margin-block-start: 0.33em;
margin-block-end: 0.33em;
}
h4 {
font-weight: bold;
}
div.smilie {
display: inline-block;
/*font-size: 12em;*/
writing-mode: vertical-lr;
margin: auto;
}
/*
div.smilie:before {
content: "";
vertical-align: sub;
}
*/
/* debug
* {
outline: solid 1px red;
}
*/
table.macro-ratios {
width: 80%;
margin: auto;
white-space: nowrap;
}
/* no effect
table.macro-ratios > tr > td {
padding-right: 0.5em;
}
*/
/* no effect
table.macro-ratios > tr > td:nth-child(2) {
width: 100%;
}
*/
table.macro-ratios table {
width: 100%;
margin-top: 0.5em;
border-collapse: collapse;
}
table.macro-ratios table td {
border: solid 1px black;
text-align: center;
}
/* <div class="annotation" */
div.annotation {
display: inline;
background: rgba(255, 255, 0, 0.4); /* transparent yellow */
cursor: pointer;
}
div.annotation:hover {
background: rgba(255, 255, 0, 0.6); /* transparent yellow */
}
@media print {
div.annotation {
background: none;
}
.screen-layout-only {
display: none;
}
}
.bindery-print-sheet {
height: auto !important; /* workaround https://github.com/evnbr/bindery/issues/109 */
}
/* hide bindery menu on scroll down */
.bindery-controls {
/* position: sticky; */
position: static !important;
}
.bindery-sup {
vertical-align: baseline;
font-size: 100% !important;
}
.xcenter {
text-align: center;
}
.xcenter > * {
display: inline-block;
}
.box {
border: solid 1px black; /* TODO better for print? */
padding: 0.2em;
display: inline-block;
white-space: pre-line;
white-space: nowrap;
}
/* moved to javascript. when copying text, square braces should be copied too.
.bindery-sup:before {
content: " [";
}
.bindery-sup:after {
content: "]";
}
*/
/*
Hypothesis sidebar appears in PDF export https://github.com/manubot/rootstock/issues/280
probably blame the bindery style
*/
@media only print {
hypothesis-sidebar {
display: none !important;
}
* {
/* fix: print black text instead of grey text */
/* grey text was produced by src/bootstrap/bootstrap.css */
color: black !important;
}
}
.monospace {
font-family: monospace;
/* in my case, the monospace font is larger than the sans font */
font-size: 92%;
}
.hidden {
/* better than wrapping content in html comments and escaping nested comments -->
/* this is not working. (why?) instead, i use style="display:none" */
/* TODO javascript: find all elements with style="display:none" and make them expandable in the screen layout */
display: none !important;
}
.smalltext {
font-size: 80%; /* this has no effect */
/* browsers enforce a minimum font size. default 9px. can be more */
/* https://stackoverflow.com/questions/2421056/how-can-i-override-the-minimum-font-size-in-firefox/12631243 */
}
.smalltext-block {
/* workaround for browser's minimum font size */
--bindery-content-width: calc(var(--bindery-page-width) - var(--bindery-margin-inner) - var(--bindery-margin-outer));
width: calc(1.25 * var(--bindery-content-width));
transform: scale(0.8);
transform-origin: top left;
/*margin-bottom: -5em; TODO calc this with javascript? */
}
/*
TODO refactor
a: <div class="para">
b: <div>
css selector:
section > div
*/
div.para {
/* note: margins are collapsed
https://stackoverflow.com/questions/3069921/what-is-the-point-of-css-collapsing-margins
*/
margin-top: 0.5em;
margin-bottom: 0.5em;
line-height: 110%;
}
table.four-basetypes,
table.two-parents,
table.two-properties {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.nowrap {
white-space: nowrap;
}
/* custom element <nw> */
nw {
white-space: nowrap;
}
/* boolean attribute nw */
*[nw] {
white-space: nowrap;
}
/* custom element <note> */
note {
display: inline;
}
/* custom element <l>. l = language. <l en> <l de> ... */
l {
display: inline;
}
/* custom element <nt>. nt = notranslate. <nt> <nt en> <nt de> ... */
nt {
display: inline;
}
div.hspace {
display: inline-block;
}
div.nowrap {
display: inline;
}
.footnote {
white-space: nowrap;
}
/* make urls left-aligned */
.footnote-number {
display: inline-block;
width: 1.8em;
text-align: right;
}
.bindery-running-header {
--bindery-content-width: calc(var(--bindery-page-width) - var(--bindery-margin-inner) - var(--bindery-margin-outer));
width: var(--bindery-content-width);
}
.running-header {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.running-header-title-left {
float: right;
}
.running-header-title.hover a {
color: orange;
}
/* css parent selector not implemented
https://stackoverflow.com/questions/1014861
.running-header-title-left a:hover ~ .running-header-title-right a {
color: orange;
}
*/
/*
.footnote-number:before {
content: " [";
}
.footnote-number:after {
content: "]";
}
*/
table.four-basetypes td {
border-left: solid 1px black; /* FIXME pixel hinting */
text-align: center;
vertical-align: top;
padding-left: 5px;
}
table.four-basetypes th {
border-right: solid 1px black; /* FIXME pixel hinting */
text-align: left;
vertical-align: top;
padding-right: 5px;
font-weight: normal;
}
table.four-basetypes {
border-spacing: 2px 0;
/*white-space: nowrap;*//* no linebreaks */
font-size: 90%; /* FIXME this has no effect */
/* workaround for smaller font size */
/*
transform: scale(0.86);
margin-bottom: -2.5em;
*/
transform-origin: top left;
}
table.four-basetypes tbody+tbody tr:first-child * {
border-top: solid 1px black;
}
table.two-properties {
border-spacing: 2px 0;
/*white-space: nowrap;*//* no linebreaks */
font-size: 90%; /* FIXME this has no effect */
/* workaround for smaller font size */
/*
transform: scale(0.86);
margin-bottom: -2.5em;
*/
transform-origin: top left;
}
table.two-properties th {
/*border-right: solid 1px black; /* FIXME pixel hinting */
text-align: left;
vertical-align: top;
padding-right: 5px;
font-weight: normal;
}
/*
table.two-properties th:after {
content: ":";
}
*/
table.two-properties td {
/*border-left: solid 1px black; /* FIXME pixel hinting */
vertical-align: top;
}
table.two-properties td {
text-align: right;
padding-right: 5px;
padding-left: 5px;
}
table.two-properties td+td {
border-left: solid 1px black;
text-align: left;
padding-left: 5px;
}
table.two-parents {
border-spacing: 0;
font-size: 90%; /* FIXME this has no effect */
transform-origin: top left;
}
table.two-parents thead > tr > th {
border-bottom: solid 1px black;
padding-bottom: 5px;
}
table.two-parents tbody > tr:first-child > td {
padding-top: 5px;
}
table.two-parents th {
text-align: left;
vertical-align: top;
font-weight: normal;
}
table.two-parents td {
vertical-align: top;
}
table.two-parents th,
table.two-parents td {
text-align: right;
padding-right: 5px;
padding-left: 5px;
}
table.two-parents th+th,
table.two-parents td+td {
border-left: solid 1px black;
text-align: left;
padding-left: 5px;
}
a {
text-decoration: none;
color: blue;
}
a:hover {
color: orange;
}
@media print {
a { color: black; }
}
/* light mode */
:root { --fg: black; --bg: white; }
/* dark mode */
@media screen {
/* no. the user's desktop can be in dark mode,
but the web browser can be in light mode.
so require the "darkreader extension" for dark mode.
@media (prefers-color-scheme: dark) {
:root { --fg: white; --bg: black; }
.darkmode-invert {
filter: invert();
}
}
*/
/* darkreader extension */
:root[data-darkreader-mode="dynamic"] {
--fg: white; --bg: black;
}
:root[data-darkreader-mode="dynamic"] .darkmode-invert {
filter: invert();
}
}
/*
FIXME
<img class="darkmode-invert"
the class "darkmode-invert" should be applied AFTER the image has loaded.
otherwise darkreader shows the not-yet-loaded image as a white square on black ground, which is ugly.
this is not working:
img:loading {
background: transparent;
border: solid 10px red; // test
}
TODO rename the css class from darkmode-invert to darkmode-invert-loaded
attach an event listener to every image
when the image has loaded, change the image's class from darkmode-invert to darkmode-invert-loaded
see also
https://stackoverflow.com/questions/21148820/is-it-possible-to-detect-broken-unloaded-error-images-with-css
not working ...
*/
img.darkmode-invert {
background: transparent;
}
.bindery-page {
/*
in some cases, bindery fails to break elements
so they overflow div.bindery-page but the overflow is hidden
some cases?
when a <div class="para"> has too much height
quickfix:
add <hr> to force page break
quickfix:
split the para content into blocks
<div class="para">
<div>block 1</div>
<div>block 2</div>
</div>
*/
overflow: visible;
}
</style>
<script>
function clickAnnotation(element) {
const text = element.getAttribute("title");
console.log(text);
alert(text); // TODO show pretty modal
}
</script>
<script id="binderyOptions">
// layout options
// the layout rendering engine is bindery
// https://github.com/evnbr/bindery
function getBinderyOptions(Bindery) {
return {
content: '#content',
rules: [
Bindery.PageBreak({ selector: '.pagebreak', position: 'after' }),
Bindery.PageBreak({ selector: 'hr', position: 'after' }),
/*
Bindery.PageBreak({ selector: 'h2:not(.nopagebreak)', position: 'before' }),
Bindery.PageBreak({ selector: 'h3:not(.nopagebreak)', position: 'before' }),
*/
// https://github.com/evnbr/bindery/issues/7
Bindery.Footnote({
// enable footnote links by default, disable footnote with <a class="notranslate">
//selector: "a:not(.nofootnote)",
// disable footnote links by default, enable footnote with <a class="footnote">
selector: "a.footnote",
render: (el, number) => {
// problem: chrome returns "https://torproject.org/" instead of "https://torproject.org"
// from el = <a href="https://torproject.org">Tor Browser</a>
// fix: instead of el.href use el.getAttribute("href")
//console.log(`Bindery.Footnote.render: el`, el);
//var hrefPretty = el.href.replace(/https?:\/\//g, '');
var hrefPretty = el.getAttribute("href").replace(/https?:\/\//g, '');
//return `<span class="footnote"><span class="footnote-number">${ number }</span> <a href="${ el.href }">${ hrefPretty }</a></span>`;
return `<span class="footnote"><span class="footnote-number">[${ number }]</span> <a href="${ el.href }">${ hrefPretty }</a></span>`;
},
}),
Bindery.RunningHeader({
render: (page) => {
if (page.isEmpty) return "";
//if (page.number <= 2) return "";
//if (page.number <= 3) return "";
if (page.number <= 1) return "";
//if (page.element.querySelector("h1")) return "";
//if (page.isLeft) return `<div class="running-header"><span class="page-number">${ page.number }</span> ${ page.heading.h1 }</div>`;
/*
// show only page number, no link, no version
if (page.number <= 3) {
headerTitle = '<div></div>';
if (page.isLeft) return `<div class="running-header"><div class="page-number">${ page.number }</div>${headerTitle}</div>`;
if (page.isRight) return `<div class="running-header">${headerTitle}<span class="page-number">${ page.number }</span></div>`;
}
*/
var linkList = [
['github.com/milahu/alchi', ''],
['gitlab.com/milahu/alchi', 'Mirror'],
['codeberg.org/milahu/alchi', 'Mirror'],
['notabug.org/milahu/alchi', 'Mirror'],