forked from JjayTTP/ttp_cohort_4_application
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
25 lines (21 loc) · 848 Bytes
/
Copy pathscript.js
File metadata and controls
25 lines (21 loc) · 848 Bytes
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
function email (form) {
var user = form.name.value;
var email = form.email.value;
var subject= form.subject.value;
var text = form.text.value;
window.location.href = `mailto:sean.cedano@jjay.cuny.edu?&subject=${user} - ${subject}&body=${text}\n\nContact Email:${email}` ;
}
function readMore() {
var state = document.getElementById("state");
var moreText = document.getElementById("more");
var btnText = document.getElementById("read-more-btn");
if (state.style.display === "none") {
state.style.display = "inline";
moreText.style.display = "none";
btnText.innerHTML = "<i class='fa-solid fa-angle-down'>";
} else {
state.style.display = "none";
moreText.style.display = "inline";
btnText.innerHTML = "<i class='fa-solid fa-angle-up'></i>";
}
}