403Webshell
Server IP : 195.134.90.114  /  Your IP : 216.73.216.86
Web Server : Apache/2.4.58
System : Linux nepub 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : OFF
Directory :  /var/www/html/public_html/public/site/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /var/www/html/public_html/public/site/xheaderj.js
/* <!--  backtotop-->
<script> */
document.addEventListener('DOMContentLoaded', function() {
    // 1. Δημιουργία του στοιχείου Button
    const btn = document.createElement("button");
    btn.innerHTML = "↑";
    btn.id = "backToTop";
    
    // 2. Προσθήκη CSS Styles μέσω JS
    Object.assign(btn.style, {
        display: "none",
        position: "fixed",
        right: "10px",           // Κολλάει στη δεξιά άκρη
        top: "50%",             // Ξεκινάει από το 50% του ύψους
        transform: "translateY(-50%)", // Το κεντράρει ακριβώς στη μέση
        zIndex: "9999",
        fontSize: "35px",
        backgroundColor: "#194778",
        color: "white",
        border: "none",
        borderRadius: "4px 4px 4px 4px", // Στρογγυλεμένες γωνίες μόνο αριστερά .. was 4px 0 0 4px
        width: "40px",
        height: "50px",
        cursor: "pointer",
        boxShadow: "-2px 0 5px rgba(0,0,0,0.2)"
    });

    // 3. Εισαγωγή του κουμπιού στο Body
    document.body.appendChild(btn);

    // 4. Λειτουργία εμφάνισης/απόκρυψης στο scroll
    window.onscroll = function() {
        if (window.scrollY > 250) {
            btn.style.display = "block";
        } else {
            btn.style.display = "none";
        }
    };

    // 5. Λειτουργία Click για smooth scroll
    btn.onclick = function() {
        window.scrollTo({ top: 0, behavior: 'smooth' });
    };
});
/* </script> */

Youez - 2016 - github.com/yon3zu
LinuXploit