bar camp iphone web hackery
DESCRIPTION
TRANSCRIPT
![Page 1: Bar Camp Iphone Web Hackery](https://reader036.vdocument.in/reader036/viewer/2022081908/553863ae4a79598e758b4792/html5/thumbnails/1.jpg)
iPhone Web-App Hackery
Presented by Andy Edmonds@ BarCampAtl08
![Page 2: Bar Camp Iphone Web Hackery](https://reader036.vdocument.in/reader036/viewer/2022081908/553863ae4a79598e758b4792/html5/thumbnails/2.jpg)
Demo: iBlipper.com
![Page 3: Bar Camp Iphone Web Hackery](https://reader036.vdocument.in/reader036/viewer/2022081908/553863ae4a79598e758b4792/html5/thumbnails/3.jpg)
Building Blocks
• Orientation Trick• Canvas• Animation options– jQuery– CSS Transforms– Dojo (charts too)
• Working with multitouch– Downlevel mouse experi
ence – jQuery plugin
• Standard UI Starters– UiUI Kit– IUI slide panel
• Community– iphoneWebDev
![Page 4: Bar Camp Iphone Web Hackery](https://reader036.vdocument.in/reader036/viewer/2022081908/553863ae4a79598e758b4792/html5/thumbnails/4.jpg)
Screen Control
• Annoying URL Bar?– Just scroll
• Viewport Tag– Min,max zoom– Initial zoom– Canvas size
• iPhone OS 2.1 introduces ability to go full screen from a home screen bookmark
• Ajaxian• Apple
![Page 5: Bar Camp Iphone Web Hackery](https://reader036.vdocument.in/reader036/viewer/2022081908/553863ae4a79598e758b4792/html5/thumbnails/5.jpg)
Fun Opportunity for Zooming UIs
• New Reader– Zoom to details
• See http://delicious.com/andyed/zui
• Orhttp://en.wikipedia.org/wiki/Zooming_user_interface
![Page 6: Bar Camp Iphone Web Hackery](https://reader036.vdocument.in/reader036/viewer/2022081908/553863ae4a79598e758b4792/html5/thumbnails/6.jpg)
iBlipper CSS Transforms
Use percent markers for timein your CSS.
![Page 7: Bar Camp Iphone Web Hackery](https://reader036.vdocument.in/reader036/viewer/2022081908/553863ae4a79598e758b4792/html5/thumbnails/7.jpg)
Applying CSS Transforms with JS
node.style.webkitAnimationName = 'fade,slide';
node.style.webkitAnimationDuration= “1000,1000”;
![Page 8: Bar Camp Iphone Web Hackery](https://reader036.vdocument.in/reader036/viewer/2022081908/553863ae4a79598e758b4792/html5/thumbnails/8.jpg)
Orientation Trick
var currentWidth;
var currentHeight;var updateLayout = function(){
if (window.innerWidth != currentWidth) {currentWidth = window.innerWidth;
currentHeight = window.innerHeight; var orient = (currentWidth == 320) ? "profile" : "landscape"; document.body.setAttribute("orient", orient);
window.scrollTo(0, 1);
}};
Ugly but functional hack to set up an interval to inspect the window width
![Page 9: Bar Camp Iphone Web Hackery](https://reader036.vdocument.in/reader036/viewer/2022081908/553863ae4a79598e758b4792/html5/thumbnails/9.jpg)
Development and Debugging
• Apple iPhone Simulator• Linked debug console on desktop
![Page 10: Bar Camp Iphone Web Hackery](https://reader036.vdocument.in/reader036/viewer/2022081908/553863ae4a79598e758b4792/html5/thumbnails/10.jpg)
Happy Hacking!
AndyEdhttp://surfmind.com