-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig_load.js
24 lines (24 loc) · 903 Bytes
/
config_load.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const getName = document.getElementsByClassName("nam");
const justName = document.getElementsByClassName("nami");
const constHowGuy = document.getElementsByClassName("howGuy");
const contactElem = document.getElementById("contact");
for (let countit = 0; countit < constHowGuy.length; countit++) {
constHowGuy[countit].innerHTML = guyType;
}
for (let count = 0; count < justName.length; count++) {
justName[count].innerHTML = name;
}
for (let counting = 0; counting < getName.length; counting++) {
getName[counting].innerHTML = name + "The" + '<b class="grade">'+guyType+"</b>";
}
// SET PAGE TITLE
let title_el = document.querySelector("title");
if (title_el) {
title_el.innerHTML = name + "The" + guyType;
}
function configContact() {
if (!contact_email == "") {
contactElem.href = 'mailto:' + contact_email;
} else {
document.getElementById("contact").style.display = 'none';
}}