Skip to content

Commit

Permalink
Improved CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
SuzanneSoy committed Nov 20, 2023
1 parent 0ec92a2 commit ea4b65a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
16 changes: 15 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,18 @@ ul:last-child {
border: thin solid #888;
padding: 0 .5em;
border-radius: .5em;
}
}

.ipfs-permalink {
color: #555;
font-style: italic;
font-size: 80%;
text-align: right;
}
.ipfs-permalink a {
color: #555;
font-style: italic;
}
.ipfs-permalink a:hover, .ipfs-permalink a:active {
color: black;
}
8 changes: 6 additions & 2 deletions template.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@
<link type="text/css" rel="stylesheet" href="style.css" />
</head>
<body>
<p id="ipfs-link"></p>
<p class="ipfs-permalink" id="ipfs-permalink"><a href="#">Permalink: ipfs://… (computing, please wait)</a></p>
<div class="markdown-content-placeholder"></div>
<script src="sha256.js"></script>
<script src="micro_ipfs.js"></script>
<script src="directory_hashes.js"></script>
<script>
(function() {
var hash = ipfs_self_hash.get_link();
document.getElementById('ipfs-link').innerHTML = '<a href="ipfs://' + hash + '/placeholder-filepath">Permalink: ipfs://'+hash.substring(0,4)+'…'+hash.substring(53)+'/placeholder-filepath</a>';
var filepath = 'placeholder-filepath';
if (filepath == 'index.html') {
filepath = '';
}
document.getElementById('ipfs-permalink').innerHTML = '<a href="ipfs://' + hash + '/placeholder-filepath">Permalink: ipfs://'+hash.substring(0,4)+'…'+hash.substring(53)+'/'+filepath+'</a>';
})();
</script>
</body>
Expand Down

0 comments on commit ea4b65a

Please sign in to comment.