-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcv.html
90 lines (87 loc) · 3.48 KB
/
cv.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf8" />
<link rel="stylesheet" type="text/css" href="reset.css">
<link rel="stylesheet/less" type="text/css" href="cv.less">
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/less.js/3.9.0/less.min.js" ></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.min.js"
integrity="sha256-7/yoZS3548fXSRXqc/xYzjsmuW3sFKzuvOCHd06Pmps="
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>
//setTimeout(() => location.reload(), 3000);
let profileName = new URLSearchParams(location.search).get("p") || "backend.json";
jQuery.ajaxSettings.cache = false;
$(() => {
let template = _.template($("#profileTemplate").html());
$.ajax(profileName).done(profile => $("body").html(template(profile)));
});
</script>
<script type="text/html" id="profileTemplate">
<header class="main">
<section class="left">
<h1>
<span class="name">Daniel Lidström</span>
<span class="doc-title">Consultant Profile</span>
</h1>
</section>
<section class="right">
<h2>✉️ [email protected]</h2>
<h2>📞 072-1581298</h2>
</section>
</header>
<aside>
<% _.each(sidebarSections, sidebarSection => { %>
<section>
<h1><%= sidebarSection.title %></h1>
<ul>
<% _.each(sidebarSection.items, item => { %>
<li><%= item %></li>
<% }); %>
</ul>
</section>
<% }); %>
</aside>
<div id="content">
<section>
<p><%= head %></p>
<section class="assignments-section">
<h1>Assignments</h1>
<% _.each(assignments, assignment => { %>
<article class="assignment">
<header>
<h2>
<span class="assignment-role"><%= assignment.title %></span>
<span><%= assignment.company %></span>
<span class="assignment-header-years">
<%= assignment.years %>
</span>
</h2>
</header>
<p class="assignment-description">
<%= assignment.description %>
</p>
<div class="tech-list-container">
<ul class="tech-list">
<% _.each(assignment.technologies, tech => { %>
<li><%= tech %></li>
<% }); %>
</ul>
</div>
</article>
<% }); %>
</section>
</section>
</div>
<hr class="clear" />
<footer>
<span>Proudly designed by Daniel Lidström using <img class="html5-logo" src="HTML5 Logo Badge.svg"></img></span>
</footer>
</script>
</head>
<body>
</body>
</html>