Skip to content

Commit

Permalink
Add checkpoints to demo, fix checkpoint styling in viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
robbywalker committed Jan 16, 2013
1 parent c03ec0a commit 300f990
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion HookshotDemo/HookshotDemo/ViewController.h
Expand Up @@ -11,7 +11,7 @@
/** /**
* View controller for the demo. * View controller for the demo.
*/ */
@interface ViewController : UIViewController { @interface ViewController : UIViewController <UIWebViewDelegate> {
UIWebView *_webView; UIWebView *_webView;
} }


Expand Down
12 changes: 12 additions & 0 deletions HookshotDemo/HookshotDemo/ViewController.m
Expand Up @@ -7,6 +7,7 @@
// //


#import "ViewController.h" #import "ViewController.h"
#import "hookshot.h"


@implementation ViewController @implementation ViewController


Expand All @@ -15,6 +16,7 @@ @implementation ViewController
- (void)viewDidLoad; - (void)viewDidLoad;
{ {
[super viewDidLoad]; [super viewDidLoad];
_webView.delegate = self;
[_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.cueup.com"]]]; [_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.cueup.com"]]];
} }


Expand All @@ -24,4 +26,14 @@ - (void)dealloc;
[_webView release]; [_webView release];
} }


- (void)webViewDidStartLoad:(UIWebView *)webView;
{
CHECKPOINT(@"didStartLoad");
}

- (void)webViewDidFinishLoad:(UIWebView *)webView;
{
CHECKPOINT(@"didFinishLoad");
}

@end @end
23 changes: 19 additions & 4 deletions bin/static/style.css
Expand Up @@ -35,13 +35,23 @@ body {
} }


.checkpoint { .checkpoint {
position: absolute;
top: 0;
margin-left: 300px;
padding-left: 5px; padding-left: 5px;
border-left: 1px solid red; border-left: 1px solid red;
z-index: -1; z-index: 1;
color: red;
height: 100%;
padding-top: 32px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
} }


.checkpoint div { .checkpoint div {
font-size: 13px; font-size: 13px;
background: white;
} }


.event.tag0 { .event.tag0 {
Expand Down Expand Up @@ -86,14 +96,18 @@ body {
width: 100%; width: 100%;
background: #ccc; background: #ccc;
border-bottom: 1px solid #333; border-bottom: 1px solid #333;
z-index: 1; z-index: 3;
text-align: center; text-align: center;
} }


#root { #root {
overflow: visible; overflow: visible;
padding-top: 30px; padding-top: 45px;
width: 100%; width: 100%;
min-height: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
} }


#controls { #controls {
Expand All @@ -102,7 +116,8 @@ body {
height: 100%; height: 100%;
background: white; background: white;
border-right: 1px solid black; border-right: 1px solid black;
padding-top: 30px; padding-top: 45px;
z-index: 2;
} }


div { div {
Expand Down

0 comments on commit 300f990

Please sign in to comment.