wiki-mad-libs/web/index.html

100 lines
1.5 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
2022-08-19 05:28:26 +00:00
<title>WAKI-LIBS</title>
<style>
#error {
display: none;
color: red;
font-weight: bold;
}
#error::before {
content: '>> ';
}
#error::after {
content: ' <<';
}
#inputs {
display: flex;
flex-flow: column wrap;
max-height: 400px;
}
#inputs p {
max-width: 30%;
margin: 0.5em;
}
#inputs p label {
display: inline-block;
width: 10em;
}
#inputs p input {
float: right;
}
button {
font-weight: bold;
padding: 0.5em 1em;
margin: 0.5em 1em;
}
#article {
font-family: sans-serif;
font-size: 11pt;
margin: 2em 0 2em 2em;
max-width: 1000px;
transition: opacity 1s ease-in;
/*display: none;*/
opacity: 0;
}
#article.visible {
display: block;
opacity: 1;
}
#article #title {
font-family: 'Georgia', 'Times', serif;
font-size: 24pt;
margin-right: 0.3em;
}
#article .link {
font-size: 10pt;
}
#article hr {
border: none;
border-top: 1px solid;
margin-bottom: 1em;
}
</style>
</head>
<body>
<h1>WAKI-LIBS: Wikipedia Ad-Libbed</h1>
<div id="error"></div>
<div id="inputs"></div>
2022-08-19 05:28:26 +00:00
<p><button id="show-article">WAKI-LIB!</button>
<div id="article">
<div id="header">
<span id="title"></span>
<span class="link">[ <a id="original-article-link" href="#">Original Article</a> ]</span>
<span class="link">[ <a id="sharable-link" href="#">Share your WAKI-LIBS!</a> ]</span>
</div>
<hr>
<div id="summary"></div>
</div>
<script src="article.js"></script>
<script src="script.js"></script>
</body>
</html>