Small corrections and refactoring

This commit is contained in:
Sayantan Santra 2023-04-26 14:13:49 -05:00
parent 52b3534c15
commit 85153ec7bf
2 changed files with 13 additions and 10 deletions

View file

@ -7,19 +7,25 @@
<title>Sayantan Santra | PhD Student at the University of Oklahoma</title>
<script>
function putYear() {
function loader() {
// put year of study
const year_span = document.getElementById("year-span");
const current_time = Date.now();
const year_num = Math.floor((parseInt(current_time) - 1627794000000) / 31536000000);
const year_array = ["first", "second", "third", "fourth", "fifth", "sixth"];
year_span.innerHTML = year_array[year_num];
// put last modified
const last_modified_span = document.getElementById("last-modified");
const last_modified = new Date(document.lastModified);
last_modified_span.innerHTML = last_modified.toDateString();
}
</script>
<link rel="stylesheet" type="text/css" target="_blank" href="style.css">
<link rel="stylesheet" type="text/css" target="_blank" href="styles.css">
</head>
<body onload="putYear()">
<body onload="loader()">
<div class="container">
<div class="header">
<img src="https://www.gravatar.com/avatar/a5114f8f2ab803638d442ab3cb39d329?s=200" alt="gravatar" />
@ -28,13 +34,14 @@
</div>
<div class="row">
<div class="column">Office: PHSC 903</div>
<div class="column" name="mail">Email: sayantan[dot]santra[at]ou.edu</div>
<div class="column" name="mail">Email: <a href="mailto:sayantan.santra@ou.edu">sayantan.santra@ou.edu</a>
</div>
</div>
<hr />
<p>I'm a <span id="year-span"></span> year PhD student in the Department of Mathematics
at the University of Oklahoma, working under my advisor
<a href="https://math.ou.edu/~kmartin">Dr. Kimball Martin.</a>
<a href="https://math.ou.edu/~kmartin">Dr. Kimball Martin</a>.
</p>
<p>Previously, I received an M. Math. from the Indian Statistical Institute.</p>
@ -49,7 +56,7 @@
<a href=https://github.com/SinTan1729/CV/raw/main/CV.pdf>You can take a look at my CV here.</a>
<hr />
<i>This page was last updated on Apr 26, 2023.</i>
<i>This page was last updated on <span id="last-modified"></span>.</i>
</div>
</body>

View file

@ -43,10 +43,6 @@ img {
text-align: left;
}
img {
max-width: 150px;
}
.pc-name {
display: none;
}