A smart and simple array of functions to simplify styling in JavaScript.
Copy this:
<script src="https://ste-jsplugins.github.io/simpleStyles/plugin.js"></script>
and paste it in your <head>
section.
setContent
Sets the content of a given element.setBackground
Sets the background of a given element.setTextColor
Sets the text color of a given element.getStyle
Returns the specified style value of a given element.setStyle
Sets the specified style value of a given element.
setContent
element.setContent(<content: string>);
setBackground
element.setBackground(<styles: string>);
setTextColor
element.setTextColor(<color: string>);
getStyle
element.getStyle(<style: string>);
setStyle
element.setStyle(<selector: string>,<value: (string|int)>);