Skip to content

Commit

Permalink
Merge pull request #50 from DigitalMitford/webDesign
Browse files Browse the repository at this point in the history
Web design
  • Loading branch information
ebeshero committed Jun 29, 2023
2 parents c5e75db + 1246430 commit fd3c99c
Show file tree
Hide file tree
Showing 26 changed files with 4,599 additions and 3,285 deletions.
22 changes: 18 additions & 4 deletions 1819-1823MRMJournal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ schematypens="http://purl.oclc.org/dsdl/schematron"?>
<title>Mary Russell Mitford's Notebook of 1819 to 1823</title>
<author ref="#MRM">Mary Russell Mitford</author>
<editor ref="#rjp">Rebecca J. Parker</editor>
<editor ref="#srr">Savannah Ricks</editor>
<editor ref="#tsa">Tyler Akam</editor>
<editor ref="#ebb">Elisa Beshero-Bondar</editor>
<editor ref="#lmw">Lisa M. Wilson</editor>
<!-- LMW where to credit Coles? -->
Expand All @@ -28,6 +30,8 @@ schematypens="http://purl.oclc.org/dsdl/schematron"?>
<respStmt>
<resp>Transcription and coding by</resp>
<persName ref="#rjp">Rebecca J. Parker</persName>
<persName ref="#srr">Savannah Ricks</persName>
<persName ref="#tsa">Tyler Akam</persName>
<persName ref="#ebb">Elisa Beshero-Bondar</persName>
<persName ref="#lmw">Lisa M. Wilson</persName>
</respStmt>
Expand All @@ -51,11 +55,11 @@ schematypens="http://purl.oclc.org/dsdl/schematron"?>
<licence>Distributed under a Creative Commons Attribution-ShareAlike 3.0 Unported
License</licence>
</availability>

</publicationStmt>
<sourceDesc>


<msDesc>
<msIdentifier>
<repository ref="#ReadingCL">Reading Central Library</repository>
Expand All @@ -68,7 +72,7 @@ schematypens="http://purl.oclc.org/dsdl/schematron"?>
transcript of which this is a copy is in the possession of the Public Library,
Reading, Berks, England. A photostat copy of the MS is also available at that
library.</q> Copyright presumably rests with the British Museum. <date
when="1955-07">July 1955</date>.
when="1955-07">July 1955</date>.
<!--ebb: Check with British Library (now housing the British Museum manuscripts) re copyright permissions before posting an html view of this file.--></p>
</msDesc>
</sourceDesc>
Expand Down Expand Up @@ -111,6 +115,16 @@ schematypens="http://purl.oclc.org/dsdl/schematron"?>
spelling and the regular international standard of Oxford English spelling, following
the first listed spelling in the Oxford English Dictionary. The long s and ligatured
forms are not encoded.</p>
<p>In this journal, after 1819 (when she no longer has print indications of the date
from the published journal), Mitford usually indicates the month and year at the top
of her pages. Mitford began adding the location where she wrote her entries around
October 1820 to the top of each page near the date. When she had no room towrite the
place name after the date, e.g. <q>Three Mile Cross</q>, she the split the place name
so part of it appears before the date, and part after the date, for example: <q>Three
Mile October 1820 Cross</q>. We have decided to represent these form headings in
meaningful order, so as to clearly distinguish the place from the date. Because they
were added afterwards, we chose to position these place names after the date
information.</p>
</editorialDecl>
</encodingDesc>
</teiHeader>
Expand Down
343 changes: 172 additions & 171 deletions docs/journal-view/Apr-1819.html

Large diffs are not rendered by default.

351 changes: 176 additions & 175 deletions docs/journal-view/Apr-1820.html

Large diffs are not rendered by default.

307 changes: 154 additions & 153 deletions docs/journal-view/Aug-1819.html

Large diffs are not rendered by default.

343 changes: 172 additions & 171 deletions docs/journal-view/Aug-1820.html

Large diffs are not rendered by default.

357 changes: 179 additions & 178 deletions docs/journal-view/Dec-1818-to-Jan-1819.html

Large diffs are not rendered by default.

295 changes: 148 additions & 147 deletions docs/journal-view/Dec-1819.html

Large diffs are not rendered by default.

223 changes: 112 additions & 111 deletions docs/journal-view/Feb-1819.html

Large diffs are not rendered by default.

333 changes: 167 additions & 166 deletions docs/journal-view/Feb-1820.html

Large diffs are not rendered by default.

274 changes: 138 additions & 136 deletions docs/journal-view/Jan-1820.html

Large diffs are not rendered by default.

339 changes: 170 additions & 169 deletions docs/journal-view/Jul-1819.html

Large diffs are not rendered by default.

293 changes: 147 additions & 146 deletions docs/journal-view/Jul-1820.html

Large diffs are not rendered by default.

285 changes: 143 additions & 142 deletions docs/journal-view/Jun-1819.html

Large diffs are not rendered by default.

297 changes: 149 additions & 148 deletions docs/journal-view/Jun-1820.html

Large diffs are not rendered by default.

285 changes: 143 additions & 142 deletions docs/journal-view/Mar-1819.html

Large diffs are not rendered by default.

337 changes: 169 additions & 168 deletions docs/journal-view/Mar-1820.html

Large diffs are not rendered by default.

389 changes: 195 additions & 194 deletions docs/journal-view/May-1819.html

Large diffs are not rendered by default.

311 changes: 156 additions & 155 deletions docs/journal-view/May-1820.html

Large diffs are not rendered by default.

327 changes: 164 additions & 163 deletions docs/journal-view/Nov-1819.html

Large diffs are not rendered by default.

345 changes: 173 additions & 172 deletions docs/journal-view/Oct-1819.html

Large diffs are not rendered by default.

1,225 changes: 1,225 additions & 0 deletions docs/journal-view/Oct-1820.html

Large diffs are not rendered by default.

325 changes: 163 additions & 162 deletions docs/journal-view/Sep-1819.html

Large diffs are not rendered by default.

213 changes: 107 additions & 106 deletions docs/journal-view/Sep-1820.html

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions docs/journal.css
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,17 @@ div a:hover {
/* Gloss styling */

div.si {
display:none;


}
div.si.on {
display: block;
background-color: #F8F8FF;
padding: 10px;
border: black;
border-radius: 20px;
border-width: 10px;

}

border-width: 10px;}


span.date {
Expand Down
49 changes: 49 additions & 0 deletions docs/journal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/* 2023-06-22 ebb with srr and tsa
* This JS is to show and hide gloss entries on user interaction with highlighted named entities
*
* SI gloss entries are coded in div element like this with @class="si" and id attributes
* <div class="si on" id="Burney_SH">
*
* We need to match on the @id attribute in order to show (unhide) the gloss entry.
*
* Elements with glosses to reveal are coded like this:
* <span class="persName gloss" data-gloss="#Burney_SH"><a href="#Burney_SH">Miss
Burney</a></span>
* On mouse-enter (or click) of the span, JS will read the @data-gloss attribute, and cut the string after the '#" to
* locate its matching si entry. It will then add a class 'on' to the si entry to display.
*
* A toggle-off function will be necessary to hide the element again. This can simply look for any si entries wtih a class "on"
* and remove the class.
* Our JS is adapted from Piper Baron's Poems project.
* */

window.onload = init;
const highlights = document.getElementsByClassName("gloss");
const entries = document.getElementsByClassName("si");

function init() {
for (var i = 0; i < highlights.length; i++) {
highlights[i].addEventListener('mouseover', toggle, false);
/* highlights[i].addEventListener('mouseleave', toggleOff, false);*/
highlights[i].addEventListener('click', toggle, false);
highlights[i].addEventListener('touchenter', toggle, false);
}

}

function toggle() {
/*toggleOff()*/
/* Show the gloss entry associated with "this", which is literally the highlighted element
* the user clicked on or visited */
var idVal = this.getAttribute("data-gloss").split("#")[1];
/* test whether the id matches THIS substring after # */
var entry = document.getElementById(idVal)
entry.classList.toggle("on");
}






5 changes: 3 additions & 2 deletions xslt-to-html/mitfordJournal-to-HTML.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
</title>
<link rel="stylesheet" type="text/css" href="../journal.css"/>
<link href="https://fonts.googleapis.com/css?family=Alice" rel="stylesheet" />
<script type="text/javascript" src="../journal.js"></script>
</head>
<body>
<div id="nav_wide"> <!--<h1>Digital Mitford:
Expand Down Expand Up @@ -314,7 +315,7 @@
</xsl:when>


<xsl:otherwise><span class="{current() ! name()}" data-gloss="{@ref}"><a href="{@ref ! tokenize(., '\s+')[1]}"><xsl:apply-templates/></a></span></xsl:otherwise>
<xsl:otherwise><span class="{current() ! name()} gloss" data-gloss="{@ref}"><a href="{@ref ! tokenize(., '\s+')[1]}"><xsl:apply-templates/></a></span></xsl:otherwise>


</xsl:choose>
Expand All @@ -329,7 +330,7 @@
<xsl:template match="body//bibl">
<xsl:choose>
<xsl:when test="@corresp">
<span class="title" data-gloss="{@corresp}"><a href="{@corresp ! tokenize(., '\s+')[1]}"><xsl:apply-templates/></a></span>
<span class="title gloss" data-gloss="{@corresp}"><a href="{@corresp ! tokenize(., '\s+')[1]}"><xsl:apply-templates/></a></span>
</xsl:when>
<xsl:otherwise>
<span class="title"><xsl:apply-templates/></span>
Expand Down

0 comments on commit fd3c99c

Please sign in to comment.