Permalink
Browse files

updated sample index.html file

  • Loading branch information...
1 parent 07d2a8a commit 7eac12b3316dff9a91f0b0175a0b63e3f0d06308 @sintaxi sintaxi committed Mar 8, 2009
Showing with 12 additions and 20 deletions.
  1. +3 −3 iphone/Classes/PhoneGapDelegate.m
  2. +4 −4 iphone/PhoneGap.xcodeproj/project.pbxproj
  3. +5 −13 iphone/www/index.html
@@ -10,9 +10,9 @@ @implementation PhoneGapDelegate
@synthesize imagePickerController;
void alert(NSString *message) {
- UIAlertView *openURLAlert = [[UIAlertView alloc] initWithTitle:@"Alert" message:message delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
- [openURLAlert show];
- [openURLAlert release];
+// UIAlertView *openURLAlert = [[UIAlertView alloc] initWithTitle:@"Alert" message:message delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
+// [openURLAlert show];
+// [openURLAlert release];
}
/*
@@ -334,15 +334,15 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CODE_SIGN_IDENTITY = "iPhone Developer: Brant Vasilieff";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Brant Vasilieff";
+ CODE_SIGN_IDENTITY = "iPhone Developer: Brock Whitten";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Brock Whitten";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
- PROVISIONING_PROFILE = "880150E2-809D-4BBE-B91E-244F2A6F59A0";
- "PROVISIONING_PROFILE[sdk=iphoneos*]" = "880150E2-809D-4BBE-B91E-244F2A6F59A0";
+ PROVISIONING_PROFILE = "3CC55FB0-969F-4E90-8361-E82907DF1889";
+ "PROVISIONING_PROFILE[sdk=iphoneos*]" = "3CC55FB0-969F-4E90-8361-E82907DF1889";
SDKROOT = iphoneos2.1;
};
name = Debug;
View
@@ -37,14 +37,6 @@
navigator.ContactManager.get(suc, fail);
}
- var startAccel = function() {
- var suc = function(p){
- alert("Accelerator is Started!\n You can now watch it");
- };
- var fail = function(){};
- navigator.accelerometer.getCurrentAcceleration(suc,fail);
- }
-
var watchAccel = function() {
var suc = function(a){
document.getElementById('x').innerHTML = roundNumber(a.x);
@@ -87,11 +79,11 @@
<dt>Y:</dt><dd id="y">&nbsp;</dd>
<dt>Z:</dt><dd id="z">&nbsp;</dd>
</dl>
- <a href="#" class="btn" onclick="startAccel();">Start Accelerometer</a>
- <a href="#" class="btn" onclick="watchAccel();">Watch Accelerometer</a>
+ <a href="#" class="btn large" onclick="watchAccel();">Watch Accelerometer</a>
<a href="#" class="btn large" onclick="getLocation();">Get Location</a>
- <a href="#" class="btn large" onclick="beep();">Beep</a>
- <a href="#" class="btn large" onclick="vibrate();">Vibrate</a>
- <a href="#" class="btn large" onclick="getContact();">Get Third Contact</a>
+ <a href="tel://411" class="btn large">Call 411</a>
+ <a href="#" class="btn" onclick="beep();">Beep</a>
+ <a href="#" class="btn" onclick="vibrate();">Vibrate</a>
+ <a href="#" class="btn large" onclick="getContact();">Get Fourth Contact</a>
</body>
</html>

0 comments on commit 7eac12b

Please sign in to comment.