Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
Uploaded by
Jingchao Di
1,388 views
HTML5 实战 WebApp 阅读应用– Shiu
AI-enhanced description
该文档讨论了HTML5的实战应用,重点是构建WebApp的技术细节和优势。它介绍了离线存储解决方案、触摸事件的实现,以及使用的开发工具和库。此外,还提供了开发者的联系信息和一些实际应用示例。
Technology
◦
Design
◦
Read more
5
Save
Share
Embed
Embed presentation
Download
Downloaded 23 times
1
/ 31
2
/ 31
3
/ 31
4
/ 31
5
/ 31
6
/ 31
7
/ 31
8
/ 31
9
/ 31
10
/ 31
11
/ 31
12
/ 31
13
/ 31
14
/ 31
15
/ 31
16
/ 31
17
/ 31
18
/ 31
19
/ 31
20
/ 31
21
/ 31
22
/ 31
23
/ 31
24
/ 31
25
/ 31
26
/ 31
27
/ 31
28
/ 31
29
/ 31
30
/ 31
31
/ 31
More Related Content
PPTX
電子內容管理 使用Git 與 github 1
by
Alan Tsai
PDF
你畢業後要任職的軟體業到底都在做些什麼事
by
Mu Chun Wang
PDF
如何與 Git 優雅地在樹上唱歌
by
Mu Chun Wang
PDF
Non-MVC Web Framework
by
Fred Chien
PDF
向jquery学习
by
jay li
PDF
Grunt
by
lylijincheng
PDF
SITCON 2016 ─ Modern Front-End Workflow with Webpack
by
昱安 周
PPT
Grails敏捷项目开发
by
Michael Yan
電子內容管理 使用Git 與 github 1
by
Alan Tsai
你畢業後要任職的軟體業到底都在做些什麼事
by
Mu Chun Wang
如何與 Git 優雅地在樹上唱歌
by
Mu Chun Wang
Non-MVC Web Framework
by
Fred Chien
向jquery学习
by
jay li
Grunt
by
lylijincheng
SITCON 2016 ─ Modern Front-End Workflow with Webpack
by
昱安 周
Grails敏捷项目开发
by
Michael Yan
Viewers also liked
PDF
Getting Started With SlideShare
by
Slideshare
PDF
FDA on Prefilled Syringes and Combination Products (Lana Shiu,MD)
by
Sun Kim
PPTX
What to Upload to SlideShare
by
Slideshare
PPTX
ndotja e mjedisit
by
kamila zerellari
PPT
Ndotja e Mjedisit
by
Anida Ago
PPTX
Ndotja e ajrit
by
Diana Lamaj
PPTX
Projekt kurrikular kimi punoi klajdi haka
by
Edlira Ira Krasniqi
PPTX
PROJEKT-Ndotja e Mjedisit
by
xhulia osmanllari
PPTX
Projekt kimi (1)
by
ermela01
DOCX
Projekt kimi
by
Ueda Rrukaj
DOCX
Ndotja e mjedisit dhe ndikimi i saj në biodiversitet
by
Darla Evangjeli
DOCX
Mjedisi
by
Megi Collaku
PDF
Scratch barcamp shanghai_2014
by
PK Shiu
Getting Started With SlideShare
by
Slideshare
FDA on Prefilled Syringes and Combination Products (Lana Shiu,MD)
by
Sun Kim
What to Upload to SlideShare
by
Slideshare
ndotja e mjedisit
by
kamila zerellari
Ndotja e Mjedisit
by
Anida Ago
Ndotja e ajrit
by
Diana Lamaj
Projekt kurrikular kimi punoi klajdi haka
by
Edlira Ira Krasniqi
PROJEKT-Ndotja e Mjedisit
by
xhulia osmanllari
Projekt kimi (1)
by
ermela01
Projekt kimi
by
Ueda Rrukaj
Ndotja e mjedisit dhe ndikimi i saj në biodiversitet
by
Darla Evangjeli
Mjedisi
by
Megi Collaku
Scratch barcamp shanghai_2014
by
PK Shiu
Similar to HTML5 实战 WebApp 阅读应用– Shiu
PPTX
Html5移动网站开发实践
by
Web Zhao
PPT
陈子舜-Html5 based web app
by
Webrebuild
PPT
移动互联网时代的Mobile app设计和开发
by
fangdeng
PPT
移动互联网时代的Mobile app设计和开发
by
完颜 小卓
PDF
陈桂鸿 Ak--手机qq hybrid-app优化新思路
by
yingganfei
PPTX
Android 4-app
by
lydiafly
PDF
HTML5 生态系统和应用架构模型
by
Tom Fan
PPTX
淘宝彩票移动项目开发实践
by
alvis-m
PDF
浏览器渲染与web前端开发
by
Duoyi Wu
KEY
D2_Node在淘宝的应用实践
by
Jackson Tian
PPTX
Appcan平台介绍
by
36Kr.com
PPTX
赶集团购开发总结4
by
yangdj
PDF
Html5研究小组《微周刊》第28期
by
chloeguo
PPTX
海豚浏览器CTO刘铁锋:Web App发展现状
by
yangdj
PPT
HTML5概览
by
Adam Lu
PPT
Html5和css3入门
by
Xiujun Ma
PPTX
GMIC 2012 - Baidu, Presentation by Mr Wang Jin, 百度副总裁王劲
by
Great Wall Club
PDF
Html5移动web开发指南
by
Alex Wong
PPTX
Html5培训内容
by
Jun Yu
PPTX
磊友科技CTO 赵霏演讲
by
yangdj
Html5移动网站开发实践
by
Web Zhao
陈子舜-Html5 based web app
by
Webrebuild
移动互联网时代的Mobile app设计和开发
by
fangdeng
移动互联网时代的Mobile app设计和开发
by
完颜 小卓
陈桂鸿 Ak--手机qq hybrid-app优化新思路
by
yingganfei
Android 4-app
by
lydiafly
HTML5 生态系统和应用架构模型
by
Tom Fan
淘宝彩票移动项目开发实践
by
alvis-m
浏览器渲染与web前端开发
by
Duoyi Wu
D2_Node在淘宝的应用实践
by
Jackson Tian
Appcan平台介绍
by
36Kr.com
赶集团购开发总结4
by
yangdj
Html5研究小组《微周刊》第28期
by
chloeguo
海豚浏览器CTO刘铁锋:Web App发展现状
by
yangdj
HTML5概览
by
Adam Lu
Html5和css3入门
by
Xiujun Ma
GMIC 2012 - Baidu, Presentation by Mr Wang Jin, 百度副总裁王劲
by
Great Wall Club
Html5移动web开发指南
by
Alex Wong
Html5培训内容
by
Jun Yu
磊友科技CTO 赵霏演讲
by
yangdj
More from Jingchao Di
PDF
Mitmproxy usage v20141216
by
Jingchao Di
PDF
沪江去 Windows 实践 - 从 SQL Server 到 MySQL
by
Jingchao Di
PDF
2018 01 metrics-monitoring-system-v2
by
Jingchao Di
PDF
2017 05 monitoring-introducing
by
Jingchao Di
PDF
Window management v16.03.23
by
Jingchao Di
PDF
打造可维护的应用 20160704
by
Jingchao Di
PDF
Brief principle and principle of coding
by
Jingchao Di
Mitmproxy usage v20141216
by
Jingchao Di
沪江去 Windows 实践 - 从 SQL Server 到 MySQL
by
Jingchao Di
2018 01 metrics-monitoring-system-v2
by
Jingchao Di
2017 05 monitoring-introducing
by
Jingchao Di
Window management v16.03.23
by
Jingchao Di
打造可维护的应用 20160704
by
Jingchao Di
Brief principle and principle of coding
by
Jingchao Di
HTML5 实战 WebApp 阅读应用– Shiu
1.
HTML5 实战
WebApp 阅读应用– Shiu @alswl
2.
关于我 ●
狄敬超 @alswl ● Python 程序猿 ● 前端爱好者 ● Linux 用户,热爱开源 ● 独立博客: http://log4d.com ● Twitter/Weibo: @alswl ● email : alswlx(a)gmail(dot)com 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
3.
Shiu 初体验 ●
使用手机浏览器访问 http://shiu.log4d.com – 必须使用 Webkit 核心的浏览器(手机原生浏览器) – iOS 体验效果最佳 – 非 iOS 可能会出现一些 bug ● 代码开源托管在 Github: – https://github.com/alswl/shiu 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
4.
18:53:15
HTML5 实战 – WebApp 阅读应用 Shiu
5.
18:53:15
HTML5 实战 – WebApp 阅读应用 Shiu
6.
起源 @bang 伊书 http://yishu.cnbang.net/
18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
7.
WebApp ? NativeApp
? 优势 劣势 ● 开发成本低 ● 浏览器性能 /GPU ● 容易「转出」 ● 无法调用硬件设备 ● 跨平台 / 跨终端 ● 标准之战 ● 无须安装 / 容易获取 ● 无法消息推送 ● 部署方便 / 易于升级 ● 盈利模式 ● 盈利分成 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
8.
从文件结构开始 ▸ image/ #
图片 app.js ▸ js/ # JS appui.js ▸ qingyunian1/ # 庆余年 1 book.js ▸ santi1/ # 三体 1 ▸ style/ # 样式 chapter.js ▸ test/ # 单元测试 common.js build.sh* # 部署脚本 iscroll.js favicon.ico phantom-limb.js index.html # 项目主页 Github Pages scale.fix.js manager.py* # 管理脚本 shiu.js params.json zepto.js README.md # Github Readme 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
9.
经典 MVC
18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
10.
Server 端 Web
开发中的 MVC 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
11.
MCRV 开发模式
18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
12.
系统结构
index.html Sidebar Chapter Buttons AppUi App Book Content iScroll zepto Common 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
13.
离线存储 -WebApp 的基石 ●
Manifest – 缓存静态文件 – MIME:text/cache-manifest – 调试方法 – 按 url 区分存储 ● Web SQL Database – SQLite – 倔强的 Firefox – 容量 ● LocalStorage/SessionStorage ● indexDb 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
14.
各浏览器对离线存储支持 18:53:15
HTML5 实战 – WebApp 阅读应用 Shiu
15.
Manifest CACHE MANIFEST
../js/app.min.js # Cache Manifest Version: ../js/shiu.min.js 20120418 ../style/style.min.css ../image/cover.png CACHE: ../image/side_bg.png ../js/zepto.min.js logo.jpg ../js/iscroll.min.js cover.jpg ../js/common.min.js ../js/chapter.min.js NETWORK: ../js/book.min.js ../js/appui.min.js * 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
16.
LocalStorage appCache = window.applicationCache; appCache.onprogress
= function (e) {…}; onCached = function(e) {}; appCache.oncached = onCached; appCache.onnoupdate = onCached; appCache.onupdateready = onCached; 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
17.
那些年我们一起追的 meta ●
viewport – width=device-width – initial-scale=1.0 – maximum-scale=1.0 – user-scalable=no ● format-detection – telephone=no – email=no(Android) 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
18.
●
apple-mobile-web- app-capable – window.navigator.sta ndalone ● apple-mobile-web- app-status-bar-style – default – black – black-translucent 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
19.
●
apple-touch- icon-precomposed 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
20.
●
apple-touch- startup-image 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
21.
CSS3 中的神灵 ●
-webkit-column-width ● -webkit-column-gap ● -webkit-transform ● -webkit-tap-highlight-color ● -webkit-overflow-scrolling 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
22.
排版分页
Shiu 的排版实现 伊书的排版实现 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
23.
靠「 end 」解决页码问题 18:53:15
HTML5 实战 – WebApp 阅读应用 Shiu
24.
划动 (Flip) ●
三种在规范中列出并跨移动设备广泛实现的基本触摸事件: – touchstart :手指放在一个 DOM 元素上。 – touchmove :手指拖动一个 DOM 元素。 – touchend :手指从一个 DOM 元素上移开。 ● 每个触摸事件都包括了三个触摸列表: – touches :当前位于屏幕上的所有手指动作的列表。 – targetTouches :位于当前 DOM 元素上的手指动作的列表。 – changedTouches :涉及当前事件的手指动作的列表。例如,在一个 touchend 事件中,这将是移开手指。 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
25.
self.$.bind('touchstart', function (e) {
self.startX = e.touches[0].pageX; self.startLeft = self. $chapter.offset().left; }); 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
26.
滑动 (Slide) ●
iScroll ● -webkit-overflow-scrolling ● 传统 css 实现(卡) – $.animate({'left': left}, 200) ● left / transition – -webkit-transition: left 201ms; ● transition / transform ( WebGL 实现) – -webkit-transition: all 300ms ease-out; – this.$chapter.css('-webkit-transform', 'translate3d(200px, 0, 0)'); 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
27.
小手段 ●
自动更新 ● 横屏 ● 异步加载 JS(loadBookJs) 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
28.
趁手的家伙们 ●
Zepto ● QUnit – jQuery 完全兼容,并且 – 单元测试 更小 ● JSlint – 更精简,加载更快 – 只支持「现代浏览器」 – 代码质量 – 适合开发移动应用 ● phamtom-limb ● manager.py – 调试模拟触屏 – 运行静态服务器 ● YUI compressor – 转换文本到书籍 js – build.sh 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
29.
广告 ●
ArchLinux ● NJLUG ● Vim (Nanjing Linux User Group) ● Git / Github ● NJGDG ● Python (Nanjing Google Developer Group) 18:53:15 HTML5 实战 – WebApp 阅读应用 Shiu
30.
Q & A 18:53:15
HTML5 实战 – WebApp 阅读应用 Shiu
31.
感谢您的耐心!
@alswl
Download