%PDF-1.7 GIF89;
| Server IP : 104.20.45.2 / Your IP : 172.16.20.3 Web Server : Apache/2.4.25 (Debian) System : Linux f64a392e70de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : application ( 1000) PHP Version : 5.6.40 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /app/js/ |
Upload File : |
/**
* js/inlinePdf.js
*
* Copyright (c) 2013-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* Functions for inline PDF render and viewing.
*/
/**
* Initialize the reading tool javascript (resizable and fullscreen mode)
*/
$(document).ready(function(){
var inlineStyle = ''; // Store the inline style that resizable creates, and reassign it when done with fullscreen
// For the background "lightbox" effect
$("#container").prepend('<div id="fade" class="black_overlay"></div>');
$('#sidebarToggle').click(function() {
$('#sidebar').toggle().toggleClass("sidebar-hidden");
$('#main').toggleClass("main-full");
});
$('#fullscreenShow').click(function() {
inlineStyle = $("#inlinePdf").attr("style");
$("#inlinePdf").removeAttr("style"); // Resizable doesn't work in fullscreen
$("#inlinePdf").resizable("destroy"); // Resizable doesn't work in fullscreen
$("#inlinePdf").addClass('fullscreen');
$("#fade").fadeIn(2000);
$("#fullscreenHide").show();
return false;
});
$('#fullscreenHide').click(function() {
$("#inlinePdf").attr("style", inlineStyle);
$("#inlinePdf").removeClass('fullscreen');
$("#fade").hide();
$("#fullscreenHide").hide();
$("#inlinePdf").resizable({ containment: 'parent', handles: 'se' }); // Reinitialize resizable
return false;
});
});