Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 1.85 KB

README.md

File metadata and controls

64 lines (47 loc) · 1.85 KB

XBrowser

XBrowser(Codename BlueShark) is a hybrid client for internet surfing, data visualization, business intelligence and online gaming etc. internet applications.

Documentation

Quick Start

Here is a quick start for building an online application in 5 minutes.

  1. Download install file and install XBrowser in your computer then start the application you just installed.

1

  1. Type in www.wikipedia.org then enter, you will see the Wikipedia website.

1

  1. Create a test.xmlv and type in following text:
<xmlv>
	<json/>
	<script>
		canvas.text('Hello BlueShark',100,100)
	</script>
</xmlv>

save it(Ctrl+S/Cmd+S on mac). Then open the XBrowser and use the shortcut(Ctrl+L/Cmd+L on mac) to initiate file chooser and then choose the test.xmlv file you just created. 1

  1. Expand json to:
<xmlv>
	<json>
		[{"type":"button","id":"button001","x":10,"y":10,"text":"A normal button"}]
	</json>
	<script/>
</xmlv>

save it, reopen the file: 1

  1. Expand both json and script tags:
<xmlv>
	<json>
		[{"type":"button","id":"button001","x":10,"y":10,"text":"A normal button"}]
	</json>
	<script>
		timer = app.timer
		timer.action = { now -> 
			button001.x += 1
		}
		timer.start()
	</script>
</xmlv>

Save and reopen the file, the animation is out there.