<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Untitled Application</AppTitle>
	<AppShortName>MyApp</AppShortName>
	<Author>Author name</Author>
	<Version>1.0</Version>
	<VariablesScanned>False</VariablesScanned>
	<PageWidth>700</PageWidth>
	<PageHeight>400</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<AppIcon>C:\Users\sinli\Documents\VisualNeoWeb\Libraries\img\default-icon.png</AppIcon>
	<CustomCSS>span{
  cursor:pointer;
}</CustomCSS>
	<LanguageCode>en</LanguageCode>
	<ThemeColor>#000000</ThemeColor>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<Components>
		<FunctionList name="Subroutines">
			<Components>
				<Function name="mysubroutine">
					<Code>.Show clicked word
SetVar [clickedWord] [word]
Refresh

.Change word color
CreateEmptyObject [mycss]
SetVar [mycss.color] &quot;red&quot;
SetObjectCSS &quot;[theId]&quot; [mycss]
</Code>
					<Params>[word]|STRING|Clicked word;[theId]|STRING|Click word ID</Params>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<Components>
						<TextInput id="TextInput1">
							<left>40px</left>
							<top>32px</top>
							<width>464px</width>
							<height>48px</height>
							<variable>[sentence]</variable>
							<place_holder>Write a sentence</place_holder>
						</TextInput>
						<PushButton id="PushButton1">
							<left>512px</left>
							<top>32px</top>
							<width>136px</width>
							<height>48px</height>
							<caption>Process</caption>
							<click>NeoScriptToJS
SetObjectHTML &quot;Container1&quot; &quot;&quot;
StrParse &quot;[sentence]&quot; &quot; &quot; [words]
Loop 0 [words.length-1] [n]
  SetVar [words([n])] &quot;&lt;span id=&apos;word[n]&apos; onclick=&apos;neosubroutine.mysubroutine(this.innerText,this.id);&apos;&gt;[words([n])]&lt;/span&gt;&quot;
  GetObjectHTML &quot;Container1&quot; [content]
  SetObjectHTML &quot;Container1&quot; &quot;[content][words([n])] &quot;
EndLoop
</click>
						</PushButton>
						<Container id="Container1">
							<left>40px</left>
							<top>88px</top>
							<width>608px</width>
							<height>216px</height>
							<style>font-size:12pt;background-color:#fff;border-style:solid;border-width:1px;padding-bottom:10px;padding-left:10px;padding-right:10px;padding-top:10px</style>
							<html>Write a sentence and press &quot;Process&quot; button.&lt;br&gt;
Then you can click on each word.</html>
						</Container>
						<Container id="Container2">
							<left>40px</left>
							<top>312px</top>
							<width>608px</width>
							<height>48px</height>
							<style>font-size:12pt;background-color:#fff;border-style:solid;border-width:1px;padding-bottom:10px;padding-left:10px;padding-right:10px;padding-top:10px</style>
							<html>&lt;b&gt;You clicked:&lt;/b&gt; [clickedWord]</html>
						</Container>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>800px</width>
							<height>400px</height>
							<close_button>False</close_button>
							<kind>custom</kind>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
