Skip to content

Instantly share code, notes, and snippets.

/main.js Secret

Created March 14, 2014 18:12
Show Gist options
  • Save anonymous/b59903d92a0a6bb93983 to your computer and use it in GitHub Desktop.
Save anonymous/b59903d92a0a6bb93983 to your computer and use it in GitHub Desktop.
function addProjectClick(){
alert('addProjectClick');
}
function projectsClick(){
alert('projectsClick');
}
function hsedocClick(){
alert('hsedocClick');
}
".button": {
width:"100",
height: "100"
}
"#btnProjects":{
//backgroundImage:'/images/ProjectList.png'
backgroundColor: "#f00"
}
"#btnNewProject":{
//backgroundImage:'/images/AddProject.png'
backgroundColor: "#ff0"
}
"#btnDoc":{
//backgroundImage:'/images/ViewHSEDoc.png'
backgroundColor: "#f0f"
}
"#btnCategories":{
//backgroundImage:'/images/SafetyTopics.png'
backgroundColor: "#00f"
}
<Alloy >
<Window>
<View id="mainContainer" class="container" layout="vertical">
<View height="20%" width="50%" class="logo" >
<ImageView id="logo" image="/images/HSELogo.png"></ImageView>
</View>
<View height="35%" width="90%" layout="horizontal" >
<View width="50%" >
<Button id="btnNewProject" class="button" onClick="addProjectClick" />
</View>
<View width="50%" >
<Button id="btnProjects" class="button" onClick="projectsClick" />
</View>
</View>
<View height="35%" width="90%" layout="horizontal" >
<View width="50%">
<Button id="btnDoc" class="button" onClick="hsedocClick" />
</View>
<View width="50%">
<Button id="btnCategories" class="button" />
</View>
</View>
<View height= "10%"></View>
</View>
</Window>
</Alloy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment