Upgrade to Pro — share decks privately, control downloads, hide ads and more …

City Mouse Mobile - A Case Study

Serge Krul
October 25, 2011

City Mouse Mobile - A Case Study

נתמקד באתגרים הספציפיים שעבדנו מולם בפיתוח אפליקציית האייפון שכולה בדפדפן, שכוללת ארכיטקטורת טעינה חכמה, אינטגרציה עם מפות ושימוש ביכולות נייטיב. נדון באפשרויות העומדות בפנינו כיום בבואנו לפתח אפליקציה דומה.

Serge Krul

October 25, 2011
Tweet

More Decks by Serge Krul

Other Decks in Technology

Transcript

  1. Me • Serge Krul • FED Team Leader at netcraft

    • Loves Plants • Hates Zombies
  2. // TODO 1. City Mouse Mobile 2. Why Mobile Web?

    3. Mobile Web Gaps 4. How Mouse Mobile minds them 5. How would you mind it today?
  3. Still, a website Splash Screen Look & Feel Native Share

    Look & Feel Native Call Action Keypad Location Aware Smart Loading
  4. The cool factor • Push web technologies to the edge

    • Evangelize FED • Internet will be everywhere / everything
  5. Mobile Web Gaps • Look & feel • Fixed scrolling

    • Vanilla features • Map • Last gap
  6. Uses iScroll $.fn.scrollVertically = function (options) { return this.each(function ()

    { new iScroll(this, options); }); }; $.fn.scrollHorizontally = function (options) { return this.each(function () { new iScrollHorizontal(this, options); }); }; $.jQTouch.addExtension(function (jQT) { $(document.body).bind('pageInserted', function () { horizontal.scrollHorizontally(...); vertical.scrollVertically(...); }); }); jqt.scrolling.js
  7. It's Waze var g_waze_config = { div_id: "map", locale: "israel",

    zoom: 8, token: "666", framed_cloud_image_url: "cloud", alt_base_layer: "israel_colors", alt_map_servers: "ymap1/wms-c" };
  8. It's a maze... MapManager.simulateEvent = function (event, type, doNotPreventDefault) {

    var event = event.originalEvent, touches = event.changedTouches, first = touches[0]; var simulatedEvent = document.createEvent("MouseEvent"); simulatedEvent.initMouseEvent( first.screenX, first.screenY, first.clientX, first.clientY ); first.target.dispatchEvent(simulatedEvent); if (doNotPreventDefault != true) { event.preventDefault(); } };
  9. Thank you! • Me again: Serge Krul • [email protected]

    FED Team leader, netcrfat • Mobile Web course • HTML5 course • Netcraft Academy - Ben Gurion 30, Ramat Gan.