Файловый менеджер - Редактировать - /home/clickysoft/public_html/charliapp-v2.clickysoft.net/public/js/main.js
Назад
$(document).ready(function () { window._token = $('meta[name="csrf-token"]').attr("content"); moment.updateLocale("en", { week: { dow: 1 }, // Monday is the first day of the week }); $(".integer-input").on("keydown", function (e) { var key = e.charCode || e.keyCode || 0; // allow backspace, tab, delete, enter, arrows, numbers and keypad numbers ONLY // home, end, period, and numpad decimal return ( key == 8 || key == 9 || key == 13 || key == 46 || key == 110 || // key == 190 || (key >= 35 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105) ); }); $(".date-future").datetimepicker({ format: "DD-MM-YYYY", minDate: new Date(), locale: "en", icons: { up: "fas fa-chevron-up", down: "fas fa-chevron-down", previous: "fas fa-chevron-left", next: "fas fa-chevron-right", }, }); $(".date").datetimepicker({ format: "DD-MM-YYYY", locale: "en", icons: { up: "fas fa-chevron-up", down: "fas fa-chevron-down", previous: "fas fa-chevron-left", next: "fas fa-chevron-right", }, }); $(".datetime").datetimepicker({ format: "DD-MM-YYYY HH:mm:ss", locale: "en", sideBySide: true, icons: { up: "fas fa-chevron-up", down: "fas fa-chevron-down", previous: "fas fa-chevron-left", next: "fas fa-chevron-right", }, }); $(".timepicker").datetimepicker({ format: "HH:mm:ss", icons: { up: "fas fa-chevron-up", down: "fas fa-chevron-down", previous: "fas fa-chevron-left", next: "fas fa-chevron-right", }, }); $(".select-all").click(function () { let $select2 = $(this).parent().siblings(".select2"); $select2.find("option").prop("selected", "selected"); $select2.trigger("change"); }); $(".deselect-all").click(function () { let $select2 = $(this).parent().siblings(".select2"); $select2.find("option").prop("selected", ""); $select2.trigger("change"); }); $(".select2").each(function () { if ($(this).hasClass("color")) { $(this).select2({ templateResult: formatState, templateSelection: formatState, containerCssClass: "color-select", dropdownCssClass: "color-option", }); } else { $(this).select2(); } }); $(".treeview").each(function () { var shouldExpand = false; $(this) .find("li") .each(function () { if ($(this).hasClass("active")) { shouldExpand = true; } }); if (shouldExpand) { $(this).addClass("active"); } }); $(".c-header-toggler.mfs-3.d-md-down-none").click(function (e) { $("#sidebar").toggleClass("c-sidebar-lg-show"); setTimeout(function () { $($.fn.dataTable.tables(true)).DataTable().columns.adjust(); }, 400); }); if ($(".coloris").length > 0) { Coloris({ el: ".coloris", swatches: [ "#264653", "#2a9d8f", "#e9c46a", "#f4a261", "#e76f51", "#d62828", "#023e8a", "#0077b6", "#0096c7", "#00b4d8", "#48cae4", ], }); } }); function formatState(state) { if (!state.id) { return $('<span style="padding-left: 8px">' + state.text + "</span>"); } var $state = $( '<span style="display: flex; width: 100%; padding: 8px; border-radius: 5px; background-color: ' + state.element.getAttribute("bcolor") + "; color: " + state.element.getAttribute("fcolor") + '">' + state.text + "</span>" ); return $state; }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка