I have never done this but just wondered how I can hide the notification bubble when the value becomes less than one(1). So far, then notification displays well with the code provided.
<a class="fa fa-globe">
<a href="#"> Notification</a>
<a href="#"> <span class="fa fa-comment">{{=len(rows2)}}</span></a>
<!--span class="num">2</span-->
</a>
</a>
<style>
a.fa-globe {
position: relative;
font-size: 1.2em;
color: #38D9D6;
cursor: pointer;
}
span.fa-comment {
position: absolute;
font-size: 0.8em;
top: -3px;
color: red;
right: 2px;
background-color: rgba(212, 19, 13, 1);
color: #fff;
border-radius: 3px;
padding: 1px 3px;
font: 8px Verdana;
}
</style>