Compare commits

..

No commits in common. "fbf01ff08d83f9dd3a363f56d261379cb58a4c77" and "c532374cc1f2cafd35a0bf373d8638c0fc81c08b" have entirely different histories.

2 changed files with 4 additions and 19 deletions

View file

@ -67,7 +67,7 @@
<tr> <tr>
<th scope="row"><a href="https://fr.wikipedia.org/wiki/VCard#Propriétés">EMAIL</a></th> <th scope="row"><a href="https://fr.wikipedia.org/wiki/VCard#Propriétés">EMAIL</a></th>
<th class="logo" scope="row"><img class="logo" src="../img/mail.svg" alt="Logo de courrier"></th> <th class="logo" scope="row"><img class="logo" src="../img/mail.svg" alt="Logo de courrier"></th>
<td><span id="email"></span></td> <td>cv <span class="fa fa-at"></span> marc.beninca.link</td>
</tr> </tr>
</tbody></table> </tbody></table>
</section> </section>

View file

@ -6,22 +6,7 @@ for (let button of buttons) {
}); });
} }
const email = document.getElementById("email"); let theme
email.style.cursor = "pointer";
const email_ = ".";
const email_alias = ["cv"].join(email_);
const email_at = document.createElement("span");
email_at.className = "fa fa-at";
const email_domain = ["marc", "beninca", "link"].join(email_);
email.append(email_alias, " ", email_at, " ", email_domain);
email.addEventListener("click", () => {
window.location.href =
["mailto", [email_alias, email_domain].join("@")].join(":");
});
let theme;
function theme_get() { function theme_get() {
theme = localStorage.getItem("theme"); theme = localStorage.getItem("theme");
@ -32,7 +17,7 @@ function theme_get() {
theme = "light"; theme = "light";
} }
} }
theme_set(); theme_set()
} }
function theme_set() { function theme_set() {
@ -49,4 +34,4 @@ document.getElementById("theme").addEventListener("click", () => {
theme_swap(); theme_swap();
}); });
theme_get(); theme_get()