Loading certic.xsl +18 −5 Changes for certic.xsl: 18 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -118,10 +118,10 @@ <section class="front"> <div class="button-tabs"> <button class="tab-btn focus-tab" onclick="openTab(this, 'toc')">Table of contents</button> <button class="tab-btn" onclick="openTab(this, 'refs')">References</button> <button class="tab-btn" onclick="openTab(this, 'footnotes')">Notes</button> <button class="tab-btn" onclick="openTab(this, 'metas')">?</button> <button id="tabtn-toc" class="tab-btn focus-tab" onclick="openTab('toc')">Table of contents</button> <button id="tabtn-refs" class="tab-btn" onclick="openTab('refs')">References</button> <button id="tabtn-footnotes" class="tab-btn" onclick="openTab('footnotes')">Notes</button> <button id="tabtn-metas" class="tab-btn" onclick="openTab('metas')">?</button> </div> <div id="toc" class="meta-tab"> Loading Loading @@ -167,8 +167,21 @@ </xsl:template> <!--footnote--> <xsl:template match="xref[@ref-type='fn']"> <span class="fn-call"> <xsl:attribute name="data-target"> <xsl:value-of select="@rid"/> </xsl:attribute> <xsl:apply-templates/> </span> </xsl:template> <xsl:template match="fn"> <li> <li class="footnote"> <xsl:attribute name="id"> <xsl:value-of select="@id"/> </xsl:attribute> <xsl:apply-templates/> </li> </xsl:template> Loading resources/javascript/xml2html.js +21 −6 Changes for resources/javascript/xml2html.js: 21 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -2,12 +2,17 @@ window.addEventListener('DOMContentLoaded', (event) => { //todo : how to remove it from ojs template ? document.querySelectorAll("link").forEach((e) => { let href = e.getAttribute('href'); if(href.indexOf('name=stylesheet')>0) //@todo : removes 2 last tests (pdn-pp tests only) if (href.indexOf('name=stylesheet') > 0 || href.indexOf('name=less') > 0 || href.indexOf('oldGregg') > 0) e.remove(); }); //footnotes binding bindFootnotes(); }); function openTab(source, tabName) { function openTab(tabName) { let i; let tabs = document.querySelectorAll(".meta-tab"); for (i = 0; i < tabs.length; i++) { Loading @@ -17,20 +22,30 @@ function openTab(source, tabName) { //button focus document.querySelectorAll(".tab-btn").forEach((btn) => { console.log("ici") btn.classList.remove('focus-tab'); }); source.classList.add('focus-tab'); document.getElementById('tabtn-' + tabName).classList.add('focus-tab'); } function darkMode(bool) { if (bool) { document.getElementById('moon').style.display = "block"; document.getElementById('sun').style.display = "none"; } else { } else { document.getElementById('sun').style.display = "block"; document.getElementById('moon').style.display = "none"; } document.body.classList.toggle('dark'); } function bindFootnotes() { document.querySelectorAll('.fn-call').forEach((fnc) => { fnc.addEventListener('click', () => { openTab('footnotes'); console.log(fnc.dataset.target); document.getElementById(fnc.dataset.target).scrollIntoView(); document.querySelectorAll('.footnote').forEach((fn) => fn.classList.remove('focus')); document.getElementById(fnc.dataset.target).classList.add('focus'); }) }) } resources/styles/article.css +48 −6 Changes for resources/styles/article.css: 48 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -2,8 +2,15 @@ --dark-theme-bg: #22272e; --dark-theme-txt: #adbac7; --nav-height: 4em; --third-color : #0a84ff; } /** temp addons (if jatsParser enabled)*/ .jatsParser__meta, #jatsParserFullText > h2, #jatsParserFullText > p { display:none; } /***************************************/ header,section.authors, section.abstract, h1.page_title, h2.subtitle, .pkp_structure_footer_wrapper, .entry_details { display:none; Loading Loading @@ -79,10 +86,10 @@ section.back{ } .left-contents { width: 60%; width: 65%; overflow-y: auto; max-height: calc(100vh - var(--nav-height)); scrollbar-color: #87ceeb #87ceeb; scrollbar-color: var(--third-color) var(--third-color); } .article-wrap{ max-width: 820px; Loading @@ -97,6 +104,7 @@ section.back{ overflow-y: auto; scrollbar-width: thin; height: calc(100vh - var(--nav-height)); border-left: 1px solid black; } .left-contents h1{ Loading Loading @@ -128,6 +136,10 @@ section.front ol, section.front ol { border-bottom : 1px solid black; } .dark .button-tabs{ border-bottom : 1px solid var(--dark-theme-txt); } .tab-btn{ background-color: white; padding: 10px ; Loading @@ -152,6 +164,10 @@ section.front ol, section.front ol { background-color: var(--dark-theme-txt); } .dark .right-contents { border-color: var(--dark-theme-txt); } section.body p{ margin-top:10px ; line-height: 150% ; Loading Loading @@ -235,23 +251,49 @@ section.body h3:before{ /***********/ span.fn-call { font-variant-position: super; color: var(--third-color); cursor: pointer; } #footnotes ul { margin-left: 50px; margin-top:20px; /*margin-left: 50px;*/ /*margin-top:20px;*/ list-style-type: none; } #footnotes li{ margin-bottom:10px; box-sizing: border-box; padding: 10px; border-bottom: 1px solid #888; } #footnotes li.focus{ border: 1px solid var(--third-color); } #footnotes li .label { font-weight: bolder; display: inline-block; margin-right:10px; } #footnotes li .label:before { content: '['; } #footnotes li .label:after { content: ']'; } .mixed-citation { margin-top: 10px; margin-bottom: 10px; padding-bottom:5px; padding: 10px; border-bottom: 1px solid #888; } .dark #footnotes li, .dark .mixed-citation { border-bottom: 1px solid var(--dark-theme-txt); } Loading
certic.xsl +18 −5 Changes for certic.xsl: 18 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -118,10 +118,10 @@ <section class="front"> <div class="button-tabs"> <button class="tab-btn focus-tab" onclick="openTab(this, 'toc')">Table of contents</button> <button class="tab-btn" onclick="openTab(this, 'refs')">References</button> <button class="tab-btn" onclick="openTab(this, 'footnotes')">Notes</button> <button class="tab-btn" onclick="openTab(this, 'metas')">?</button> <button id="tabtn-toc" class="tab-btn focus-tab" onclick="openTab('toc')">Table of contents</button> <button id="tabtn-refs" class="tab-btn" onclick="openTab('refs')">References</button> <button id="tabtn-footnotes" class="tab-btn" onclick="openTab('footnotes')">Notes</button> <button id="tabtn-metas" class="tab-btn" onclick="openTab('metas')">?</button> </div> <div id="toc" class="meta-tab"> Loading Loading @@ -167,8 +167,21 @@ </xsl:template> <!--footnote--> <xsl:template match="xref[@ref-type='fn']"> <span class="fn-call"> <xsl:attribute name="data-target"> <xsl:value-of select="@rid"/> </xsl:attribute> <xsl:apply-templates/> </span> </xsl:template> <xsl:template match="fn"> <li> <li class="footnote"> <xsl:attribute name="id"> <xsl:value-of select="@id"/> </xsl:attribute> <xsl:apply-templates/> </li> </xsl:template> Loading
resources/javascript/xml2html.js +21 −6 Changes for resources/javascript/xml2html.js: 21 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -2,12 +2,17 @@ window.addEventListener('DOMContentLoaded', (event) => { //todo : how to remove it from ojs template ? document.querySelectorAll("link").forEach((e) => { let href = e.getAttribute('href'); if(href.indexOf('name=stylesheet')>0) //@todo : removes 2 last tests (pdn-pp tests only) if (href.indexOf('name=stylesheet') > 0 || href.indexOf('name=less') > 0 || href.indexOf('oldGregg') > 0) e.remove(); }); //footnotes binding bindFootnotes(); }); function openTab(source, tabName) { function openTab(tabName) { let i; let tabs = document.querySelectorAll(".meta-tab"); for (i = 0; i < tabs.length; i++) { Loading @@ -17,20 +22,30 @@ function openTab(source, tabName) { //button focus document.querySelectorAll(".tab-btn").forEach((btn) => { console.log("ici") btn.classList.remove('focus-tab'); }); source.classList.add('focus-tab'); document.getElementById('tabtn-' + tabName).classList.add('focus-tab'); } function darkMode(bool) { if (bool) { document.getElementById('moon').style.display = "block"; document.getElementById('sun').style.display = "none"; } else { } else { document.getElementById('sun').style.display = "block"; document.getElementById('moon').style.display = "none"; } document.body.classList.toggle('dark'); } function bindFootnotes() { document.querySelectorAll('.fn-call').forEach((fnc) => { fnc.addEventListener('click', () => { openTab('footnotes'); console.log(fnc.dataset.target); document.getElementById(fnc.dataset.target).scrollIntoView(); document.querySelectorAll('.footnote').forEach((fn) => fn.classList.remove('focus')); document.getElementById(fnc.dataset.target).classList.add('focus'); }) }) }
resources/styles/article.css +48 −6 Changes for resources/styles/article.css: 48 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -2,8 +2,15 @@ --dark-theme-bg: #22272e; --dark-theme-txt: #adbac7; --nav-height: 4em; --third-color : #0a84ff; } /** temp addons (if jatsParser enabled)*/ .jatsParser__meta, #jatsParserFullText > h2, #jatsParserFullText > p { display:none; } /***************************************/ header,section.authors, section.abstract, h1.page_title, h2.subtitle, .pkp_structure_footer_wrapper, .entry_details { display:none; Loading Loading @@ -79,10 +86,10 @@ section.back{ } .left-contents { width: 60%; width: 65%; overflow-y: auto; max-height: calc(100vh - var(--nav-height)); scrollbar-color: #87ceeb #87ceeb; scrollbar-color: var(--third-color) var(--third-color); } .article-wrap{ max-width: 820px; Loading @@ -97,6 +104,7 @@ section.back{ overflow-y: auto; scrollbar-width: thin; height: calc(100vh - var(--nav-height)); border-left: 1px solid black; } .left-contents h1{ Loading Loading @@ -128,6 +136,10 @@ section.front ol, section.front ol { border-bottom : 1px solid black; } .dark .button-tabs{ border-bottom : 1px solid var(--dark-theme-txt); } .tab-btn{ background-color: white; padding: 10px ; Loading @@ -152,6 +164,10 @@ section.front ol, section.front ol { background-color: var(--dark-theme-txt); } .dark .right-contents { border-color: var(--dark-theme-txt); } section.body p{ margin-top:10px ; line-height: 150% ; Loading Loading @@ -235,23 +251,49 @@ section.body h3:before{ /***********/ span.fn-call { font-variant-position: super; color: var(--third-color); cursor: pointer; } #footnotes ul { margin-left: 50px; margin-top:20px; /*margin-left: 50px;*/ /*margin-top:20px;*/ list-style-type: none; } #footnotes li{ margin-bottom:10px; box-sizing: border-box; padding: 10px; border-bottom: 1px solid #888; } #footnotes li.focus{ border: 1px solid var(--third-color); } #footnotes li .label { font-weight: bolder; display: inline-block; margin-right:10px; } #footnotes li .label:before { content: '['; } #footnotes li .label:after { content: ']'; } .mixed-citation { margin-top: 10px; margin-bottom: 10px; padding-bottom:5px; padding: 10px; border-bottom: 1px solid #888; } .dark #footnotes li, .dark .mixed-citation { border-bottom: 1px solid var(--dark-theme-txt); }