Add style and script for bitbucket

This commit is contained in:
Jonathan Hodgson 2018-10-24 17:37:47 +01:00
parent fb3fb570c8
commit 78ebee2cf2
3 changed files with 1088 additions and 498 deletions

View file

@ -2,7 +2,6 @@
const domLoaded = function domLoaded(){
document.removeEventListener("readystatechange",domLoaded);
document.querySelectorAll("li").forEach(li => {
console.log(li);
if( li.innerHTML.indexOf( '[' ) !== -1 ){
li.innerHTML = li.innerHTML.replace(/\[ \]/g, '☐');
li.innerHTML = li.innerHTML.replace(/\[x\]/g, '☒');
@ -10,7 +9,6 @@
} );
}
console.log("I get here");
if(document.readyState == "loading"){
//If the dom hasn't loaded, wait until it is