Updated main page to follow C# syntax
This commit is contained in:
parent
71405fd5a2
commit
189ca5034b
60
index.html
60
index.html
@ -7,25 +7,29 @@
|
||||
</head>
|
||||
|
||||
|
||||
<div class="card" id="card" onclick="flipCard()">
|
||||
<div class="card-back" id="card-back">
|
||||
<div class="line-numbers">
|
||||
<div>1</div>
|
||||
<div>2</div>
|
||||
<div>3</div>
|
||||
<div>4</div>
|
||||
<div>5</div>
|
||||
<div>6</div>
|
||||
<div>7</div>
|
||||
<div>8</div>
|
||||
<div>9</div>
|
||||
</div><code><span class="variable">const </span><span class="function">aboutMe </span><span class="operator">= </span><span>{</span>
|
||||
<div class="indent"> <span class="property">name</span><span class="operator">: </span><span class="string">'Luke Else'</span><span>,</span></div>
|
||||
<div class="indent"> <span class="property">title</span><span class="operator">: </span><span class="string">'Software Engineer + Student'</span><span>,</span></div>
|
||||
<div class="indent"> <span class="property">contact</span><span class="operator">: </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">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><span>}</span></code>
|
||||
<div class="card" id="card" onclick="flipCard()">
|
||||
<div class="card-back" id="card-back">
|
||||
<div class="line-numbers">
|
||||
<div>1</div>
|
||||
<div>2</div>
|
||||
<div>3</div>
|
||||
<div>4</div>
|
||||
<div>5</div>
|
||||
<div>6</div>
|
||||
<div>7</div>
|
||||
<div>8</div>
|
||||
<div>9</div>
|
||||
</div>
|
||||
<code>
|
||||
<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 />
|
||||
<span>{</span>
|
||||
<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">Age </span><span>= </span><span class="int age">18</span><span>,</span></div>
|
||||
<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 class="card-front" id="card-front">
|
||||
<div class="line-numbers">
|
||||
@ -38,11 +42,19 @@
|
||||
<div>7</div>
|
||||
<div>8</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>
|
||||
<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>
|
||||
|
||||
<script src="./flip.js"></script>
|
||||
|
||||
</html>
|
||||
<script src="./js/flip.js"></script>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user