This file contains hidden or 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
spinner = new Layer | |
width: 100 | |
height: 100 | |
x: 100 | |
y: 100 | |
backgroundColor: "transparent" | |
spinner.html = "<svg><path fill='#27AE60' d='M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50'></path></svg>" | |
spinner.animate | |
properties: {rotation: 360*10} |
This file contains hidden or 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
-(void)getRequest | |
{ | |
NSURL *url = [NSURL URLWithString:@"https://www.goodreads.com/search.xml?key=O719PsMfvl9e19FFt8LmEg&q=common+sense+mutual+funds"]; | |
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; | |
[request setHTTPMethod:@"GET"]; | |
[request setValue:@"application/xml" forHTTPHeaderField:@"accept"]; | |
[request setValue:@"application/xml" forHTTPHeaderField:@"Content-Type"]; | |
(void)[NSURLConnection connectionWithRequest:request delegate:self]; | |
} |
This file contains hidden or 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
view.on("touchstart", function(e) { | |
var touch = event.touches[0] | |
//Grab the initial touch coordinates | |
xInit = touch.pageX | |
yInit = touch.pageY | |
}) | |
view.on("touchmove", function(e) { | |
var touch = event.touches[0] | |
xCurrent = touch.pageX |