showif
v1.0.0
Published
    otherclass"> Lorem!.... </div>This one will only be shown if the browser is Firefox and also if it's version is higher than 56. Let's check out another one:
<div class="show-if-firefox(=55)"> Say nothing </div>This will only be represented in Firefox 55 ! Absolutely you can do contrary like :
<div class="hide-if-chrome(<55)"> Say nothing </div>This will be hidden in Chrome with version less than 55 . (or shown in Chrome with v. higher than 55)
Now the third approach , which you can define your condition and also the class you want to be embedded when that condition goes right :
<p data-if-chrome="myclass"> Yeah </p>So this will add class of myclass to this tag if user is in Chrome. Let's see another one:
<div data-if-chrome="(>54) myclass bold-it"> Sunday </div>So this will add the classes myclass and bold-it to this element if user's in Chrome and it's version is higher that 54. Now last one:
<p data-if-chrome="(=56) reddy"> Working on it </p>This one will have reddy class only in Chrome 56.
