File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
tests/manual_tests/webview Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ < html >
2
+
3
+ < head >
4
+ < title > Webview</ title >
5
+ </ head >
6
+
7
+ < body >
8
+ < p class ="indicator "> </ p >
9
+ <!-- <webview id="foo" src="http://www.google.com/" style="width:400; height:300"></webview> -->
10
+ < webview id ="foo " src ="http://www.monocubed.com/2010/07/27/galactic-inbox/ " partition ="persist:trusted-audio "> </ webview >
11
+ < script type ="text/javascript ">
12
+ onload = function ( ) {
13
+ var webview = document . getElementById ( "foo" ) ;
14
+ var indicator = document . querySelector ( ".indicator" ) ;
15
+
16
+ var loadstart = function ( ) {
17
+ indicator . innerText = "loading..." ;
18
+ }
19
+ var loadstop = function ( ) {
20
+ indicator . innerText = "" ;
21
+ }
22
+ webview . addEventListener ( "loadstart" , loadstart ) ;
23
+ webview . addEventListener ( "loadstop" , loadstop ) ;
24
+ }
25
+ </ script >
26
+ </ body >
27
+
28
+ </ html >
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " WebView" ,
3
+ "main" : " index.html"
4
+ }
You can’t perform that action at this time.
0 commit comments