-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcollabsible_section.html
More file actions
56 lines (50 loc) · 1.48 KB
/
Copy pathcollabsible_section.html
File metadata and controls
56 lines (50 loc) · 1.48 KB
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
<!DOCTYPE html>
<html>
<head>
<style>
.collapsible {
cursor: pointer;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #ccc;
}
.content {
padding: 0 18px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #f1f1f1;
}
</style>
</head>
<body>
<h2>Collapsible Section</h2>
<button class="collapsible">Open Section</button>
<div class="content">
<p>[Gitcoin data analysis grants rounds 14 with ASOP](https://hackmd.io/UOlkSVK0QMSEsKEB3fUFjQ?view)
[Gitoin data analysis rounds 20](https://github.com/sirlupinwatson/GG20xOSO)
[Learning sybil resistance part.1](https://gov.gitcoin.co/t/learning-sybil-resistance-work-in-progress-part-1/10536) [Learning sybil resistance part.2](https://gov.gitcoin.co/t/learning-sybil-resistance-work-in-progress-part-2/10537)
[Learning sybil resistance part.2](https://gov.gitcoin.co/t/learning-sybil-resistance-work-in-progress-part-3/10644).</p>
</div>
<script>
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.maxHeight){
content.style.maxHeight = null;
} else {
content.style.maxHeight = content.scrollHeight + "px";
}
});
}
</script>
</body>
</html>