PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 1.0.1
Visualizer – Tables & Charts Manager with Built-in AI Generator v1.0.1
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
visualizer / js / frame.js

frame.js in Visualizer – Tables & Charts Manager with Built-in AI Generator 1.0.1, at js/frame.js

88 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($) {
2 $(document).ready(function() {
3 $('.type-radio').change(function() {
4 $('.type-label-selected').removeClass('type-label-selected');
5 $(this).parent().addClass('type-label-selected');
6 });
7
8 $('.group-title').click(function() {
9 var parent = $(this).parent();
10
11 if (parent.hasClass('open')) {
12 parent.removeClass('open');
13 } else {
14 $('.group.open').removeClass('open');
15 parent.addClass('open');
16 }
17 });
18
19 $('#csv-file').change(function() {
20 if ($.trim($(this).val()) != '') {
21 $('#canvas').lock();
22 $('#csv-form').submit();
23 }
24 });
25
26 $('#thehole').load(function() {
27 $('#canvas').unlock();
28 });
29
30 $('.section-title').click(function() {
31 $(this).toggleClass('open').parent().find('.section-items').toggle();
32 });
33
34 $('.more-info').click(function() {
35 $(this).parent().find('.section-description:first').toggle();
36 return false;
37 });
38 });
39 })(jQuery);
40
41 (function($) {
42 $.fn.lock = function() {
43 $(this).each(function() {
44 var $this = $(this);
45 var position = $this.css('position');
46
47 if (!position) {
48 position = 'static';
49 }
50
51 switch(position) {
52 case 'absolute':
53 case 'relative':
54 break;
55 default:
56 $this.css('position', 'relative');
57 break;
58 }
59 $this.data('position', position);
60
61 var width = $this.width(),
62 height = $this.height();
63
64 var locker = $('<div class="locker"></div>');
65 locker.width(width).height(height);
66
67 var loader = $('<div class="locker-loader"></div>');
68 loader.width(width).height(height);
69
70 locker.append(loader);
71 $this.append(locker);
72 $(window).resize(function() {
73 $this.find('.locker,.locker-loader').width($this.width()).height($this.height());
74 });
75 });
76
77 return $(this);
78 }
79
80 $.fn.unlock = function() {
81 $(this).each(function() {
82 $(this).find('.locker').remove();
83 $(this).css('position', $(this).data('position'));
84 });
85
86 return $(this);
87 }
88 })(jQuery);