Commit fa259e01 authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

ajustements css/js + renommage transfo XSL

parent c170805a
Loading
Loading
Loading
Loading
+1 −1
Changes for 2html.xsl: 1 added line, 1 removed line.
Original line number Diff line number Diff line
certic.xsl
 No newline at end of file
certic-jats2html.xsl
 No newline at end of file

File moved.

+8 −3
Changes for resources/javascript/xml2html.js: 8 added lines, 3 removed lines.
Original line number Diff line number Diff line
window.addEventListener('DOMContentLoaded', (event) => {
    //todo : how to remove it from ojs template ?
    //@todo : how to remove it from ojs template ?
    document.querySelectorAll("link").forEach((e) => {
        let href = e.getAttribute('href');
        //@todo : removes 2 last tests (pdn-pp tests only)
@@ -44,12 +44,13 @@ function bindFootnotes() {
        let footnote = document.getElementById(fnc.dataset.target)
        fnc.addEventListener('click', () => {
            openTab('footnotes');
            console.log(fnc.dataset.target);
            document.getElementById(fnc.dataset.target).scrollIntoView({
                block :'center',
                behavior: "smooth"
            });
            document.querySelectorAll('.footnote').forEach((fn) => fn.classList.remove('focus'));
            document.querySelectorAll('.footnote').forEach(
                (fn) => fn.classList.remove('focus')
            );
            footnote.classList.add('focus');
        });

@@ -60,6 +61,10 @@ function bindFootnotes() {
                block :'start',
                behavior: "smooth"
            });
            document.querySelectorAll('.footnote').forEach(
                (fn) => fn.classList.remove('focus')
            );
            footnote.classList.add('focus');
        })

    })
+1
Changes for resources/styles/article.css: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ section.back{
.article-wrap{
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.right-contents {