mirror of
https://github.com/felixfoertsch/wordpress-dev-env.git
synced 2026-04-18 15:28:44 +02:00
Initial commit
This commit is contained in:
21
wordpress_plugins/debug-bar-cache-lookup/assets/css/dbcl.css
Normal file
21
wordpress_plugins/debug-bar-cache-lookup/assets/css/dbcl.css
Normal file
@@ -0,0 +1,21 @@
|
||||
#dbcl_panel form p{
|
||||
padding:5px;
|
||||
clear:both;
|
||||
}
|
||||
#dbcl_panel form p label{
|
||||
width:50px;
|
||||
display:block;
|
||||
float:left;
|
||||
}
|
||||
|
||||
#dbcl_panel form p input{
|
||||
float:left;
|
||||
width:150px;
|
||||
}
|
||||
|
||||
#dbcl_panel form p.center input{
|
||||
width:200px;
|
||||
}
|
||||
#dbcl_results {
|
||||
margin-top:20px;
|
||||
}
|
||||
20
wordpress_plugins/debug-bar-cache-lookup/assets/js/dbcl.js
Normal file
20
wordpress_plugins/debug-bar-cache-lookup/assets/js/dbcl.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/*global dbcl:false, ajaxurl:false */
|
||||
( function ( $ ) {
|
||||
$( document ).on( 'submit', '#dbcl_form', function ( e ) {
|
||||
e.preventDefault();
|
||||
$( '#dbcl_results' ).empty();
|
||||
var dbcl_data = {
|
||||
action: 'dbcl',
|
||||
dbcl_key: $( '#dbcl_key' ).val(),
|
||||
dbcl_group: $( '#dbcl_group' ).val(),
|
||||
security: dbcl.security
|
||||
};
|
||||
$.post( ajaxurl, dbcl_data, function ( res ) {
|
||||
if ( true === res.success ) {
|
||||
$( '#dbcl_results' ).html( res.data.cache );
|
||||
} else {
|
||||
$( '#dbcl_results' ).html( 'No cache data found.' );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
} )( jQuery );
|
||||
BIN
wordpress_plugins/debug-bar-cache-lookup/assets/screenshot-1.jpg
Normal file
BIN
wordpress_plugins/debug-bar-cache-lookup/assets/screenshot-1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
Reference in New Issue
Block a user