diff options
| Commit | 6b8cae12cb5d60b37931332d9d8008649ae14566 (patch) | |
|---|---|---|
| Author | 2026-09-12 11:31:19 +0300 | |
| Committer | 2026-09-12 13:54:29 +0300 | |
| Files | 9ff20cdba71fff44e7b23b43e46a75276df6d7f1 /ext/presentation.awk | |
| syndamia.com-6b8cae12cb5d60b37931332d9d8008649ae14566.tar syndamia.com-6b8cae12cb5d60b37931332d9d8008649ae14566.tar.gz syndamia.com-6b8cae12cb5d60b37931332d9d8008649ae14566.zip | ||
| Parent | 918bac7614e560678d51bfba2a25582a3284bdd9 (diff) | |
feat!: Update dunbar markup
Currently the newest version of the markup is not on the main branch,
mostly because of polish and the documentation.
As an effect from the changes to the language, the sitemap is the only
thing which needs to be created externally.
1 files changed, 0 insertions, 74 deletions
| -rw-r--r-- | ext/presentation.awk | 74 |
diff --git a/ext/presentation.awk b/ext/presentation.awk deleted file mode 100644 index ee8a2ea..0000000 --- a/ext/presentation.awk +++ /dev/null @@ -1,74 +0,0 @@ -BEGIN { - fontSizes[1] = "18" - fontSizes[2] = "20" - fontSizes[3] = "22" - fontSizes[4] = "25" - fontSizes[5] = "27" - fontSizes[6] = "35" - - # Certain tags can exist without explicitly defining the font size - # while others cannot - # fontSizes[0] is used for simpler code for the tags which don't - # require font size - fontSizes[0] = "" - - for (ind in fontSizes) { - if (ind > 0) { - define_div("font" fontSizes[ind]) - fontClass = " font" fontSizes[ind] - } - else { - fontClass = "" - } - - define_div("centered" fontSizes[ind], "centered" fontClass) - - define("slide" fontSizes[ind], "<div id=\"slide-[?autoincrement?]\" class=\"slide" fontClass "\">", "</div>") - define("middle_slide" fontSizes[ind], "<div id=\"slide-[?autoincrement?]\" class=\"slide centered-slide" fontClass "\"><div></div><div>", "</div><div></div></div>") - define("title_slide" fontSizes[ind], "<div id=\"slide-[?autoincrement?]\" class=\"slide centered-slide centered" fontClass "\"><div></div><div>", "</div><div></div></div>") - } - - - substitutions["presentation-controller"] = ".text" ORS \ -"<nav id=\"presentCont\">" ORS \ -" <span id=\"prevSlideBtn\" class=\"btn nodisplay\">←</span>" ORS \ -" <a id=\"slideIndex\" class=\"nodisplay\" href=\"#slide-0\">0</a>" ORS \ -" <span id=\"nextSlideBtn\" class=\"btn nodisplay\">→</span>" ORS \ -" <span id=\"incrementationBtn\" class=\"btn nodisplay\">⋮</span>" ORS \ -" <span id=\"articleBtn\" class=\"btn setting-btn\">As article ☲</span>" ORS \ -" <span id=\"presentBtn\" class=\"btn setting-btn\">Present ⎚</span>" ORS \ -" <span id=\"printBtn\" class=\"btn setting-btn\">Print ⎙</span>" ORS \ -"</nav><br><br>" ORS \ -"<script type=\"text/javascript\" src=\"/scripts/presentation.js\" crossorigin=\"anonymous\"></script>" - - define("row", "<div class=\"layout-table\"><div class=\"layout-row\">", "</div></div>") - define("sqrow", "<div class=\"layout-table fixed-layout\"><div class=\"layout-row\">", "</div></div>") - substitutions["newrow"] = ".text </div><div class=\"layout-row\">" - - # - # Generated tags - # - - for (i = 1; i <= 9; i++) { - substitutions["br" i] = ".text <div class=\"br" i "\"></div>" - } - for (i = 5; i <= 95; i++) { - define_div("width" i "%", "width" i "per") - } - - # - # Ordinary - # - - define_div("fright", "float-right") - define_div("column") -} - -function define_div(name, class) { - if (!class) class = name - define(name, "<div class=\"" class "\">", "</div>") -} - -FNR == 1 { - autoincrement = 0 -} |