From cdcab5593311b4bdec2b54c070d9f6133b95aaa7 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 13 May 2016 21:50:30 +0200 Subject: Multiple updates --- async.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'async.php') diff --git a/async.php b/async.php index 9093c87..3431705 100755 --- a/async.php +++ b/async.php @@ -37,7 +37,7 @@ if(isset($_GET['bigpipe']) AND (int) $_GET['bigpipe'] === 0) { $PageletRed = new BigPipe\DemoPagelet(); $PageletRed->addHTML('
['.time().'] I AM A PAGELET WITH RED BACKGROUND
'); $PageletRed->addCSS('static/red.php'); -$PageletRed->addJS('static/delayJS.php'); +$PageletRed->addJS('static/delayJS.php?red'); $PageletRed->addJSCode("document.getElementById('red').innerHTML += ' [JS executed]';document.getElementById('red').style.borderRadius = '30px';"); #=============================================================================== @@ -46,7 +46,7 @@ $PageletRed->addJSCode("document.getElementById('red').innerHTML += ' [JS execut $PageletBlue = new BigPipe\DemoPagelet('customPageletID', BigPipe\Pagelet::PRIORITY_HIGH); $PageletBlue->addHTML('
['.time().'] I AM A PAGELET WITH BLUE BACKGROUND
'); $PageletBlue->addCSS('static/blue.php'); -$PageletBlue->addJS('static/delayJS.php'); +$PageletBlue->addJS('static/delayJS.php?blue'); $PageletBlue->addJSCode("document.getElementById('blue').innerHTML += ' [JS executed]';document.getElementById('blue').style.borderRadius = '30px';"); #=============================================================================== @@ -55,7 +55,7 @@ $PageletBlue->addJSCode("document.getElementById('blue').innerHTML += ' [JS exec $PageletGreen = new BigPipe\DemoPagelet(); $PageletGreen->addHTML('
['.time().'] I AM A PAGELET WITH GREEN BACKGROUND
'); $PageletGreen->addCSS('static/green.php'); -$PageletGreen->addJS('static/delayJS.php'); +$PageletGreen->addJS('static/delayJS.php?green'); $PageletGreen->addJSCode("document.getElementById('green').innerHTML += ' [JS executed]';document.getElementById('green').style.borderRadius = '30px';"); ?> -- cgit v1.2.3