forked from Etyre/elityre.com
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontact.html
More file actions
47 lines (33 loc) · 1.6 KB
/
contact.html
File metadata and controls
47 lines (33 loc) · 1.6 KB
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
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ricki Heicklen</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2CYW1CTPDD"></script>
<script src="js/gtag.js"></script>
<script src="nav.js"></script>
</head>
<body>
<!--Navigation bar-->
<div id="nav-placeholder"></div>
<div class="main text">
<p> If you'd like to reach me about anything, you can do so via <a href="mailto:ricki@rickiheicklen.com">email</a>, <a href="https://twitter.com/tradegal_" target="_blank">Twitter</a>, or <a href="https://www.facebook.com/ricki.heicklen/" target="_blank">Facebook</a>.
<br>
<br>
You are also invited to give me anonymous feedback, thoughts, jokes, etc. through <a href=https://www.admonymous.co/ricki>my admonymous page</a>.</p>
</div>
<div id="last-updated"></div>
<script>
var urlArray = window.location.href.split("/");
var nameOfThisPage = urlArray[urlArray.length-1];
const getCommits = async pageName => {
var result = await fetch('https://api.github.com/repos/rickiheicklen/rickiheicklen.github.io/commits?path='+ encodeURIComponent(pageName));
var data = await result.json();
var timestamp = new Date(data[0].commit.author.date)
var formattedDate = timestamp.toDateString()
console.log(formattedDate)
document.getElementById('last-updated').innerHTML = "<p><br><i>This page was last updated on "+ formattedDate + ".</i></p>";
}
getCommits(nameOfThisPage);
</script>