2
1
mirror of https://github.com/s00500/nodeMessageBoard.git synced 2025-06-13 08:10:40 +00:00

Added fix for Safari colors

This commit is contained in:
2016-03-15 15:19:33 +01:00
parent ee2462a40c
commit d1a2c2231d
3 changed files with 4 additions and 2 deletions

View File

@ -98,7 +98,8 @@ body {
var newP = document.createElement('p');
newH1.innerHTML = message;
newP.innerHTML = "by "+censoredNumber+" at "+time;
newDiv.style="background:"+getColor(color)+" !important; padding:10px 0; margin:10px 0;";
newDiv.style.backgroundColor = getColor(color); //need this on both for some browsers (especially safari) to recognize...
newDiv.style="background-color:"+getColor(color)+" !important; padding:10px 0; margin:10px 0;";
newDiv.className="jumbotron";
newDiv.appendChild(newH1);
newDiv.appendChild(newP);