Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/public/js/dashboard-tenant-overview.js
Назад
$(document).ready(function () { let currentStep = 1; let aside = $('.l-sidebar'); let totalTooltips = $('[tool-tip]').length; let dashboardbody = $('.dashboard-body'); // console.log(currentStep) $('.tour-btn').on("click", function () { if (window.innerWidth > 768) { currentStep = 1; let tooltipShown = false; //TODO: updateTooltipCount(); if (!tooltipShown) { $('[tool-tip="1"]').addClass('active'); $('.db-backdrop').fadeIn(); aside.addClass('highlighter'); $('.bottom-bar').addClass('active'); dashboardbody.css('overflow-y', 'hidden'); } } }); function updateTooltipCount() { $('.tooltip-count').text(currentStep + ' of ' + totalTooltips); } $('.tt-close, .hide-tips, .skiptour-btn, .tour-close-btn').click(function () { const activetooltip = $('[tool-tip].active'); let activeStep = $('[tool-tip].active').attr('tool-tip'); dashboardbody.css('overflow-y', 'auto'); if (activeStep == 1) { aside.removeClass('highlighter'); } if (activeStep == 3) { $('.skiptour-btn').text("Skip Tour"); } if (activeStep == 4) { $('.skiptour-btn').text("Skip Tour"); } activetooltip.removeClass('active') dashboardbody.css('overflow-y', 'auto'); $('.highlighter').removeClass('highlighter'); $('.bottom-bar').removeClass('active'); $('.db-backdrop').fadeOut(); }); $('.next-tip-btn').click(function () { const activetooltip = $('[tool-tip].active'); let activeStep = $('[tool-tip].active').attr('tool-tip'); if (activeStep <= totalTooltips) { activetooltip.removeClass('active'); currentStep++; updateTooltipCount(); // console.log(activeStep) if (activeStep == 1) { activetooltip.removeClass('active') aside.removeClass('highlighter'); $('[tool-tip="2"]').addClass('active'); $('.prop-bar').addClass('highlighter'); } if (activeStep == 2) { activetooltip.removeClass('active'); $('.prop-bar').removeClass('highlighter'); $('.top-card').removeClass('highlighter'); $('.bottom-bar').removeClass('active'); $('.db-backdrop').fadeOut(); $('.skiptour-btn').text("Skip Tour"); dashboardbody.css('overflow-y', 'auto'); } } }); // var forEach = function (array, callback, scope) { for (var i = 0; i < array.length; i++) { callback.call(scope, i, array[i]); } }; window.onload = function () { var max = -219.99078369140625; forEach(document.querySelectorAll('.progress'), function (index, element) { percent = element.getAttribute('data-progress'); var fillElement = element.querySelector('.fill'); // if (fillElement) { // fillElement.setAttribute('style', 'stroke-dashoffset: ' + ((100 - percent) / 100) * max); // } else { // console.error(".fill element not found for .progress:", element); // } }); } // bar chart var ctx = document.getElementById("myChart").getContext('2d'); const gradient = ctx.createLinearGradient(0, 0, 0, 400); gradient.addColorStop(0, '#4D54EA'); gradient.addColorStop(1, '#281AC8'); var myChart = new Chart(ctx, { type: 'bar', data: { labels: ['Lorem', 'Lorem', 'Lorem', 'Lorem', 'Lorem', 'Lorem'], datasets: [{ data: ['0', '0', '0', '0', '0', '0'], backgroundColor: gradient, borderColor: 'transparent', borderSkipped: 'start', barThickness: '16', borderRadius: '10', }] }, options: { scales: { y: { grid: { display: true // Hide y-axis grid lines }, type: 'linear', min: 0, max: 60, ticks: { color: '#4D54EA', fontFamily: 'ProximaNova-Regular', }, }, x: { grid: { display: true, // Show x-axis grid lines color: 'rgba(0, 0, 0, 0.1)', // Change grid line color lineWidth: 0, // Change grid line width drawBorder: false, // Hide the x-axis border drawTicks: false // Hide the x-axis tick marks }, ticks: { color: '#4D54EA', fontFamily: 'ProximaNova-Regular', }, }, }, plugins: { legend: { display: false, labels: { fontFamily: 'ProximaNova-Regular', // Set the font family here }, } } }, }); }); $(window).on('load', function () { function loaderClose() { $("#detail-loader").fadeOut(); // $("#detail-loader").hide(); } loaderClose(); $("#detail-loader").hide(); // setTimeout(loaderClose, 3000); });
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка