BBnepal-Accounts/assets_admin/js/main.js
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

71 lines
1.6 KiB
JavaScript

//PASSWORD SHOW
$(".passwrd-icon").click(function () {
$(".passwrd-icon").toggleClass("icon-y");
var input = $(".password_hide");
if (input.attr("type") == "password") {
input.attr("type", "text");
} else {
input.attr("type", "password");
}
});
$(".con-pass").click(function() {
$(".con-pass").toggleClass("icon-y");
var input1 = $( ".password_hide_c");
if (input1.attr("type") == "password") {
input1.attr("type", "text");
} else {
input1.attr("type", "password");
}
});
//mobile-menu
$(".mobileMenu").click(function () {
$(".sideMenu").toggleClass("side-menu-open");
});
$(function () {
var $ppc = $(".progress-pie-chart"),
percent = parseInt($ppc.data("percent")),
deg = (360 * percent) / 100;
if (percent > 50) {
$ppc.addClass("gt-50");
}
$(".ppc-progress-fill").css("transform", "rotate(" + deg + "deg)");
$(".ppc-percents span").html(percent + "%");
});
// $(document).ready(function(){
// if ( $('.listWithDrpdwn').hasClass('active') ) {
// $(this).find('.dropdown-toggle').attr("aria-expanded","true");
// $(this).find('.collapse').addClass('show')
// }else{
// $('.dropdown-toggle').attr("aria-expanded","false");
// $('.collapse').removeClass('show')
// }
// });
$(document).ready(function(){
if ( $(this).hasClass('active') ) {
$('.dropdown-toggle').attr("aria-expanded","true");
$('.collapse').addClass('show')
}else{
$('.dropdown-toggle').attr("aria-expanded","false");
$('.collapse').removeClass('show')
}
});
if($('.nepal-date').length > 0) {
$('.nepal-date').nepaliDatePicker({
language : 'english',
ndpYear: true,
ndpMonth: true,
ndpYearCount: 100
})
}