Updated main page to follow C# syntax
This commit is contained in:
parent
71405fd5a2
commit
189ca5034b
62
index.html
62
index.html
@ -7,25 +7,29 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<div class="card" id="card" onclick="flipCard()">
|
<div class="card" id="card" onclick="flipCard()">
|
||||||
<div class="card-back" id="card-back">
|
<div class="card-back" id="card-back">
|
||||||
<div class="line-numbers">
|
<div class="line-numbers">
|
||||||
<div>1</div>
|
<div>1</div>
|
||||||
<div>2</div>
|
<div>2</div>
|
||||||
<div>3</div>
|
<div>3</div>
|
||||||
<div>4</div>
|
<div>4</div>
|
||||||
<div>5</div>
|
<div>5</div>
|
||||||
<div>6</div>
|
<div>6</div>
|
||||||
<div>7</div>
|
<div>7</div>
|
||||||
<div>8</div>
|
<div>8</div>
|
||||||
<div>9</div>
|
<div>9</div>
|
||||||
</div><code><span class="variable">const </span><span class="function">aboutMe </span><span class="operator">= </span><span>{</span>
|
</div>
|
||||||
<div class="indent"> <span class="property">name</span><span class="operator">: </span><span class="string">'Luke Else'</span><span>,</span></div>
|
<code>
|
||||||
<div class="indent"> <span class="property">title</span><span class="operator">: </span><span class="string">'Software Engineer + Student'</span><span>,</span></div>
|
<span class="method">Person </span><span class="function">me </span><span class="operator">= </span><span class="variable">new </span><span class="method">Person</span> <br />
|
||||||
<div class="indent"> <span class="property">contact</span><span class="operator">: </span><span>{</span>
|
<span>{</span>
|
||||||
<div class="indent"> <span class="property">email</span><span class="operator">: <a href="mailto:mail@luke-else.co.uk"></span><span class="string">'mail@luke-else.co.uk'</span></a><span>,</span></div>
|
<div class="indent"> <span class="property">Name </span><span>= </span><span class="string">"Luke Else"</span><span>,</span></div>
|
||||||
<div class="indent"><span class="property">website</span><span class="operator">:<a href="https://git.luke-else.co.uk/luke-else/"></span><span class="string">'https://git.luke-else.co.uk'</span></a></div><span>}</span>
|
<div class="indent"> <span class="property">Age </span><span>= </span><span class="int age">18</span><span>,</span></div>
|
||||||
</div><span>}</span></code>
|
<div class="indent"> <span class="property">Title </span><span>= </span><span class="string">"Software Engineer / Student"</span><span>,</span></div>
|
||||||
|
<div class="indent"> <span class="property">EMail </span><span>= </span><a href="mailto:contact@luke-else.co.uk"><span class="string">"contact@luke-else.co.uk"</span></a><span>,</span></div>
|
||||||
|
<div class="indent"> <span class="property">Website </span><span>= </span><a href="https://git.luke-else.co.uk/luke-else"><span class="string">"git.luke-else.co.uk"</span></a></div>
|
||||||
|
<span>}</span
|
||||||
|
</code>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-front" id="card-front">
|
<div class="card-front" id="card-front">
|
||||||
<div class="line-numbers">
|
<div class="line-numbers">
|
||||||
@ -38,11 +42,19 @@
|
|||||||
<div>7</div>
|
<div>7</div>
|
||||||
<div>8</div>
|
<div>8</div>
|
||||||
<div>9</div>
|
<div>9</div>
|
||||||
</div><code><span class="variable">this</span><span>.</span><span class="method">addEventListener</span><span>(</span><span class="string">'mouseover'</span><span>, </span><span class="function">() => </span><span>{ </span>
|
|
||||||
<div class="indent"><span class="variable">this</span><span>.</span><span class="property">flipCard </span><span>= </span><span class="boolean">true</span><span>;</span></div><span>});</span></code>
|
|
||||||
</div>
|
</div>
|
||||||
|
<code>
|
||||||
|
<span class="variable">internal class </span><span class="method">Person</span> <br />
|
||||||
|
<span>{ </span><span class="comment">//Hover to flip</span>
|
||||||
|
<div class="indent"><span class="variable">public string</span> <span class="property">Name </span><span>{ </span><span class="boolean">get</span><span>; </span><span class="boolean">set</span><span>;</span><span> }</span></div>
|
||||||
|
<div class="indent"><span class="variable">internal int</span> <span class="property">Age </span><span>{ </span><span class="boolean">get</span><span>; </span><span class="boolean">set</span><span>;</span><span> }</span></div>
|
||||||
|
<div class="indent"><span class="variable">internal string</span> <span class="property">Title </span><span>{ </span><span class="boolean">get</span><span>; </span><span class="boolean">set</span><span>;</span><span> }</span></div>
|
||||||
|
<div class="indent"><span class="variable">public string</span> <span class="property">EMail </span><span>{ </span><span class="boolean">get</span><span>; </span><span class="boolean">set</span><span>;</span><span> }</span></div>
|
||||||
|
<div class="indent"><span class="variable">public string</span> <span class="property">Website </span><span>{ </span><span class="boolean">get</span><span>; </span><span class="boolean">set</span><span>;</span><span> }</span></div>
|
||||||
|
<span>}</span>
|
||||||
|
</code>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<script src="./flip.js"></script>
|
|
||||||
|
<script src="./js/flip.js"></script>
|
||||||
</html>
|
</html>
|
@ -121,6 +121,9 @@
|
|||||||
.card .string {
|
.card .string {
|
||||||
color: #9ccc65;
|
color: #9ccc65;
|
||||||
}
|
}
|
||||||
|
.card .int {
|
||||||
|
color: #d4922f;
|
||||||
|
}
|
||||||
.card .variable {
|
.card .variable {
|
||||||
color: #BA68C8;
|
color: #BA68C8;
|
||||||
}
|
}
|
||||||
@ -136,6 +139,9 @@
|
|||||||
.card .boolean {
|
.card .boolean {
|
||||||
color: #4dd0e1;
|
color: #4dd0e1;
|
||||||
}
|
}
|
||||||
|
.card .comment {
|
||||||
|
color: #229977
|
||||||
|
}
|
||||||
|
|
||||||
a:link { text-decoration: none; }
|
a:link { text-decoration: none; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user