Uname: Linux premium264.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.3.22 [ PHP INFO ] PHP os: Linux
Server Ip: 69.57.162.13
Your Ip: 216.73.216.219
User: workvvfb (1129) | Group: workvvfb (1084)
Safe Mode: OFF
Disable Function:
NONE

name : bill.js
(function($) {

    var last_data_str = '';
    /* Get into full screen */
    function GoInFullscreen(element) {
        screenfull.request();
    }

    /* Get out of full screen */
    function GoOutFullscreen() {
        screenfull.request();
    }

    /* Is currently in full screen or not */
    function IsFullScreenCurrently() {
        if (screenfull.enabled) {
            return false;
        }
        // If no element is in full-screen

        return true;
    }

    function getDataInit(callback){
        var time_data_url = data_url + '?t='+ Date.now();
        $.ajax({
            url : time_data_url,
            type: 'get',
            dataType: 'json',
            success: function(response){
                
                response.lang = lang_obj;
                
                var template = ejs.compile(data_template['template'], {});
                var html = template(response);
                if(last_data_str.length == 0 || last_data_str != html)
                {
                    last_data_str = html;
                   
                    $('#bill-content').html(html);
                }
                
                callback();
            },
            error: function(){
                callback();
            }
        });
    }
    function getData(){
        getDataInit(function(){
            setTimeout(function() {
                getData();
            }, bill_frequency_time);
        });
    }
    $(document).ready(function(){
        var noSleep = new NoSleep();
        getData();

        $(document).on('click','#go-button', function() {

            if ($('body').hasClass('on-full')) {
                $('body').removeClass('on-full');
                noSleep.disable();
                screenfull.exit();
            } else {

                $('body').addClass('on-full');
                noSleep.enable();
                screenfull.request();
            }
        });

    });



}(jQuery));
© 2025 GrazzMean