-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpage-template.html
27 lines (27 loc) · 961 Bytes
/
page-template.html
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
<html>
<style>
.stretch {
width: 100%;
display: block;
}
</style>
<body>
{{body_html}}
<footer>
<p>
<a href="https://www.raph.ws/" target="_blank">Raphael Haddad</a> maintained project |
<a href="https://twitter.com/RaphHaddadAus" target="_blank">Bugs or suggestions? |</a>
<a href="https://github.com/RaphHaddad/windows-git-tricks" target="_blank">Source (GitHub)</a>
</p>
</footer>
</body>
<script>
var copyButtons = document.querySelectorAll('.copy-button');
copyButtons.forEach(function(copyButton) {
copyButton.addEventListener('click', function() {
copyButton.parentElement.querySelector('.code').select();
document.execCommand("copy");
});
});
</script>
</html>