403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/triamudom/tuprblearn/mod/data/preset/imagegallery/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/mod/data/preset/imagegallery/jstemplate.js
var maxHeight = 550;
var maxListHeight = 120;

function init() {
    if (document.getElementById("singleimage")) single();
    /*else if (document.getElementById("pictures")) list();*/
}

function list() {
    imageDivs = document.getElementsByName("listimage");
    for (i=0; i < imageDivs.length; i++) {
        currentHeight = imageDivs[i].offsetHeight;
        currentWidth = imageDivs[i].offsetWidth;

        if (currentHeight > maxListHeight) {
            ratio = maxListHeight / currentHeight;
            imageDivs[i].style.width = (currentWidth*ratio) + 'px';
            imageDivs[i].style.height = (currentHeight*ratio) + 'px';
            imageDivs[i].firstChild.style.height = '100%';
            imageDivs[i].firstChild.style.width = '100%';
        }
    }
}

function single() {
    var imageDiv = document.getElementById("singleimage");

    if (imageDiv) {
        currentHeight = imageDiv.offsetHeight;
        currentWidth  = imageDiv.offsetWidth;

        if (currentHeight > maxHeight) {
            ratio = maxHeight / currentHeight;
            imageDiv.style.width = (currentWidth*ratio) + 'px';
            imageDiv.style.height = (currentHeight*ratio) + 'px';

        }
    }
}

window.onload = init;

Youez - 2016 - github.com/yon3zu
LinuXploit