Server IP : 162.0.232.140 / Your IP : 18.189.188.157 Web Server : LiteSpeed System : Linux premium139.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : micrcvoy ( 740) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/micrcvoy/public_html/controlPanel/assets/plugins/summernote/src/js/module/ |
Upload File : |
define(function () { var Fullscreen = function (handler) { var $window = $(window); var $scrollbar = $('html, body'); /** * toggle fullscreen * * @param {Object} layoutInfo */ this.toggle = function (layoutInfo) { var $editor = layoutInfo.editor(), $toolbar = layoutInfo.toolbar(), $editable = layoutInfo.editable(), $codable = layoutInfo.codable(); var resize = function (size) { $editable.css('height', size.h); $codable.css('height', size.h); if ($codable.data('cmeditor')) { $codable.data('cmeditor').setsize(null, size.h); } }; $editor.toggleClass('fullscreen'); var isFullscreen = $editor.hasClass('fullscreen'); if (isFullscreen) { $editable.data('orgheight', $editable.css('height')); $window.on('resize', function () { resize({ h: $window.height() - $toolbar.outerHeight() }); }).trigger('resize'); $scrollbar.css('overflow', 'hidden'); } else { $window.off('resize'); resize({ h: $editable.data('orgheight') }); $scrollbar.css('overflow', 'visible'); } handler.invoke('toolbar.updateFullscreen', $toolbar, isFullscreen); }; }; return Fullscreen; });