forked from PayalPadmalyaPrusty/YATI_Hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
60 lines (56 loc) · 1.62 KB
/
script.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
function myFunction() {
let dots = document.getElementById("dots");
let moreText = document.getElementById("more");
let btnText = document.getElementById("myBtn");
if (dots.style.display === "none") {
dots.style.display = "inline";
btnText.innerHTML = "Read more";
moreText.style.display = "none";
} else {
dots.style.display = "none";
btnText.innerHTML = "Read less";
moreText.style.display = "inline";
}
}
function myFunction1() {
let dot = document.getElementById("dot");
let moreTxt = document.getElementById("p");
let btnTxt = document.getElementById("myBtn1");
if (dot.style.display === "none") {
dot.style.display = "inline";
btnTxt.innerHTML = "Read more";
moreTxt.style.display = "none";
} else {
dot.style.display = "none";
btnTxt.innerHTML = "Read less";
moreTxt.style.display = "inline";
}
}
function myFunction2() {
let dos = document.getElementById("do");
let mo = document.getElementById("q");
let btx = document.getElementById("myBtn2");
if (dos.style.display === "none") {
dos.style.display = "inline";
btx.innerHTML = "Read more";
mo.style.display = "none";
} else {
dos.style.display = "none";
btx.innerHTML = "Read less";
mo.style.display = "inline";
}
}
function myFunction3(){
let g=document.getElementById("g");
let m=document.getElementById("s");
let t=document.getElementById("myBtn3");
if(g.style.display==="none"){
g.style.display="inline";
t.innerHTML="Read more";
m.style.display="none";
}else{
g.style.display = "none";
t.innerHTML = "Read less";
m.style.display = "inline";
}
}