1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-24 02:38:15 +04:00

packages from /node_modules, js libs

This commit is contained in:
codecalm
2019-10-20 12:03:42 +02:00
committed by Alex Safian
parent fe85912fe9
commit 0c5ca3f3c3
69 changed files with 59 additions and 119916 deletions

View File

@@ -79,6 +79,8 @@ const tabler = {
return color;
},
colors: (window.tabler_colors || []),
toggleFullscreen: function(elem) {
elem = elem || document.documentElement;
if (
@@ -110,6 +112,8 @@ const tabler = {
},
};
$(document).ready(function() {
const $body = $('body');
@@ -120,19 +124,21 @@ $(document).ready(function() {
return false;
});
$('[data-toggle="tooltip"]').tooltip();
$('[data-toggle="popover"]').popover();
// $('[data-toggle="tooltip"]').tooltip();
// $('[data-toggle="popover"]').popover();
/*
Autosize plugin
*/
if (window.autosize) {
(function() {
const $elem = $('[data-toggle="autosize"]');
const elements = document.querySelectorAll('[data-toggle="autosize"]');
if ($elem) {
$elem.each(function() {
autosize($(this));
console.log('elements.length', elements.length);
if (elements.length) {
elements.forEach(function(element) {
console.log('1', element);
autosize(element);
});
}
})();