<div class="balance">
<ul>
<li>Your Balance</li>
<li class="viewmoney">
{{user['balance_formatted']}} <i class="fas fa-eye-slash" style="cursor: pointer;" aria-hidden="true"></i></li>
</ul>
</div>
var mode = "2";
var menu = "1";
var balance = "1";
jQuery(".viewmoney").click(function() {
if (balance == 1) balance = 2;
else balance = 1;
if (balance == 2) {
$(".viewmoney").each(function() {
$(this).html(" {{user['balance_formatted']}} <i class='fas fa-eye-slash' style='cursor: pointer;'></i>");
});
} else {
$(".viewmoney").each(function() {
$(this).html("**** <i class='fas fa-eye' style='cursor: pointer;'></i>");
});
}
}
);
var mode = "2";
var menu = "1";
var balance = localStorage.getItem('show_balance');
if(!balance){
balance = '2';
localStorage['show_balance'] = '2';
}
jQuery(".viewmoney").click(function() {
if (balance == '1'){
balance = '2';
localStorage['show_balance'] = '2';
}
else{
balance = '1';
localStorage['show_balance'] = '1';
}
if (balance == '2') {
$(".viewmoney").each(function() {
$(this).html(" {{user['balance_formatted']}} <i class='fas fa-eye-slash' style='cursor: pointer;'></i>");
});
}
else {
$(".viewmoney").each(function() {
$(this).html("**** <i class='fas fa-eye' style='cursor: pointer;'></i>");
});
}
});