-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
m.sousa
committed
Oct 3, 2014
0 parents
commit f231c47
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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+"!!"); | ||
|
||
|
||
} | ||
}); | ||
} |