Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
@extends('admin::grid.actions.dropdown') @section('child') <script> $("body").on("con..
Decoded Output download
<? @extends('admin::grid.actions.dropdown')
@section('child')
<script>
$("body").on("contextmenu", "table.grid-table>tbody>tr", function (e) {
$('#grid-context-menu .dropdown-menu').hide();
var menu = $(this).find('td.column-__actions__ .dropdown-menu');
var index = $(this).index();
if (menu.length) {
menu.attr('index', index).detach().appendTo('#grid-context-menu');
} else {
menu = $('#grid-context-menu .dropdown-menu[index=' + index + ']');
}
var height = 0;
if (menu.height() > (document.body.clientHeight - e.pageY)) {
menu.css({left: e.pageX + 10, top: e.pageY - menu.height()}).show();
} else {
menu.css({left: e.pageX + 10, top: e.pageY - 10}).show();
}
return false;
});
$(document).on('click', function () {
$('#grid-context-menu .dropdown-menu').hide();
});
$('#grid-context-menu').click('a', function () {
$('#grid-context-menu .dropdown-menu').hide();
});
</script>
<style>
.grid-table .column-__actions__ {
display: none !important;
}
</style>
<template>
<div id="grid-context-menu"></div>
</template>
@endsection
?>
Did this file decode correctly?
Original Code
@extends('admin::grid.actions.dropdown')
@section('child')
<script>
$("body").on("contextmenu", "table.grid-table>tbody>tr", function (e) {
$('#grid-context-menu .dropdown-menu').hide();
var menu = $(this).find('td.column-__actions__ .dropdown-menu');
var index = $(this).index();
if (menu.length) {
menu.attr('index', index).detach().appendTo('#grid-context-menu');
} else {
menu = $('#grid-context-menu .dropdown-menu[index=' + index + ']');
}
var height = 0;
if (menu.height() > (document.body.clientHeight - e.pageY)) {
menu.css({left: e.pageX + 10, top: e.pageY - menu.height()}).show();
} else {
menu.css({left: e.pageX + 10, top: e.pageY - 10}).show();
}
return false;
});
$(document).on('click', function () {
$('#grid-context-menu .dropdown-menu').hide();
});
$('#grid-context-menu').click('a', function () {
$('#grid-context-menu .dropdown-menu').hide();
});
</script>
<style>
.grid-table .column-__actions__ {
display: none !important;
}
</style>
<template>
<div id="grid-context-menu"></div>
</template>
@endsection
Function Calls
| None |
Stats
| MD5 | e978f5d600db51c36a32677fb1f754dc |
| Eval Count | 0 |
| Decode Time | 87 ms |