Skip to content

Commit 9b5578c

Browse files
committed
Make modals work when Javascript is disabled
1 parent ee99cab commit 9b5578c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h1 class="extra-large no-style">LOKOLE: EMAIL FOR ALL</h1>
7272
<div class="thumbnail" rel="modal" id="info1" data-toggle="tooltip" title="more history" data-reference="modal-1-content" data-title="The foundations that led to Ascoderu" tabindex="0">
7373
<p>Hi, I’m Nzola Swasisa but please call me Nzola. I was born
7474
and raised in the DRC and in 2010 I founded Ascoderu: our
75-
canadian-congolese NGO. <em>Click to read more.</em></p>
75+
canadian-congolese NGO. <em class="read-more">Click to read more.</em></p>
7676

7777
<div id="modal-1-content" class="hidden">
7878
<p>I’m Nzola Swasisa, and I was born and raised in the Democratic Republic of the Congo (DRC).
@@ -93,7 +93,7 @@ <h1 class="extra-large no-style">LOKOLE: EMAIL FOR ALL</h1>
9393

9494
<div class="thumbnail" rel="modal" id="info2" data-toggle="tooltip" title="more history" data-reference="modal-2-content" data-title="The history of Ascoderu and Lokole" tabindex="0">
9595
<p>Between 2013-15 I went to Kinshasa in order to test
96-
REC (Remote Email Center) and the proof-of-concept led to Lokole. <em>Click to read more.</em></p>
96+
REC (Remote Email Center) and the proof-of-concept led to Lokole. <em class="read-more">Click to read more.</em></p>
9797

9898
<div id="modal-2-content" class="hidden">
9999
<p>In 2010, I registered Ascoderu as a not for profit NGO in Canada and in the DRC with the mission

src/noscript.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
.loading {
22
display: block;
33
}
4+
5+
div[rel="modal"] .hidden {
6+
display: block !important; /* csslint allow: important */
7+
}
8+
9+
div[rel="modal"] {
10+
pointer-events: none;
11+
}
12+
13+
div[rel="modal"] .read-more {
14+
display: none;
15+
}

0 commit comments

Comments
 (0)