%PDF- %PDF-
Direktori : /proc/309157/root/mnt/tnb2/los/js/ |
Current File : //proc/309157/root/mnt/tnb2/los/js/main.js |
/* ================== Menu hidden any click ================== */ /*(function() { $(document).on("click", function() { return $(".collapse").collapse("hide"); }); })();*/ /* ================= Toggle view password ================== */ $(".togglog").click(function() { $(this).toggleClass("bi-eye"); var input = $($(this).attr("toggle")); if (input.attr("type") == "password") { input.attr("type", "text"); } else { input.attr("type", "password"); } }); $(".toggreg").click(function() { $(this).toggleClass("bi-eye"); var input = $($(this).attr("toggle")); if (input.attr("type") == "password") { input.attr("type", "text"); } else { input.attr("type", "password"); } }); $(".toggre").click(function() { $(this).toggleClass("bi-eye"); var input = $($(this).attr("toggle")); if (input.attr("type") == "password") { input.attr("type", "text"); } else { input.attr("type", "password"); } }); /* ================= Minimize proposition ================== */ $(document).ready(function() { $(".hidden-proposition").css("display", "none"); $(".proposition-min").css("display", "none"); $(".proposition-max").click(function() { $(".hidden-proposition").css("display", ""); $(".proposition-max").css("display", "none"); $(".proposition-min").css("display", ""); }); $(".proposition-min").click(function() { $(".hidden-proposition").css("display", "none"); $(".proposition-max").css("display", ""); $(".proposition-min").css("display", "none"); }); }); /* ================ Table Highlight Row =================*/ function rowHighlight(row) { if ($(row).hasClass("act")) $(row).removeClass("act"); else $(row).addClass("act"); } function rowMark(row) { if ($(row).hasClass("marked")) $(row).removeClass("marked"); else $(row).addClass("marked"); } function HideStage(division, stage) { $('.stage-'+stage).hide(); $('.stage-'+stage+'h').show(); } function ShowStage(division, stage) { $('.stage-'+stage+'h').hide(); $('.stage-'+stage).show(); } /* ================ Visit hand division ================ */ $('.division-pi').on('mouseenter mouseleave', function() { if ($('.pi').hasClass('visit-pi')) { $('.pi').removeClass('visit-pi'); } else { $('.pi').addClass('visit-pi'); } }); $('.division-mpi').on('mouseenter mouseleave', function() { if ($('.mpi').hasClass('visit-mpi')) { $('.mpi').removeClass('visit-mpi'); } else { $('.mpi').addClass('visit-mpi'); } }); $('.division-re').on('mouseenter mouseleave', function() { if ($('.re').hasClass('visit-re')) { $('.re').removeClass('visit-re'); } else { $('.re').addClass('visit-re'); } }); $('.division-mre').on('mouseenter mouseleave', function() { if ($('.mre').hasClass('visit-mre')) { $('.mre').removeClass('visit-mre'); } else { $('.mre').addClass('visit-mre'); } }); $('.division-opt').on('mouseenter mouseleave', function() { if ($('.opt').hasClass('visit-opt')) { $('.opt').removeClass('visit-opt'); } else { $('.opt').addClass('visit-opt'); } }); $('.division-com').on('mouseenter mouseleave', function() { if ($('.com').hasClass('visit-com')) { $('.com').removeClass('visit-com'); } else { $('.com').addClass('visit-com'); } }); /* ================= Visit rifle division ================= */ /* =================== Visit shotgun division =================== */ /* ============= Select All items ============= */ //$('.selectpicker').selectpicker('selectAll'); //$('.druh_zavodu').selectpicker('val', 'pohar'); $('.druh_zavodu').selectpicker('selectAll'); //$('.zbrane').selectpicker('val', 'kz'); $('.zbrane').selectpicker('selectAll');