Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7eac12b

Browse files
committed
updated sample index.html file
1 parent 07d2a8a commit 7eac12b

3 files changed

Lines changed: 12 additions & 20 deletions

File tree

iphone/Classes/PhoneGapDelegate.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ @implementation PhoneGapDelegate
1010
@synthesize imagePickerController;
1111

1212
void alert(NSString *message) {
13-
UIAlertView *openURLAlert = [[UIAlertView alloc] initWithTitle:@"Alert" message:message delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
14-
[openURLAlert show];
15-
[openURLAlert release];
13+
// UIAlertView *openURLAlert = [[UIAlertView alloc] initWithTitle:@"Alert" message:message delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
14+
// [openURLAlert show];
15+
// [openURLAlert release];
1616
}
1717

1818
/*

iphone/PhoneGap.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,15 +334,15 @@
334334
isa = XCBuildConfiguration;
335335
buildSettings = {
336336
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
337-
CODE_SIGN_IDENTITY = "iPhone Developer: Brant Vasilieff";
338-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Brant Vasilieff";
337+
CODE_SIGN_IDENTITY = "iPhone Developer: Brock Whitten";
338+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Brock Whitten";
339339
GCC_C_LANGUAGE_STANDARD = c99;
340340
GCC_WARN_ABOUT_RETURN_TYPE = YES;
341341
GCC_WARN_UNUSED_VARIABLE = YES;
342342
ONLY_ACTIVE_ARCH = YES;
343343
PREBINDING = NO;
344-
PROVISIONING_PROFILE = "880150E2-809D-4BBE-B91E-244F2A6F59A0";
345-
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "880150E2-809D-4BBE-B91E-244F2A6F59A0";
344+
PROVISIONING_PROFILE = "3CC55FB0-969F-4E90-8361-E82907DF1889";
345+
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "3CC55FB0-969F-4E90-8361-E82907DF1889";
346346
SDKROOT = iphoneos2.1;
347347
};
348348
name = Debug;

iphone/www/index.html

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@
3737
navigator.ContactManager.get(suc, fail);
3838
}
3939

40-
var startAccel = function() {
41-
var suc = function(p){
42-
alert("Accelerator is Started!\n You can now watch it");
43-
};
44-
var fail = function(){};
45-
navigator.accelerometer.getCurrentAcceleration(suc,fail);
46-
}
47-
4840
var watchAccel = function() {
4941
var suc = function(a){
5042
document.getElementById('x').innerHTML = roundNumber(a.x);
@@ -87,11 +79,11 @@ <h4>UUID: <span id="uuid">&nbsp;</span></h4>
8779
<dt>Y:</dt><dd id="y">&nbsp;</dd>
8880
<dt>Z:</dt><dd id="z">&nbsp;</dd>
8981
</dl>
90-
<a href="#" class="btn" onclick="startAccel();">Start Accelerometer</a>
91-
<a href="#" class="btn" onclick="watchAccel();">Watch Accelerometer</a>
82+
<a href="#" class="btn large" onclick="watchAccel();">Watch Accelerometer</a>
9283
<a href="#" class="btn large" onclick="getLocation();">Get Location</a>
93-
<a href="#" class="btn large" onclick="beep();">Beep</a>
94-
<a href="#" class="btn large" onclick="vibrate();">Vibrate</a>
95-
<a href="#" class="btn large" onclick="getContact();">Get Third Contact</a>
84+
<a href="tel://411" class="btn large">Call 411</a>
85+
<a href="#" class="btn" onclick="beep();">Beep</a>
86+
<a href="#" class="btn" onclick="vibrate();">Vibrate</a>
87+
<a href="#" class="btn large" onclick="getContact();">Get Fourth Contact</a>
9688
</body>
9789
</html>

0 commit comments

Comments
 (0)