48 lines
2.2 KiB
HTML
48 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Luke Else</title>
|
|
<link rel="stylesheet" href="./style.css" />
|
|
</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>
|
|
<div class="card-front" id="card-front">
|
|
<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">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>
|
|
|
|
<script src="./flip.js"></script>
|
|
|
|
</html> |