html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>Copy the next two lines and add the container div (just bugfixed. Also about to remove that requirement). That's it.</title>
<script src="https://cdn.rawgit.com/kaiof/webview-console/aefdf696/webview-console.js"></script>
<link rel="stylesheet" href="https://cdn.rawgit.com/kaiof/webview-console/3a636bee/webview-console.css"></link>
<!-- test -->
<script>
if(head_syntax_error) alert("..."); // this is a syntax error
</script>
</head>
<body>
<!-- Copy this line wherever you want it to be. You're done. -->
<div id="error_console"></div>
<hr />
Instructions (for embedded Chromium WebView: the SoloLearn APP):<br />
<ol>
<li>Copy the two "rawgit" script/link lines to the TOP of your <head>.
<li>About to remove the next requirement. To popup, just call document.location.href="#ecpup1";
<li>Copy the error_console div anywhere into your <body> (for now, just HIDE it and set HREF as above).
<li>Code. Catch all errors.
Enter to Rename, Shift+Enter to Preview
css
css
1
Enter to Rename, Shift+Enter to Preview
js
js
1
if(js_syntax_error) {alert("js error";)} // this is a syntax error
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run