@flourish/footer
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -47,4 +47,12 @@ (function (global, factory) { | ||
el.appendChild(footer_el); | ||
appendStyles(); | ||
} | ||
function appendStyles() { | ||
var css = document.createElement("style"); | ||
css.type = "text/css"; | ||
css.innerHTML = ".flourish-footer {margin: 0; } .flourish-footer p {margin: 0; display: inline-block; } .flourish-footer p:empty {height: 0; } .flourish-footer a {color: inherit; } .flourish-footer .flourish-footer-note {margin-left: 3px; }"; | ||
document.body.appendChild(css); | ||
} | ||
function updateFooter(new_state) { | ||
@@ -51,0 +59,0 @@ state = new_state; |
{ | ||
"name": "@flourish/footer", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Add footer", | ||
@@ -5,0 +5,0 @@ "main": "footer.js", |
@@ -39,4 +39,12 @@ var footer_el, source_el, note_el; | ||
el.appendChild(footer_el); | ||
appendStyles(); | ||
} | ||
function appendStyles() { | ||
var css = document.createElement("style"); | ||
css.type = "text/css"; | ||
css.innerHTML = ".flourish-footer {margin: 0; } .flourish-footer p {margin: 0; display: inline-block; } .flourish-footer p:empty {height: 0; } .flourish-footer a {color: inherit; } .flourish-footer .flourish-footer-note {margin-left: 3px; }"; | ||
document.body.appendChild(css); | ||
} | ||
function updateFooter(new_state) { | ||
@@ -43,0 +51,0 @@ state = new_state; |
Sorry, the diff of this file is not supported yet
11622
229