-
-
Save itsdfish/d5a0301af7fdbd50225e0fc4608cc2ea to your computer and use it in GitHub Desktop.
attempt to expand cell to reveal text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### A Pluto.jl notebook ### | |
# v0.17.4 | |
using Markdown | |
using InteractiveUtils | |
# ╔═╡ 4af03d84-696f-11ec-2f40-c72aaf97ab91 | |
using HypertextLiteral | |
# ╔═╡ b2081eef-0b39-4d66-8df8-208499bc0e7a | |
@htl(""" | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
.collapsible { | |
background-color: #777; | |
color: white; | |
cursor: pointer; | |
padding: 18px; | |
width: 100%; | |
border: none; | |
text-align: left; | |
outline: none; | |
font-size: 15px; | |
} | |
.active, .collapsible:hover { | |
background-color: #555; | |
} | |
.content { | |
padding: 0 18px; | |
display: none; | |
overflow: hidden; | |
background-color: #f1f1f1; | |
} | |
</style> | |
</head> | |
<body> | |
<button type="button" class="collapsible">Open Collapsible</button> | |
<div class="content"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</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.display === "block") { | |
content.style.display = "none"; | |
} else { | |
content.style.display = "block"; | |
} | |
}); | |
} | |
return button | |
</script> | |
</body> | |
</html> | |
""") | |
# ╔═╡ 00000000-0000-0000-0000-000000000001 | |
PLUTO_PROJECT_TOML_CONTENTS = """ | |
[deps] | |
HypertextLiteral = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2" | |
[compat] | |
HypertextLiteral = "~0.9.3" | |
""" | |
# ╔═╡ 00000000-0000-0000-0000-000000000002 | |
PLUTO_MANIFEST_TOML_CONTENTS = """ | |
# This file is machine-generated - editing it directly is not advised | |
julia_version = "1.7.0" | |
manifest_format = "2.0" | |
[[deps.HypertextLiteral]] | |
git-tree-sha1 = "2b078b5a615c6c0396c77810d92ee8c6f470d238" | |
uuid = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2" | |
version = "0.9.3" | |
""" | |
# ╔═╡ Cell order: | |
# ╠═4af03d84-696f-11ec-2f40-c72aaf97ab91 | |
# ╟─b2081eef-0b39-4d66-8df8-208499bc0e7a | |
# ╟─00000000-0000-0000-0000-000000000001 | |
# ╟─00000000-0000-0000-0000-000000000002 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment