Skip to content

Commit

Permalink
Fixes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
WyohKnott committed Mar 8, 2018
1 parent f64fef9 commit 4a05707
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,14 @@ <h2>Notes</h2>
} else el.style.height = height + "px";

el.style.width = width + "px";
el.style.backgroundImage = 'url(\"' + src + '\")';
var styleEl = getElId(side + "SideStyle");
if (styleEl == null) {
styleEl = document.createElement("style");
styleEl.id = side + "SideStyle";
styleEl.textContent = "#" + el.id + "{}";
document.head.appendChild(styleEl);
}
styleEl.sheet.cssRules[0].style.backgroundImage = 'url(\"' + src + '\")';
el.style.backgroundColor = "";
el.style.opacity = 1;
if (el == view.right) {
Expand Down

0 comments on commit 4a05707

Please sign in to comment.