Skip to content

Commit 3d80f58

Browse files
committed
use custom elements instead of classes
1 parent aa9ed79 commit 3d80f58

7 files changed

Lines changed: 25 additions & 25 deletions

File tree

index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body {
1515
height: 100%;
1616
}
1717

18-
.main {
18+
main {
1919
width: 100%;
2020
height: 100%;
2121

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Womangling</title>
88
</head>
99
<body>
10-
<main class="main">
10+
<main>
1111
<div class="content">
1212
<h1>Learn C++ Itanium Symbol Mangling</h1>
1313
<noscript>

lesson-0.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Womangling</title>
88
</head>
99
<body>
10-
<main class="main">
10+
<main>
1111
<div class="content" id="content-area">
1212
<h1>
1313
<a class="root-link" href=".">Learn C++ Itanium Symbol Mangling</a>
@@ -31,7 +31,7 @@ <h2>Lesson 0: Intro and C names</h2>
3131
For every exercise, there will be a small quiz. If you complete the
3232
quiz, you can continue
3333
</p>
34-
<div class="quiz-section">
34+
<quiz-section>
3535
<p>To complete the first quiz, press the button below.</p>
3636
<form data-challenge="1">
3737
<button
@@ -43,7 +43,7 @@ <h2>Lesson 0: Intro and C names</h2>
4343
</button>
4444
<div class="error"></div>
4545
</form>
46-
</div>
46+
</quiz-section>
4747
</section>
4848
<section data-step="1" class="step">
4949
<p>
@@ -81,7 +81,7 @@ <h2>Lesson 0: Intro and C names</h2>
8181
But once again, the symbol name will simply be
8282
<code>main</code> because no mangling is applied.
8383
</p>
84-
<div class="quiz-section">
84+
<quiz-section>
8585
<p>What is the mangled symbol of the following function?</p>
8686
<pre class="code">
8787
extern "C" {
@@ -99,7 +99,7 @@ <h2>Lesson 0: Intro and C names</h2>
9999
</button>
100100
<div class="error"></div>
101101
</form>
102-
</div>
102+
</quiz-section>
103103
</section>
104104
<section data-step="2" class="step">
105105
<p>Congrats on answering your first mangling question!</p>

lesson-1.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Womangling</title>
88
</head>
99
<body>
10-
<main class="main">
10+
<main>
1111
<div class="content" id="content-area">
1212
<h1>
1313
<a class="root-link" href=".">Learn C++ Itanium Symbol Mangling</a>
@@ -54,7 +54,7 @@ <h2>Lesson 1: Basics</h2>
5454
We will see the <code>v</code> function type a lot in the rest of
5555
this guide. It stands for a function that takes no arguments.
5656
</p>
57-
<div class="quiz-section">
57+
<quiz-section>
5858
<p>
5959
Which of these symbols cannot possibly be a mangled C++ symbol?
6060
Answer with the name of the symbol.
@@ -79,7 +79,7 @@ <h2>Lesson 1: Basics</h2>
7979
</button>
8080
<div class="error"></div>
8181
</form>
82-
</div>
82+
</quiz-section>
8383
</section>
8484
<section data-step="1" class="step">
8585
<p>
@@ -97,7 +97,7 @@ <h2>Lesson 1: Basics</h2>
9797
then appended to the previously mentioned prefix <code>_Z</code> and
9898
then we add the type, which is just <code>v</code> here, at the end.
9999
</p>
100-
<div class="quiz-section">
100+
<quiz-section>
101101
<p>What is the mangling of the following identifier?</p>
102102
<pre class="code">
103103
void meow() {}
@@ -117,7 +117,7 @@ <h2>Lesson 1: Basics</h2>
117117
</button>
118118
<div class="error"></div>
119119
</form>
120-
</div>
120+
</quiz-section>
121121
</section>
122122
<section data-step="2" class="step">
123123
<p>
@@ -172,7 +172,7 @@ <h2>Lesson 1: Basics</h2>
172172
previously mentioned characters around them.
173173
</p>
174174

175-
<div class="quiz-section">
175+
<quiz-section>
176176
<p>What is the mangling of the following identifier?</p>
177177
<pre class="code">
178178
namespace cats {
@@ -196,7 +196,7 @@ <h2>Lesson 1: Basics</h2>
196196
</button>
197197
<div class="error"></div>
198198
</form>
199-
</div>
199+
</quiz-section>
200200
</section>
201201
<section data-step="3" class="step">
202202
<p>

lesson-2.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Womangling</title>
88
</head>
99
<body>
10-
<main class="main">
10+
<main>
1111
<div class="content" id="content-area">
1212
<h1>
1313
<a class="root-link" href=".">Learn C++ Itanium Symbol Mangling</a>
@@ -85,7 +85,7 @@ <h2>Lesson 2: Arguments</h2>
8585
<code>int*</code> (<code>Pi</code>), and a
8686
<code>double&</code> (<code>Rd</code>).
8787
</p>
88-
<div class="quiz-section">
88+
<quiz-section>
8989
<p>What is the mangled symbol of the following function?</p>
9090
<pre class="code">
9191
void hello(int **programmer, long day, float &r) {}
@@ -102,7 +102,7 @@ <h2>Lesson 2: Arguments</h2>
102102
</button>
103103
<div class="error"></div>
104104
</form>
105-
</div>
105+
</quiz-section>
106106
</section>
107107
<section data-step="1" class="step">
108108
<p>
@@ -115,7 +115,7 @@ <h2>Lesson 2: Arguments</h2>
115115
}
116116
</pre>
117117
<p>This will be mangled as <code>_ZN5outer5inner3yesEiiRl</code></p>
118-
<div class="quiz-section">
118+
<quiz-section>
119119
<p>What is the mangled symbol of the following function?</p>
120120
<pre class="code">
121121
namespace very::much::nested {
@@ -137,7 +137,7 @@ <h2>Lesson 2: Arguments</h2>
137137
</button>
138138
<div class="error"></div>
139139
</form>
140-
</div>
140+
</quiz-section>
141141
</section>
142142
<section data-step="2" class="step">
143143
<p>Let's look at a few more common types.</p>
@@ -155,7 +155,7 @@ <h2>Lesson 2: Arguments</h2>
155155
In the future there might be a part of the website where you can
156156
memorize these encodings more easily.
157157
</p>
158-
<div class="quiz-section">
158+
<quiz-section>
159159
<p>What is the mangled symbol of the following function?</p>
160160
<pre class="code">
161161
void name(unsigned long long a, unsigned short b, char c, int d) {}
@@ -175,7 +175,7 @@ <h2>Lesson 2: Arguments</h2>
175175
</button>
176176
<div class="error"></div>
177177
</form>
178-
</div>
178+
</quiz-section>
179179
</section>
180180

181181
<section data-step="3" class="step">

lesson-3.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Womangling</title>
88
</head>
99
<body>
10-
<main class="main">
10+
<main>
1111
<div class="content" id="content-area">
1212
<h1>
1313
<a class="root-link" href=".">Learn C++ Itanium Symbol Mangling</a>
@@ -104,7 +104,7 @@ <h2>Lesson 3: Basic Templates</h2>
104104
that isn't stored in the symbol for efficiency)
105105
</li>
106106
</ul>
107-
<div class="quiz-section">
107+
<quiz-section>
108108
<p>
109109
What is the mangled symbol of the following instantiation of
110110
empty?
@@ -128,7 +128,7 @@ <h2>Lesson 3: Basic Templates</h2>
128128
</button>
129129
<div class="error"></div>
130130
</form>
131-
</div>
131+
</quiz-section>
132132
</section>
133133
<section data-step="1" class="step">
134134
<p class="lesson-last-paragraph">

practice/primitive-types.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>Womangling</title>
99
</head>
1010
<body>
11-
<main class="main">
11+
<main>
1212
<div class="content" id="content-area">
1313
<h1>
1414
<a class="root-link" href="..">Learn C++ Itanium Symbol Mangling</a>

0 commit comments

Comments
 (0)