diff --git a/examples/playground.php b/examples/playground.php index a6b5a69..e6e14be 100644 --- a/examples/playground.php +++ b/examples/playground.php @@ -3,7 +3,6 @@ $url = @$_POST['url'] ?: @$_GET['url']; $sel = @$_POST['sel'] ?: @$_GET['sel']; $go = @$_POST['go'] ?: @$_GET['go']; - $ch = @$_POST['ch'] ?: @$_GET['ch']; $rm = strtoupper(getenv('REQUEST_METHOD') ?: $_SERVER['REQUEST_METHOD']); // var_export(compact('url', 'sel', 'go')+[$rm]+$_SERVER); if ( $rm == 'POST' ) { @@ -16,7 +15,7 @@ // Enable cache hQuery::$cache_path = sys_get_temp_dir() . '/hQuery/'; - isset($ch) && $ch !== '' and hQuery::$cache_expires = (int)$ch; + $_POST['ch'] === '0' || (int)$_POST['ch'] > 0 and hQuery::$cache_expires = (int)$_POST['ch']; // Results acumulator $return = array(); @@ -157,6 +156,10 @@ padding: 15px 5px 10px; vertical-align: top; } + table>tbody>tr>td img{ + max-width: 300px; + height: auto; + } td pre { margin: 0; } @@ -255,7 +258,7 @@ color: #428bca; background-color: #fff; } - + .text-center { text-align: center; } @@ -278,7 +281,7 @@