Ian's Training Notes

Copy Theme

CSS

/* 
   Written in 2019 by Ian's Training Notes

   To the extent possible under law, the author(s) have dedicated all 
   copyright and related and neighboring rights to this software to the 
   public domain worldwide. This software is distributed without any 
   warranty.

   You should have received a copy of the CC0 Public Domain Dedication 
   along with this software. If not, see 
   http://creativecommons.org/publicdomain/zero/1.0
*/

body {
    background-color: #FFFEF9;
    }
    
    /* eliminate write.as footer */
    body footer nav {display:none}
    
    /* Blog header on index and post pages */
    #blog-title a {
    color: #B22222;
    background-color: #FFFEF9;
    }
    
    /* Post titles on blog index */
    .post-title {
    font-weight: bold;
    }
    .post-title a.u-url:link, .post-title a.u-url:visited {
    color: cornflowerblue;
    }

JS

/* 
   Written in 2019 by Ian's Training Notes

   To the extent possible under law, the author(s) have dedicated all 
   copyright and related and neighboring rights to this software to the 
   public domain worldwide. This software is distributed without any 
   warranty.

   You should have received a copy of the CC0 Public Domain Dedication 
   along with this software. If not, see 
   http://creativecommons.org/publicdomain/zero/1.0
*/

/* 'Back to top' at bottom of every page */
var topP = document.createElement("p");
topP.style.textAlign = "center";
topP.innerHTML = '<a href="#">Back to top</a>';
var cont = document.getElementById("wrapper");
if (cont !== null) {
// Add to blog index and tag pages
cont.appendChild(topP);
} else {
// Add to individual blog post page
cont = document.getElementById("post-body");
cont.insertAdjacentHTML("afterend", topP.outerHTML);
}