projects
/
xynt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more readable log, start/stop button added, many body related events traced
[xynt.git]
/
web
/
test-hs-rd.php
diff --git
a/web/test-hs-rd.php
b/web/test-hs-rd.php
index
9edd50b
..
4f13f24
100644
(file)
--- a/
web/test-hs-rd.php
+++ b/
web/test-hs-rd.php
@@
-8,6
+8,9
@@
var ctx_new = "";
window.onload = function () { if (http_streaming != "ready") http_streaming.reload(); };
</script>
window.onload = function () { if (http_streaming != "ready") http_streaming.reload(); };
</script>
+</head>
+<body onabort = "console.log('rd abort');" onunload = "console.log('rd unload');" onerror = "console.log('rd error');" onkeypress = "console.log('rd keypress');">
+</body>
<?php
function mop_flush()
{
<?php
function mop_flush()
{
@@
-25,10
+28,10
@@
function main()
// if ($i == 0)
// sleep(1);
// if ($i == 0)
// sleep(1);
- if ($i != 8) {
+ if ($i != 8
|| true
) {
printf("<script id='hs%d' type='text/javascript'>
printf("<script id='hs%d' type='text/javascript'>
-push(\"$('cont').innerHTML
= '
%d';\");
-</script>", $i, $i);
+push(\"$('cont').innerHTML
+= '%s
%d';\");
+</script>", $i,
($i == 0 ? "<br/>" : ""),
$i);
}
else {
// exit();
}
else {
// exit();
@@
-42,7
+45,4
@@
push(\"$('cont').innerHTML = '%d';\");
}
main();
?>
}
main();
?>
-</head>
-<body>
-</body>
</html>
\ No newline at end of file
</html>
\ No newline at end of file