summaryrefslogtreecommitdiff
path: root/Volta/Views
diff options
context:
space:
mode:
authorRonny Fenrich <Fenrich@Gmail.com>2013-06-19 08:48:36 -0600
committerRonny Fenrich <Fenrich@Gmail.com>2013-06-19 08:48:36 -0600
commitbd0e503c84a411a2934d39cef5d16862ddc4a690 (patch)
treebcbbafd9faddf5de16f2a71a69515db1b2f03308 /Volta/Views
parentc0cc85d9ce2b372b536f2f008a4a838a2e3480e7 (diff)
some tweaks for InfographicHEADmaster
Diffstat (limited to 'Volta/Views')
-rw-r--r--Volta/Views/InfographicViewController.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Volta/Views/InfographicViewController.m b/Volta/Views/InfographicViewController.m
index a247597..0eabb92 100644
--- a/Volta/Views/InfographicViewController.m
+++ b/Volta/Views/InfographicViewController.m
@@ -34,6 +34,7 @@
[self.webView loadHTMLString:markup baseURL:[NSURL URLWithString:[NSString stringWithFormat:@"file:/%@//", resourcePath]]];
});
+ self.webView.alpha = 0.0;
}
@@ -74,6 +75,7 @@
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
[self.webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"updateData(%.2f, %.2f)", totalkWh, totalCost]];
+ [self.webView fadeIn];
});
}