Skip to content

Instantly share code, notes, and snippets.

@yifeiyin
Created January 13, 2019 23:07
Show Gist options
  • Save yifeiyin/b6c6124c375d799fbdb52bd079a07c4b to your computer and use it in GitHub Desktop.
Save yifeiyin/b6c6124c375d799fbdb52bd079a07c4b to your computer and use it in GitHub Desktop.
my-courses-webpage-generator example files
<div><a onclick="closeWithDelay()" href="{}"> {} </a></div>
/Users/some_path_here/CSCA48 - Intro to CS II/_ARCHIVE , CSCA48
/Users/some_path_here/MATA22 - Linear Algebra/_ARCHIVE , MATA22
... others are omitted
<!DOCTYPE html>
<html>
<head>
<title>Files</title>
<style>
div {
font-size: 1.5em;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
color: white;
text-align: center;
margin: 5px;
margin-left: auto;
margin-right: auto;
padding: 5px;
background-color: green;
width: 40%;
border: 15px solid green;
border-radius: 8px;
}
a {
color: unset;
text-decoration: none;
}
</style>
<script>
function closeWithDelay() {
setTimeout(self.close, 100);
}
</script>
</head>
<body>
{}
</body>
<script type='text/javascript'>
//setTimeout(self.close, 5000);
//self.close();
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment