-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathce-blog.js
22 lines (20 loc) · 1.31 KB
/
ce-blog.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function addBlogRunner() {
var header = `<style>em.asterisk { font-style: normal; font-weight: bold; }</style>
<span class="md"><a style="text-decoration:none" href="https://casual-effects.com"><div style="margin-top:-20px; width:100%; height: 60px; border-bottom:1px solid; background:url('https://casual-effects.com/casual-effects.png'); background-size: contain; background-repeat: no-repeat; background-position: center; "></div></a></span>`;
var footer = `<div style="border-top: solid 1px; padding-top:10px" class="md">
<table><tr valign=top><td><img src="https://casual-effects.com/morgan/headshots/mcguire-tiny.jpg" style="max-width: none; width: 128px; height: 128px; border:1px solid #888"></td><td width="30px"> </td><td>
<i style="font-size:95%">
This is a personal blog article by <a href="https://casual-effects.com">Morgan
McGuire</a>.
</i>
</td></tr></table>
</div>`;
if (document.getElementsByClassName("title").length) {
document.body.innerHTML = header + document.body.innerHTML + footer;
} else {
setTimeout(addBlogRunner, 100);
}
}
if(!window.markdeepOptions){window.markdeepOptions={tocStyle:'medium'};}
document.write('<style>h1 {margin-top:50px; padding-bottom:6px; border-bottom: 1px solid #555}em.asterisk { font-style: normal; font-weight: bold; }</style>');
addBlogRunner();