Skip to content

Commit

Permalink
Deploying to gh-pages from @ 48c13e5 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
nmercadeb committed Jan 15, 2025
1 parent 8719b9d commit 91b897f
Show file tree
Hide file tree
Showing 49 changed files with 5,415 additions and 174 deletions.
7 changes: 4 additions & 3 deletions 404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4,607 changes: 4,607 additions & 0 deletions articles/a01_tables.html

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions articles/a01_tables_files/tabwid-1.1.3/tabwid.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.tabwid {
font-size: initial;
padding-bottom: 1em;
}

.tabwid table{
border-spacing:0px !important;
border-collapse:collapse;
line-height:1;
margin-left:auto;
margin-right:auto;
border-width: 0;
border-color: transparent;
caption-side: top;
}
.tabwid-caption-bottom table{
caption-side: bottom;
}
.tabwid_left table{
margin-left:0;
}
.tabwid_right table{
margin-right:0;
}
.tabwid td, .tabwid th {
padding: 0;
}
.tabwid a {
text-decoration: none;
}
.tabwid thead {
background-color: transparent;
}
.tabwid tfoot {
background-color: transparent;
}
.tabwid table tr {
background-color: transparent;
}
.katex-display {
margin: 0 0 !important;
}
31 changes: 31 additions & 0 deletions articles/a01_tables_files/tabwid-1.1.3/tabwid.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
document.addEventListener("DOMContentLoaded", function(event) {
var els = document.querySelectorAll(".tabwid");
var tabwid_link = document.querySelector('link[href*="tabwid.css"]')
if (tabwid_link === null) {
const tabwid_styles = document.evaluate("//style[contains(., 'tabwid')]", document, null, XPathResult.ANY_TYPE, null );
tabwid_link = tabwid_styles.iterateNext();
}

Array.prototype.forEach.call(els, function(template) {
const dest = document.createElement("div");
template.parentNode.insertBefore(dest, template.nextSibling)
dest.setAttribute("class", "flextable-shadow-host");
const fantome = dest.attachShadow({mode: 'open'});
fantome.appendChild(template);
if (tabwid_link !== null) {
fantome.appendChild(tabwid_link.cloneNode(true));
}
});

const shadowHosts = document.querySelectorAll('.flextable-shadow-host:not(:has(div > table.no-shadow-dom))');
shadowHosts.forEach(host => {
if (host.shadowRoot) {
const spanElements = host.shadowRoot.querySelector('div > table > caption > span[id]');
if (spanElements) {
const id = spanElements.getAttribute("id");
host.setAttribute("id", id);
}
}
});

});
Loading

0 comments on commit 91b897f

Please sign in to comment.