Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
m.sousa committed Oct 3, 2014
0 parents commit f231c47
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
Empty file added READ.md
Empty file.
12 changes: 12 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/
<name>ExemploMobile</name>
<description>
Aplicativo desenvolvido para exemplificar o uso do PhoneGap
</description>
<author email="[email protected]" href="http://phonegap.com">
Criador do projeto
</author>
<access origin="*" />
<preference name="phonegap-version" value="3.1.0" />
</widget>
17 changes: 17 additions & 0 deletions index.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE HTML>
<html>

<head>
<title>Exemplo Mobile</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/jquery.min.js "></script>
<script type="text/javascript" src="js/index.js"></script>
</head>
<body>
Nome: <input id="txtNome" type="text">
<button id="btOk">Ok</button>

</body>
</html>
20 changes: 20 additions & 0 deletions js/arquivo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady() {

$("#btOk").click(function(){
var nome = $("#txtNome").val();
if(nome.length == 0) {

alert("preencha seu nome no campo apresentado na tela.");

}
else
{

alert("Boas Vindas "+nome+"!!");


}
});
}

0 comments on commit f231c47

Please sign in to comment.