Skip to content

Commit

Permalink
Updated Shakespeare search
Browse files Browse the repository at this point in the history
  • Loading branch information
samdutton committed Jan 24, 2018
1 parent 9b830fb commit c0966c0
Show file tree
Hide file tree
Showing 43 changed files with 213 additions and 3,498 deletions.
64 changes: 50 additions & 14 deletions search/shakespeare/elasticlunr/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
overflow: hidden;
}

.highlight {
color: #c83f3f !important;
}

.shadow-bottom {
box-shadow: 0 19px 19px -8px rgba(100,100,100,0.3);
moz-box-shadow: 0 15px 16px -8px rgba(100,100,100,0.4);
Expand All @@ -29,9 +33,8 @@ div#container {
div#query-container {
background: white;
margin: 0 0 24px -2px;
padding: 10px 0 4px 2px;
padding: 10px 0 10px 2px;
position: sticky;
position: -webkit-sticky;
top: 0;
width: calc(100% + 4px);
z-index: 1;
Expand Down Expand Up @@ -60,9 +63,9 @@ div.stage-direction {
text-indent: 30px;
}

div.stage-direction + div.stage-direction {
/*div.stage-direction + div.stage-direction {
margin-top: -20px;
}
}*/

h1 {
border-bottom: 1px solid #c83f3f;
Expand Down Expand Up @@ -159,6 +162,13 @@ ol#matches li::after {
line-height: 1.5em;
}

.scene li {
line-height: 1.4em;
margin: 0 0 2px 20px;
padding: 0 30px 0 32px;
text-indent: -20px;
}

.speech li {
font-size: 14px;
line-height: 1.4em;
Expand All @@ -180,25 +190,27 @@ ol#matches li::after {
position: relative;
}

.speech li.speaker {
color: black;
font-size: 13px;
letter-spacing: 1px;
padding: 3px 0 0 0;
text-transform: uppercase;
}

.speech li.stage-direction {
.scene li.stage-direction {
color: black;
counter-increment: none;
font-style: italic;
line-height: 1.4em;
list-style-type:none;
list-style-type: none;
margin: 0.8em 0 0.8em 50px;
padding: 0;
text-indent: 20px;
}

ol[data-speaker]:before {
color: black;
content: attr(data-speaker);
display: block;
font-size: 13px;
letter-spacing: 1px;
margin: 0 0 4px 0;
text-transform: uppercase;
}

ol.persona-group {
margin: 0 0 0.8em 0;
padding: 0;
Expand Down Expand Up @@ -257,6 +269,30 @@ section#preamble {
padding: 0 0 1em 0;
}

li span {
cursor: pointer;
}

li span:hover {
background-color: yellow;
}

span.stage-direction {
color: black;
font-style: italic;
line-height: 1.4em;
margin: 0.8em 0 0.8em 50px;
padding: 0;
text-indent: 20px;
}
span.stage-direction:before {
content: '(';
}

span.stage-direction:after {
content: ')';
}

strong {
font-weight: 500;
}
Expand Down
2 changes: 1 addition & 1 deletion search/shakespeare/elasticlunr/data/index.json

Large diffs are not rendered by default.

75 changes: 0 additions & 75 deletions search/shakespeare/elasticlunr/html/1H4.html
Original file line number Diff line number Diff line change
@@ -1,73 +1,3 @@
<!DOCTYPE html>

<!--
Derived from XML markup by Jon Bosak, 1996–1998.
https://www.ibiblio.org/xml/examples/shakespeare/
-->

<html lang="en">
<head>

<meta charset="utf-8">
<meta name="author" content="//samdutton.com">
<meta name="description" content="HTML Shakespeare" />
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>King Henry IV, Part 1</title>

<link rel="stylesheet" href="css/main.css" />

</head>

<body>

<div id="container">

<section id="preamble">

<h1>The First Part of Henry the Fourth</h1>

<section id="dramatis-personae"><h2>Dramatis Personae</h2>

<ol class="persona-group">
<li>KING HENRY, the Fourth. </li>
</ol>

<ol class="persona-group" data-description="sons of the King">
<li>HENRY, Prince of Wales</li>
<li>JOHN of Lancaster</li>
</ol>

<ol class="persona-group">
<li>WESTMORELAND</li>
<li>SIR WALTER BLUNT</li>
<li>THOMAS PERCY, Earl of Worcester. </li>
<li>HENRY PERCY, Earl of Northumberland. </li>
<li>HENRY PERCY, surnamed HOTSPUR, his son. </li>
<li>EDMUND MORTIMER, Earl of March. </li>
<li>RICHARD SCROOP, Archbishop of York. </li>
<li>ARCHIBALD, Earl of Douglas. </li>
<li>OWEN GLENDOWER</li>
<li>SIR RICHARD VERNON</li>
<li>SIR JOHN FALSTAFF</li>
<li>SIR MICHAEL, a friend to the Archbishop of York.</li>
<li>POINS</li>
<li>GADSHILL</li>
<li>PETO</li>
<li>BARDOLPH</li>
<li>FRANCIS, a waiter.</li>
<li>LADY PERCY, wife to Hotspur, and sister to Mortimer.</li>
<li>LADY MORTIMER, daughter to Glendower, and wife to Mortimer.</li>
<li>MISTRESS QUICKLY, hostess of a tavern in Eastcheap. </li>
<li>Lords, Officers, Sheriff, Vintner, Chamberlain, Drawers, two Carriers, Travellers, Attendants, and an Ostler.</li>
</ol>

</section>

<div id="scene-description">SCENE England.</div>

</section>

<section class="act">

<h2>ACT I</h2>
Expand Down Expand Up @@ -5849,8 +5779,3 @@ <h3>SCENE V. Another part of the field.</h3>

</section>

</div>

</body>

</html>
84 changes: 0 additions & 84 deletions search/shakespeare/elasticlunr/html/1H6.html
Original file line number Diff line number Diff line change
@@ -1,82 +1,3 @@
<!DOCTYPE html>

<!--
Derived from XML markup by Jon Bosak, 1996–1998.
https://www.ibiblio.org/xml/examples/shakespeare/
-->

<html lang="en">
<head>

<meta charset="utf-8">
<meta name="author" content="//samdutton.com">
<meta name="description" content="HTML Shakespeare" />
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>King Henry VI, Part 1</title>

<link rel="stylesheet" href="css/main.css" />

</head>

<body>

<div id="container">

<section id="preamble">

<h1>The First Part of Henry the Sixth</h1>

<section id="dramatis-personae"><h2>Dramatis Personae</h2>

<ol class="persona-group">
<li>KING HENRY THE SIXTH</li>
<li>DUKE OF GLOUCESTER, uncle to the King, and Protector. </li>
<li>DUKE OF BEDFORD, uncle to the King, and Regent of France. </li>
<li>THOMAS BEAUFORT, Duke of Exeter, great-uncle to the King. </li>
<li>HENRY BEAUFORT, great-uncle to the King, Bishop of Winchester, and afterwards Cardinal. </li>
<li>JOHN BEAUFORT, Earl, afterwards Duke, of Somerset. </li>
<li>RICHARD PLANTAGENET, son of Richard late Earl of Cambridge, afterwards Duke of York.</li>
<li>EARL OF WARWICK</li>
<li>EARL OF SALISBURY</li>
<li>EARL OF SUFFOLK</li>
<li>LORD TALBOT, afterwards Earl of Shrewsbury. </li>
<li>JOHN TALBOT, Lord Talbot's son.</li>
<li>EDMUND MORTIMER, Earl of March. </li>
<li>SIR JOHN FASTOLFE</li>
<li>SIR WILLIAM LUCY</li>
<li>SIR WILLIAM GLANSDALE</li>
<li>SIR THOMAS GARGRAVE</li>
<li>Mayor of London</li>
<li>WOODVILE, Lieutenant of the Tower.</li>
<li>VERNON, of the White-Rose or York faction.</li>
<li>BASSET, of the Red-Rose or Lancaster faction.</li>
<li>A Lawyer. </li>
<li>Mortimer's Keepers. </li>
<li>CHARLES, Dauphin, and afterwards King, of France.</li>
<li>REIGNIER, Duke of Anjou, and titular King of Naples.</li>
<li>DUKE OF BURGUNDY</li>
<li>DUKE OF ALENCON</li>
<li>BASTARD OF ORLEANS</li>
<li>Governor of Paris.</li>
<li>Master-Gunner of Orleans, and his Son. </li>
<li>General of the French forces in Bourdeaux. </li>
<li>A French Sergeant. </li>
<li>A Porter.</li>
<li>An old Shepherd, father to Joan la Pucelle. </li>
<li>MARGARET, daughter to Reignier, afterwards married to King Henry.</li>
<li>COUNTESS OF AUVERGNE</li>
<li>JOAN LA PUCELLE, commonly called Joan of Arc.</li>
<li>Lords, Warders of the Tower, Heralds, Officers, Soldiers, Messengers, and Attendants.</li>
<li>Fiends appearing to La Pucelle.</li>
</ol>

</section>

<div id="scene-description">SCENE Partly in England, and partly in France.</div>

</section>

<section class="act">

<h2>ACT I</h2>
Expand Down Expand Up @@ -5348,8 +5269,3 @@ <h3>SCENE V. London. The palace.</h3>

</section>

</div>

</body>

</html>
Loading

0 comments on commit c0966c0

Please sign in to comment.