├── .DS_Store ├── demo ├── 404.html ├── apple-touch-icon.png ├── build │ ├── build.xml │ ├── config │ │ ├── default.properties │ │ ├── manifest.appcache │ │ └── project.properties │ ├── createproject.sh │ ├── runbuildscript.bat │ └── tools │ │ ├── ant-contrib-1.0b3.jar │ │ ├── csslint-rhino.js │ │ ├── fulljshint.js │ │ ├── fulljslint.js │ │ ├── htmlcompressor-1.4.3.jar │ │ ├── jpegtran.exe │ │ ├── optipng-0.6.4-exe │ │ ├── LICENSE.txt │ │ └── optipng.exe │ │ ├── rhino.jar │ │ └── yuicompressor-2.4.5.jar ├── cache.html ├── css │ └── style.css ├── fallback.html ├── favicon.ico ├── humans.txt ├── img │ ├── 404.png │ ├── fallback.png │ ├── grid.png │ ├── h │ │ └── apple-touch-icon.png │ ├── l │ │ └── apple-touch-icon.png │ ├── m │ │ └── apple-touch-icon.png │ ├── network.png │ ├── tbrun1.png │ ├── tbrun5.png │ └── tbservers.png ├── index.html ├── manifest.appcache └── network.html ├── index.html └── peterlubbers-owc4 ├── .DS_Store ├── README.md ├── images ├── .DS_Store ├── HTML5_Badge.svg ├── HTML5_Badge_128.png ├── HTML5_Badge_64.png ├── angrybirds.png ├── apress-book.png ├── audio-routing-analysis.png ├── audio-routing-crossfade.png ├── audio-routing.png ├── barchart.png ├── browser_logos │ ├── .DS_Store │ ├── ff_logo.png │ ├── ie10_logo.png │ ├── opera_logo.png │ └── safari_logo.png ├── browsers.png ├── chart.png ├── chrome-logo-tiny.png ├── chrome_logo.png ├── demo.PNG ├── ft.PNG ├── gmail.png ├── google_developers_icon_128.png ├── google_developers_logo.png ├── google_developers_logo_white.png ├── gprofile_button-44.png ├── html5-badge.png ├── html_can_not_do_that.jpg ├── icons │ ├── bug.png │ ├── bug_closed.png │ ├── gears.svg │ └── radar.svg ├── io2012_logo.png ├── my_book_cover.jpg ├── offline.png ├── owc4.png ├── peterlubbers.jpg ├── pics-appcache │ ├── .DS_Store │ ├── Screen Shot 2012-07-12 at 3.24.50 PM.png │ ├── chrome-site.PNG │ ├── photo (1).PNG │ └── photo.PNG ├── sfhtml5.png ├── slides │ ├── .DS_Store │ ├── binding.jpg │ ├── blueprint.jpg │ ├── fast.jpg │ ├── flexbox-holygrail.svg │ ├── flexbox-tools.svg │ ├── rocket.jpg │ ├── stream.jpg │ ├── tools.jpg │ └── tools2.jpg ├── tool.png ├── transferables.jpg └── twitter_newbird_blue.png ├── index.html ├── js ├── angular-1.0.0.min.js ├── app.js ├── hammer.js ├── modernizr.custom.45394.js ├── order.js ├── polyfills │ ├── classList.min.js │ ├── dataset.min.js │ └── history.min.js ├── prettify │ ├── lang-apollo.js │ ├── lang-clj.js │ ├── lang-css.js │ ├── lang-go.js │ ├── lang-hs.js │ ├── lang-lisp.js │ ├── lang-lua.js │ ├── lang-ml.js │ ├── lang-n.js │ ├── lang-proto.js │ ├── lang-scala.js │ ├── lang-sql.js │ ├── lang-tex.js │ ├── lang-vb.js │ ├── lang-vhdl.js │ ├── lang-wiki.js │ ├── lang-xq.js │ ├── lang-yaml.js │ ├── prettify.css │ └── prettify.js ├── require-1.0.8.min.js ├── slide-controller.js ├── slide-deck.js └── slides.js ├── slide_config.js └── theme ├── css ├── .DS_Store ├── animate.css ├── custom.css ├── default.css └── phone.css └── scss ├── _base.scss ├── _variables.scss ├── custom.scss ├── default.scss └── phone.scss /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/.DS_Store -------------------------------------------------------------------------------- /demo/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 404 Page 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 |

ApplicationCache Demo

29 | 36 |
37 | 38 |

AppCache Rocks!

39 | 40 |
41 |
42 | Green Tumbeast with a sign that reads OMG 404 Not Found 44 |
This is the 404 page
45 |
46 |
47 |

ApplicationCache Under the Hood

48 |
49 |
50 |
51 |
52 |
53 |
54 | 55 | 61 | 62 | 146 | 147 | -------------------------------------------------------------------------------- /demo/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/apple-touch-icon.png -------------------------------------------------------------------------------- /demo/build/config/default.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Default Build Settings 3 | # you can override these settings on a project basis in a project.properties file 4 | # so probably best not to touch these as they could be overwritten in later versions! 5 | # 6 | 7 | 8 | # 9 | # Directory Paths 10 | # 11 | dir.source = . 12 | dir.intermediate = intermediate 13 | dir.publish = publish 14 | dir.build = build 15 | dir.build.tools = ${dir.build}/tools 16 | dir.test = test 17 | dir.demo = demo 18 | dir.js = js 19 | dir.js.main = ${dir.js} 20 | # scripts in the lib directory will only be minified, not concatenated together 21 | dir.js.libs = ${dir.js}/libs 22 | dir.js.mylibs = ${dir.js}/mylibs 23 | dir.css = css 24 | dir.images = img 25 | 26 | 27 | # 28 | # HTML, PHP, etc files to clean and update script/css references 29 | # 30 | file.pages.default.include = index.html, 404.html 31 | 32 | # You will need to include the property file.pages.include in your project.properties file 33 | # and add any extra pages you want to be updated by the scripts in a comma separated list 34 | 35 | 36 | # the server configuration you're going with. If you don't use apache, 37 | # get a different one here: github.com/paulirish/html5-boilerplate-server-configs 38 | 39 | file.serverconfig = .htaccess 40 | 41 | # 42 | # Files not to be copied over by the script to the publish directory 43 | # 44 | file.default.exclude = .gitignore, .project, .settings, README.markdown, README.md, **/.git/**, **/.svn/**, ${dir.test}/**, ${dir.demo}/**, ${dir.intermediate}/**, ${dir.publish}/**, ${dir.build}/**, **/nbproject/**, *.komodoproject, **/.komodotools/**, **/dwsync.xml, **_notes, **/.hg/**, **/.idea/** 45 | # Declare the file.exclude property in your project.properties file if you want to exclude files / folders you have added 46 | # Note: you cannot declare an empty file.exclude property 47 | 48 | # 49 | # Bypass Optimization for these files 50 | # 51 | # file.default.js.bypass 52 | # If set, these files will not be optimized (minifications, concatinations, image optimizations will not be applied) 53 | # Note: you cannot declare an empty file.default.bypass property 54 | 55 | 56 | # 57 | # Root Stylesheet 58 | # this is the file that contains the @import directives 59 | # 60 | file.root.stylesheet = style.css 61 | 62 | # 63 | # Default Stylesheet 64 | # 65 | file.default.stylesheets = 66 | 67 | # 68 | # Script Optimisation 69 | # 70 | # If set, concat libraries with main scripts file, producing single script file 71 | build.concat.scripts = true 72 | 73 | 74 | # 75 | # Image Optimisation 76 | # 77 | images.strip.metadata = true 78 | # Seting this to true will strip the metadata from all jpeg files. 79 | # YOU SHOULD ONLY DO THIS IF YOU OWN THE COPYRIGHT TO ALL THE IMAGES IN THE BUILD 80 | 81 | # 82 | # Bypass Optimization for these image files or folders 83 | # 84 | # images.default.bypass 85 | # If set, these images will not be optimized 86 | # Note: you cannot declare an empty images.default.bypass property 87 | 88 | 89 | # Build Info 90 | build.version.info = buildinfo.properties 91 | build.scripts.dir = ${dir.build}/build-scripts 92 | 93 | # Tools 94 | tool.yuicompressor = yuicompressor-2.4.5.jar 95 | tool.htmlcompressor = htmlcompressor-1.4.3.jar 96 | tool.csscompressor = css-compressor/cli.php 97 | tool.rhino = rhino.jar 98 | tool.jslint = fulljslint.js 99 | tool.jshint = fulljshint.js 100 | tool.csslint = csslint-rhino.js 101 | 102 | # Default Lint Utils Options 103 | tool.jshint.opts = maxerr=25,eqeqeq=true 104 | tool.jslint.opts = maxerr=25,evil=true,browser=true,eqeqeq=true,immed=true,newcap=true,nomen=true,es5=true,rhino=true,undef=true,white=false,devel=true 105 | tool.csslint.opts = 106 | -------------------------------------------------------------------------------- /demo/build/config/manifest.appcache: -------------------------------------------------------------------------------- 1 | CACHE MANIFEST 2 | 3 | # version xxxxxxxxx 4 | 5 | CACHE: 6 | # html files 7 | 8 | 9 | # css files 10 | 11 | 12 | 13 | # js files 14 | 15 | 16 | 17 | FALLBACK: 18 | 19 | NETWORK: 20 | * -------------------------------------------------------------------------------- /demo/build/config/project.properties: -------------------------------------------------------------------------------- 1 | # project.properties file defines overrides for default.properties 2 | 3 | # Explanation: This file should be created by each user as and when he or she needs to override particular values. 4 | # Consequently, it should not be placed under version control. 5 | 6 | 7 | # Stylesheets 8 | # 9 | # Note: Stylesheets will be concatenated in the order they are listed in the file.stylesheets property (i.e. the last 10 | # file listed will be at the end of the concatenated file), so it probably makes sense to have the main style.css file 11 | # as the first entry 12 | # Example: 13 | # file.stylesheets = style.css, lightbox.css, plugin.css 14 | # 15 | file.stylesheets = 16 | 17 | 18 | # Web Pages 19 | # 20 | # These are the pages (files) that will be served to users (.html, .php, .asp, etc). Files in this property will 21 | # be minified / optimised and have any stylesheet or javascript references updated to the minified examples 22 | # 23 | # The paths need to be relative 24 | # 25 | # Files can be added in a comma separated form 26 | file.pages = 27 | 28 | 29 | # site manifest for offline 30 | # this is the name of the manifest file you declared in the tag 31 | # Uncomment this line to enable appcache generation: 32 | file.manifest = manifest.appcache 33 | 34 | # Excluded files and dirs 35 | # 36 | # Add any files or directories you add to the project and do not want to be copied to the publish directory as a 37 | # comma separated list 38 | # These files are ignored in addition to the default ones specified in default.properties. 39 | file.exclude = 40 | 41 | # Bypassed JavaScript files and dirs 42 | # 43 | # Add any files or folders within the mylibs directory that you want to be copied to the publish directory as a 44 | # comma separated list 45 | # These files will not be concatenated or minimized and will simply be copied over as is. 46 | # Note: you cannot declare an empty file.bypass property, it would exclude the entire mylibs folder 47 | # Example: 48 | # file.js.bypass = widgets.js, gadgets.js, gidgets.js 49 | # file.js.bypass = 50 | 51 | 52 | # Specify an environment to build 53 | # 54 | # By Default, it builds a production environment 55 | # Set to dev if building a development environment 56 | # Set to test if building a test environment 57 | env = 58 | 59 | # 60 | # Bypass Optimization for these image files or folders 61 | # 62 | # images.bypass 63 | # If set, these images will not be optimized 64 | # Note: you cannot declare an empty images.bypass property, it would exclude the entire img folder from being optimized 65 | 66 | # Directory Structure 67 | # 68 | # Override any directory paths specific to this project 69 | # 70 | # dir.publish 71 | # dir.js 72 | # dir.js.libs 73 | # dir.js.mylibs 74 | # dir.css 75 | # dir.images 76 | 77 | # Google App Engine Directory Structure 78 | # 79 | # Prevent "static/" being included in concated file paths. 80 | # 81 | # gae.css_dir = /css 82 | # gae.js_dir = /js 83 | 84 | # Override default JSHint Options (see http://jshint.com/ for description of options) 85 | #tool.jshint.opts = 86 | 87 | # Override default JSLint Options (see http://www.jslint.com/lint.html for description of options) 88 | #tool.jslint.opts = 89 | 90 | # Override default CSSLint Options (see http://csslint.net/about.html#settings for description of options) 91 | #tool.csslint.opts = 92 | -------------------------------------------------------------------------------- /demo/build/createproject.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | #Generate a new project from your HTML5 Boilerplate repo clone 4 | #by: Rick Waldron & Michael Cetrulo 5 | 6 | 7 | ##first run 8 | # $ cd html5-boilerplate/build 9 | # $ chmod +x createproject.sh && ./createproject.sh 10 | 11 | ##usage 12 | # $ cd html5-boilerplate/build 13 | # $ ./createproject.sh 14 | 15 | # find project root (also ensure script is ran from within repo) 16 | src=$(git rev-parse --show-toplevel) || { 17 | echo "try running the script from within html5-boilerplate directories." >&2 18 | exit 1 19 | } 20 | [[ -d $src ]] || { 21 | echo "fatal: could not determine html5-boilerplate's root directory." >&2 22 | echo "try updating git." >&2 23 | exit 1 24 | } 25 | 26 | # get a name for new project 27 | while [[ -z $name ]] 28 | do 29 | echo "To create a new html5-boilerplate project, enter a new directory name:" 30 | read name || exit 31 | done 32 | dst=$src/../$name 33 | 34 | if [[ -d $dst ]] 35 | then 36 | echo "$dst exists" 37 | else 38 | #create new project 39 | mkdir -- "$dst" || exit 1 40 | 41 | #sucess message 42 | echo "Created Directory: $dst" 43 | 44 | cd -- "$src" 45 | cp -vr -- css js img build test *.html *.xml *.txt *.png *.ico .htaccess "$dst" 46 | 47 | #sucess message 48 | echo "Created Project: $dst" 49 | fi 50 | 51 | -------------------------------------------------------------------------------- /demo/build/runbuildscript.bat: -------------------------------------------------------------------------------- 1 | # This is for windows users only. 2 | # If you're on a mac or linux, just run `ant build` from this folder in Terminal 3 | 4 | set MYDIR=%~dp0 5 | ant build -------------------------------------------------------------------------------- /demo/build/tools/ant-contrib-1.0b3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/build/tools/ant-contrib-1.0b3.jar -------------------------------------------------------------------------------- /demo/build/tools/htmlcompressor-1.4.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/build/tools/htmlcompressor-1.4.3.jar -------------------------------------------------------------------------------- /demo/build/tools/jpegtran.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/build/tools/jpegtran.exe -------------------------------------------------------------------------------- /demo/build/tools/optipng-0.6.4-exe/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | Copyright (C) 2001-2010 Cosmin Truta. 3 | 4 | This software is provided 'as-is', without any express or implied 5 | warranty. In no event will the author(s) be held liable for any damages 6 | arising from the use of this software. 7 | 8 | Permission is granted to anyone to use this software for any purpose, 9 | including commercial applications, and to alter it and redistribute it 10 | freely, subject to the following restrictions: 11 | 12 | 1. The origin of this software must not be misrepresented; you must not 13 | claim that you wrote the original software. If you use this software 14 | in a product, an acknowledgment in the product documentation would be 15 | appreciated but is not required. 16 | 17 | 2. Altered source versions must be plainly marked as such, and must not 18 | be misrepresented as being the original software. 19 | 20 | 3. This notice may not be removed or altered from any source distribution. 21 | 22 | -------------------------------------------------------------------------------- /demo/build/tools/optipng-0.6.4-exe/optipng.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/build/tools/optipng-0.6.4-exe/optipng.exe -------------------------------------------------------------------------------- /demo/build/tools/rhino.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/build/tools/rhino.jar -------------------------------------------------------------------------------- /demo/build/tools/yuicompressor-2.4.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/build/tools/yuicompressor-2.4.5.jar -------------------------------------------------------------------------------- /demo/cache.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Cache Page 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 36 | 37 | 38 | 39 | 40 | 41 |
42 |

ApplicationCache Demo

43 | 50 |
51 | 52 |

AppCache Rocks!

53 | 54 | 57 | 58 |
59 |
60 | Green Tumbeast with a sign that reads Network 62 |
This is the cache page. If you went offline before visiting this page, you should still see this page and its image.
63 |
64 |
65 |

ApplicationCache Under the Hood

66 |
67 |
68 |
69 |
70 |
71 |
72 | 73 | 81 | 82 | 166 | 167 | -------------------------------------------------------------------------------- /demo/css/style.css: -------------------------------------------------------------------------------- 1 | /* _________________________________________________ 2 | 3 | 320 and Up boilerplate extension 4 | Andy Clarke http://about.me/malarkey 5 | Keith Clark http://twitter.com/keithclarkcouk 6 | Version: 2 7 | URL: http://stuffandnonsense.co.uk/projects/320andup/ 8 | License: http://creativecommons.org/licenses/MIT/ 9 | _____________________________________________________ 10 | 11 | 1 ROOT 12 | 2 HEADINGS 13 | 3 TYPOGRAPHY 14 | 4 LINKS 15 | 5 FIGURES & IMAGES 16 | 6 TABLES 17 | 7 FORMS 18 | 8 BANNER 19 | 9 NAVIGATION 20 | 10 CONTENT 21 | 11 MAIN 22 | 12 COMPLEMENTARY 23 | 13 CONTENTINFO 24 | 14 GLOBAL OBJECTS 25 | 15 VENDOR-SPECIFIC 26 | 16 MODERNIZR 27 | 17 TEMPLATE SPECIFICS 28 | 18 MEDIA QUERIES 29 | 30 | COLOURS 31 | 32 | */ 33 | 34 | article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { 35 | display : block; } 36 | 37 | audio[controls], canvas, video { 38 | display : inline-block; 39 | *display : inline; 40 | *zoom : 1; } 41 | 42 | /* 1. ROOT ============================================================================= */ 43 | 44 | html { 45 | overflow-y : scroll; 46 | background : rgb(255,255,255); 47 | background : rgb(255,255,255) url(../img/grid.png) repeat-y 50% 0; } 48 | 49 | body { 50 | margin : 0 auto; 51 | padding : 0; 52 | width : 90% /* 252px */; 53 | font : 100%/1.4 Cambria, Georgia, Times, "Times New Roman"; 54 | color : rgb(40,40,40); 55 | background-color : transparent; 56 | text-align:center;} 57 | 58 | button, 59 | input, 60 | select, 61 | textarea { 62 | font-family : "Helvetica Neue", Helvetica, Arial, sans-serif; 63 | color : rgb(40,40,40); } 64 | 65 | /* 2. HEADINGS (320 and Up typography defaults) ==================================================== */ 66 | 67 | h1, 68 | h2, 69 | h3, 70 | h4, 71 | h5, 72 | h6 { 73 | font-family : "Helvetica Neue", Helvetica, Arial; 74 | font-weight : bold; } 75 | 76 | h1 { 77 | margin-bottom : .75em; 78 | font-size : 3em; /* 48 / 16 = 3 */ 79 | line-height : 1.2; } 80 | 81 | h2 { 82 | margin-bottom : .75em; 83 | font-size : 2em; /* 36 / 16 = 2 */ 84 | line-height : 1.2; } 85 | 86 | h3 { 87 | margin-bottom : 1em; 88 | font-size : 1.5em; /* 24 / 16 = 1.5 */ 89 | line-height : 1.3; } 90 | 91 | h4 { 92 | margin-bottom : 1.25em; 93 | font-size : 1.25em; /* 20 / 16 = 1.25 */ 94 | line-height : 1.25; } 95 | 96 | h5 { 97 | margin-bottom : 1.5em; 98 | font-size : 1em; /* 16 / 16 = 1 */ } 99 | 100 | h6 { 101 | font-size : 1em; /* 16 / 16 = 1 */ } 102 | 103 | /* 3. TYPOGRAPHY (320 and Up typography defaults) ============================================================================= */ 104 | 105 | p, 106 | ol, 107 | ul, 108 | dl, 109 | address { 110 | margin-bottom : 1.5em; 111 | font-size : 1em; /* 16 / 16 = 1 */ } 112 | 113 | p { 114 | hyphens : auto; 115 | text-align : justify; } 116 | 117 | ul, 118 | ol { 119 | margin : 0 0 1.5em -24px; 120 | padding : 0 0 0 24px; } 121 | 122 | li ul, 123 | li ol { 124 | margin : 0; 125 | font-size : 1em; /* 16 / 16 = 1 */ } 126 | 127 | dl, 128 | dd { 129 | margin-bottom : 1.5em; } 130 | 131 | dt { 132 | font-weight : normal; } 133 | 134 | blockquote { 135 | margin : 0 0 1.5em -24px; 136 | padding-left : 24px; 137 | border-left : 1px solid rgb(200,200,200); 138 | font-style : italic; } 139 | 140 | blockquote:before, 141 | blockquote:after, 142 | q:before, 143 | q:after { 144 | content : ''; 145 | content : none; } 146 | 147 | abbr[title] { 148 | border-bottom : 1px dotted; 149 | cursor : help; } 150 | 151 | b, strong { 152 | font-weight : bold; } 153 | 154 | dfn { 155 | font-style : italic; } 156 | 157 | hr { 158 | display : block; 159 | margin : 1em 0; 160 | padding : 0; 161 | height : 1px; 162 | border : 0; 163 | border-top : 1px solid rgb(204,204,204); } 164 | 165 | ins { 166 | background-color : rgb(240,240,240); 167 | color : rgb(0,0,0); 168 | text-decoration : none; } 169 | 170 | mark { 171 | background-color : rgb(240,240,240); 172 | color: rgb(0,0,0); 173 | font-style : italic; 174 | font-weight : bold; } 175 | 176 | pre, 177 | code, 178 | kbd, 179 | samp { 180 | font-family : monospace, monospace; 181 | _font-family : 'courier new', monospace; 182 | font-size : .875em; 183 | line-height : 1.5; } 184 | 185 | pre { 186 | white-space : pre; 187 | white-space : pre-wrap; 188 | word-wrap : break-word; } 189 | 190 | q { 191 | quotes : none; } 192 | 193 | q:before, 194 | q:after { 195 | content : ""; 196 | content : none; } 197 | 198 | small { 199 | font-size : 1em; /* 16 / 16 = 1 */ } 200 | 201 | sub, sup { 202 | font-size : 75%; 203 | line-height : 0; 204 | position : relative; 205 | vertical-align : baseline; } 206 | 207 | sup { 208 | top : -.5em; } 209 | 210 | sub { 211 | bottom : -.25em; } 212 | 213 | /* 4.LINKS ============================================================================= */ 214 | 215 | a { 216 | color : rgb(23,119,175); } 217 | 218 | a:visited { 219 | color : rgb(40,40,40); } 220 | 221 | a:focus { 222 | outline : thin dotted; 223 | color : rgb(0,0,0); } 224 | 225 | a:hover, 226 | a:active { 227 | outline : 0; } 228 | 229 | /* 5.FIGURES & IMAGES ============================================================================= */ 230 | 231 | figure { 232 | margin-bottom : 1.5em; } 233 | 234 | figure img, 235 | figure object, 236 | figure embed { 237 | margin-bottom : .75em; 238 | max-width : 100%; } 239 | 240 | figcaption { 241 | display : block; 242 | font-weight : normal; } 243 | 244 | img { 245 | border : 0; } 246 | 247 | svg:not(:root) { 248 | overflow : hidden; } 249 | 250 | /* 6.TABLES ============================================================================= */ 251 | 252 | table { 253 | border-collapse : collapse; 254 | border-spacing : 0; 255 | margin-bottom : 1.4em; 256 | width : 100%; 257 | font-size : .875em; /* 14 / 16 = .875 */ } 258 | 259 | th, td, caption { 260 | padding : .25em 10px .25em 5px; } 261 | 262 | tfoot { 263 | font-style : italic; } 264 | 265 | caption { 266 | background-color : transparent; } 267 | 268 | /* 7.FORMS ============================================================================= */ 269 | 270 | form { 271 | margin : 0; } 272 | 273 | fieldset { 274 | margin-bottom : 1.5em; 275 | padding : 0; 276 | border-width : 0; } 277 | 278 | legend { 279 | *margin-left : -7px; 280 | padding : 0; 281 | border-width : 0; } 282 | 283 | label { 284 | font-weight : normal; 285 | cursor : pointer; } 286 | 287 | button, 288 | input, 289 | select, 290 | textarea { 291 | font-size : 100%; 292 | margin : 0; 293 | vertical-align : baseline; 294 | *vertical-align : middle; } 295 | 296 | button, input { 297 | line-height : normal; 298 | *overflow : visible; } 299 | 300 | button, 301 | input[type="button"], 302 | input[type="reset"], 303 | input[type="submit"] { 304 | cursor : pointer; } 305 | 306 | input[type="checkbox"], 307 | input[type="radio"] { 308 | box-sizing : border-box; } 309 | 310 | input[type="search"] { 311 | box-sizing : content-box; } 312 | 313 | button::-moz-focus-inner, 314 | input::-moz-focus-inner { 315 | padding : 0; 316 | border : 0; } 317 | 318 | textarea { 319 | overflow : auto; 320 | vertical-align : top; } 321 | 322 | /* Colors for form validity */ 323 | input:valid, 324 | textarea:valid { 325 | /* Styles */ } 326 | 327 | input:invalid, 328 | textarea:invalid { 329 | -webkit-box-shadow : 0 0 2px rgb(255,0,0); 330 | -moz-box-shadow : 0 0 2px rgb(255,0,0); 331 | box-shadow : 0 0 2px rgb(255,0,0); } 332 | 333 | .no-boxshadow input:invalid, 334 | .no-boxshadow textarea:invalid { 335 | background-color : rgb(240,221,221); } 336 | 337 | /* 8 BANNER ============================================================================= */ 338 | /* 9 NAVIGATION ============================================================================= */ 339 | /* 10 CONTENT ============================================================================= */ 340 | /* 11 MAIN ============================================================================= */ 341 | /* 12 COMPLEMENTARY ============================================================================= */ 342 | /* 13 CONTENTINFO ============================================================================= */ 343 | 344 | /* 14 GLOBAL OBJECTS ============================================================================= */ 345 | 346 | .clearfix:before, 347 | .clearfix:after { 348 | content : "\0020"; 349 | display : block; 350 | height : 0; 351 | overflow : hidden; } 352 | 353 | .clearfix:after { 354 | clear : both; } 355 | 356 | /* 15 VENDOR-SPECIFIC ============================================================================= */ 357 | 358 | html { 359 | -webkit-overflow-scrolling : touch; 360 | -webkit-tap-highlight-color : rgb(52,158,219); 361 | -webkit-text-size-adjust : 100%; 362 | -ms-text-size-adjust : 100%; } 363 | 364 | .clearfix { 365 | zoom : 1; } 366 | 367 | ::-webkit-selection { 368 | background : #73B300; 369 | color : white; 370 | text-shadow : none; } 371 | 372 | ::-moz-selection { 373 | background : #73B300; 374 | color : white; 375 | text-shadow : none; } 376 | 377 | ::selection { 378 | background : #73B300; 379 | color : white; 380 | text-shadow : none; } 381 | 382 | button, 383 | input[type="button"], 384 | input[type="reset"], 385 | input[type="submit"] { 386 | -webkit-appearance : button; } 387 | 388 | ::-webkit-input-placeholder { 389 | font-size : .875em; 390 | line-height : 1.4; } 391 | 392 | input:-moz-placeholder { 393 | font-size : .875em; 394 | line-height : 1.4; } 395 | 396 | .ie7 img, 397 | .iem7 img { 398 | -ms-interpolation-mode : bicubic; } 399 | 400 | input[type="checkbox"], 401 | input[type="radio"] { 402 | box-sizing : border-box; } 403 | 404 | input[type="search"] { 405 | -webkit-box-sizing : content-box; 406 | -moz-box-sizing : content-box; } 407 | 408 | button::-moz-focus-inner, 409 | input::-moz-focus-inner { 410 | padding : 0; 411 | border : 0; } 412 | 413 | p { 414 | /* http://www.w3.org/TR/css3-text/#hyphenation */ 415 | -webkit-hyphens : auto; 416 | -webkit-hyphenate-character : "\2010"; 417 | -webkit-hyphenate-limit-after : 1; 418 | -webkit-hyphenate-limit-before : 3; 419 | -moz-hyphens : auto; } 420 | 421 | /* Non-semantic helper classes 422 | 423 | .ir { display : block; 424 | overflow : hidden; 425 | background-repeat : no-repeat; 426 | text-align : left; 427 | text-indent : -999em; 428 | direction : ltr; } 429 | 430 | .ir br { 431 | display : none; } 432 | 433 | .hidden { 434 | display : none; 435 | visibility: hidden; } 436 | 437 | .visuallyhidden { 438 | position : absolute; 439 | margin : -1px; 440 | padding : 0; 441 | height : 1px; 442 | width : 1px; 443 | overflow : hidden; 444 | border : 0; 445 | clip : rect(0 0 0 0); } 446 | 447 | .visuallyhidden.focusable:active, 448 | .visuallyhidden.focusable:focus { 449 | position: static; 450 | margin : 0; 451 | height : auto; 452 | width : auto; 453 | overflow: visible; 454 | clip : auto; } 455 | 456 | .invisible { 457 | visibility : hidden; } */ 458 | 459 | /* 16 MODERNIZR ============================================================================= */ 460 | 461 | /* audio */ 462 | /* applicationcache */ 463 | /* backgroundsize */ 464 | /* borderimage */ 465 | /* borderradius */ 466 | /* boxshadow */ 467 | /* canvas */ 468 | /* canvastext */ 469 | /* cssanimations */ 470 | /* csscolumns */ 471 | /* cssgradients */ 472 | /* cssreflections*/ 473 | /* csstransforms */ 474 | /* csstransforms3d */ 475 | /* csstransitions */ 476 | /* draganddrop */ 477 | /* flexbox */ 478 | /* fontface */ 479 | /* geolocation */ 480 | /* hashchange */ 481 | /* history */ 482 | /* hsla */ 483 | /* indexeddb */ 484 | /* inlinesvg */ 485 | /* localstorage */ 486 | /* multiplebgs */ 487 | /* opacity */ 488 | /* postmessage */ 489 | /* rgba */ 490 | /* sessionstorage */ 491 | /* smil */ 492 | /* svg */ 493 | /* svgclippaths */ 494 | /* textshadow */ 495 | /* touch */ 496 | /* video */ 497 | /* webgl */ 498 | /* websqldatabase */ 499 | /* websockets */ 500 | /* webworkers */ 501 | 502 | /* 17 TEMPLATE SPECIFICS ============================================================================= */ 503 | /* ==|== primary styles ===================================================== 504 | Author: @peterlubbers 505 | ========================================================================== */ 506 | body { 507 | width: 100%; 508 | /* font-family: 'Play', sans-serif; */ 509 | background-color: white; 510 | } 511 | 512 | #container{ 513 | /* margin: 20px.auto; */ 514 | border: 2px solid #73B300; 515 | } 516 | 517 | .center { 518 | text-align: center; 519 | } 520 | 521 | .clearfix:after { 522 | content: "."; 523 | display: block; 524 | clear: both; 525 | visibility: hidden; 526 | line-height: 0; 527 | height: 0; 528 | } 529 | 530 | header{ 531 | padding: 0.33em; 532 | background-color: #73B300; 533 | margin-bottom: 0.5em; 534 | font-size: 1.25em; 535 | } 536 | 537 | header h1 { 538 | color: white; 539 | text-align: center; 540 | } 541 | 542 | h2, h3 { 543 | color: #73B300; 544 | } 545 | 546 | h4 { 547 | color: #73B300; 548 | background-color: #fff; 549 | -webkit-box-shadow: 2px 2px 20px #888; 550 | -webkit-transform: rotate(-45deg); 551 | -moz-box-shadow: 2px 2px 20px #888; 552 | -moz-transform: rotate(-45deg); 553 | -o-box-shadow: 2px 2px 20px #888; 554 | -o-transform: rotate(-45deg); 555 | position: absolute; 556 | padding: 0px 150px; 557 | top: 30px; 558 | left: -150px; 559 | text-align:center; 560 | } 561 | .clearfix { 562 | display: inline-block; 563 | } 564 | 565 | #graphic { 566 | text-align:center; 567 | float: left; 568 | } 569 | 570 | figure { 571 | text-align: center; 572 | margin: 10px; 573 | } 574 | 575 | figcaption { 576 | text-align:center; 577 | font-size: 1.5em; 578 | color: #73B300; 579 | margin: 10px; 580 | } 581 | 582 | .events { 583 | padding-left: 1em; 584 | padding-right: 1em; 585 | border: 5px solid #73B300; 586 | border-radius: 10px; 587 | overflow: auto; 588 | height: 18em; 589 | padding: 5px; 590 | font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; 591 | } 592 | 593 | #info p { 594 | margin: 0.1em; 595 | font-size: 0.8em; 596 | } 597 | 598 | footer { 599 | text-align: center; 600 | padding: 0.33em; 601 | background-color: #73B300; 602 | display: block; 603 | margin-top: 0.5em; 604 | color: white; 605 | } 606 | 607 | footer a:visited { 608 | text-decoration: none; 609 | color: white; 610 | } 611 | nav { 612 | display:block; 613 | color: white; 614 | text-align: center; 615 | } 616 | 617 | nav a:link, nav a:visited { 618 | padding: 0.25em; 619 | text-decoration: none; 620 | margin: 5px; 621 | color: white; 622 | } 623 | 624 | nav a:hover { 625 | color: #73B300; 626 | background-color: white; 627 | border-radius: 8px; 628 | } 629 | 630 | nav h3 { 631 | margin: 0.25em; 632 | color: white; 633 | } 634 | -------------------------------------------------------------------------------- /demo/fallback.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Fallback Page 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 37 | 38 | 39 | 40 | 41 |
42 |

ApplicationCache Demo

43 | 50 |
51 | 52 |

AppCache Rocks!

53 | 54 | 57 | 58 |
59 |
60 | Green Tumbeast with a sign that reads Network 62 |
This is the fallback page. This page will be served instead of other resources if they are not available.
63 |
64 |
65 |

ApplicationCache Under the Hood

66 |
67 |
68 |
69 |
70 |
71 |
72 | 73 | 81 | 82 | 166 | 167 | -------------------------------------------------------------------------------- /demo/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/favicon.ico -------------------------------------------------------------------------------- /demo/humans.txt: -------------------------------------------------------------------------------- 1 | /* the humans responsible & colophon */ 2 | /* humanstxt.org */ 3 | 4 | 5 | /* TEAM */ 6 | @peterlubbers 7 | Twitter: @peterlubbers 8 | Location: Lake Tahoe, CA 9 | 10 | /* THANKS */ 11 | Mark Christian 12 | 13 | /* SITE */ 14 | Standards: HTML5, CSS3 15 | Components: Modernizr, jQuery 16 | Software: 17 | 18 | 19 | 20 | -o/- 21 | +oo//- 22 | :ooo+//: 23 | -ooooo///- 24 | /oooooo//: 25 | :ooooooo+//- 26 | -+oooooooo///- 27 | -://////////////+oooooooooo++////////////:: 28 | :+ooooooooooooooooooooooooooooooooooooo+:::- 29 | -/+ooooooooooooooooooooooooooooooo+/::////:- 30 | -:+oooooooooooooooooooooooooooo/::///////:- 31 | --/+ooooooooooooooooooooo+::://////:- 32 | -:+ooooooooooooooooo+:://////:-- 33 | /ooooooooooooooooo+//////:- 34 | -ooooooooooooooooooo////- 35 | /ooooooooo+oooooooooo//: 36 | :ooooooo+/::/+oooooooo+//- 37 | -oooooo/::///////+oooooo///- 38 | /ooo+::://////:---:/+oooo//: 39 | -o+/::///////:- -:/+o+//- 40 | :-:///////:- -:/:// 41 | -////:- --//: 42 | -- -: 43 | -------------------------------------------------------------------------------- /demo/img/404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/img/404.png -------------------------------------------------------------------------------- /demo/img/fallback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/img/fallback.png -------------------------------------------------------------------------------- /demo/img/grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/img/grid.png -------------------------------------------------------------------------------- /demo/img/h/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/img/h/apple-touch-icon.png -------------------------------------------------------------------------------- /demo/img/l/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/img/l/apple-touch-icon.png -------------------------------------------------------------------------------- /demo/img/m/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/img/m/apple-touch-icon.png -------------------------------------------------------------------------------- /demo/img/network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/img/network.png -------------------------------------------------------------------------------- /demo/img/tbrun1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/img/tbrun1.png -------------------------------------------------------------------------------- /demo/img/tbrun5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/img/tbrun5.png -------------------------------------------------------------------------------- /demo/img/tbservers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/demo/img/tbservers.png -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Home Page 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 37 | 38 | 39 | 40 | 41 | 42 |
43 |

ApplicationCache Demo

44 | 51 |
52 | 53 |

AppCache Rocks!

54 | 55 | 58 | 59 |
60 |
61 | Green Tumbeast with a sign that reads Network 63 |
This is the home page. Once all the files are in the ApplicationCache (check status below), you can go offline and visit the cache page.
64 |
65 |
66 |

ApplicationCache Under the Hood

67 |
68 |
69 |
70 |
71 |
72 |
73 | 74 | 82 | 83 | 168 | 169 | 182 | 183 | 184 | -------------------------------------------------------------------------------- /demo/manifest.appcache: -------------------------------------------------------------------------------- 1 | CACHE MANIFEST 2 | 3 | # version 2011-07-012 06:06:44 v1 4 | 5 | CACHE: 6 | 7 | # html files 8 | cache.html 9 | index.html 10 | 404.html 11 | 12 | # css files 13 | css/style.css 14 | 15 | # images 16 | apple-touch-icon.png 17 | favicon.ico 18 | img/h/apple-touch-icon.png 19 | img/m/apple-touch-icon.png 20 | img/l/apple-touch-icon.png 21 | img/tbrun1.png 22 | img/tbrun5.png 23 | img/tbservers.png 24 | img/network.png 25 | img/404.png 26 | img/fallback.png 27 | # https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png 28 | 29 | # misc 30 | humans.txt 31 | 32 | FALLBACK: 33 | / /demo/fallback.html 34 | 35 | NETWORK: 36 | * -------------------------------------------------------------------------------- /demo/network.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Network Page 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 36 | 37 | 38 | 39 | 40 | 41 |
42 |

ApplicationCache Demo

43 | 50 |
51 | 52 |

AppCache Rocks!

53 | 54 | 57 | 58 |
59 |
60 | Green Tumbeast with a sign that reads Network 62 |
This is the network page. If you are offline and you have not previously visited this page while you were online, you should see the fallback page instead.
63 |
64 |
65 |

ApplicationCache Under the Hood

66 |
67 |
68 |
69 |
70 |
71 |
72 | 73 | 81 | 82 | 165 | 166 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Appcache Facts 5 | 102 | 113 | 114 | 115 |

Appcache Facts

116 |

The application cache is a poorly understood part of the HTML5 specification with a lot of potential. Let's get rid of 117 | some of the confusion and make the web a faster place.

118 | 119 |
120 | 200 |
201 | 202 |
203 |

Resources

204 |

These resources have been invaluable while working with the appcache:

205 | 218 |
219 | 220 | 225 | 226 | 227 | -------------------------------------------------------------------------------- /peterlubbers-owc4/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/.DS_Store -------------------------------------------------------------------------------- /peterlubbers-owc4/README.md: -------------------------------------------------------------------------------- 1 | Peter Lubbers' talk from Open Web Camp IV (2012) 2 | ======== 3 | 4 | -------------------------------------------------------------------------------- /peterlubbers-owc4/images/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/.DS_Store -------------------------------------------------------------------------------- /peterlubbers-owc4/images/HTML5_Badge.svg: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 20 | 22 | image/svg+xml 23 | 25 | 26 | 27 | 28 | 30 | 53 | HTML5 Logo Badge 55 | 58 | 63 | 68 | 69 | 71 | 76 | 81 | 82 | 87 | 92 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /peterlubbers-owc4/images/HTML5_Badge_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/HTML5_Badge_128.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/HTML5_Badge_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/HTML5_Badge_64.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/angrybirds.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/angrybirds.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/apress-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/apress-book.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/audio-routing-analysis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/audio-routing-analysis.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/audio-routing-crossfade.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/audio-routing-crossfade.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/audio-routing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/audio-routing.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/barchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/barchart.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/browser_logos/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/browser_logos/.DS_Store -------------------------------------------------------------------------------- /peterlubbers-owc4/images/browser_logos/ff_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/browser_logos/ff_logo.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/browser_logos/ie10_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/browser_logos/ie10_logo.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/browser_logos/opera_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/browser_logos/opera_logo.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/browser_logos/safari_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/browser_logos/safari_logo.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/browsers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/browsers.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/chart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/chart.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/chrome-logo-tiny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/chrome-logo-tiny.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/chrome_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/chrome_logo.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/demo.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/demo.PNG -------------------------------------------------------------------------------- /peterlubbers-owc4/images/ft.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/ft.PNG -------------------------------------------------------------------------------- /peterlubbers-owc4/images/gmail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/gmail.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/google_developers_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/google_developers_icon_128.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/google_developers_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/google_developers_logo.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/google_developers_logo_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/google_developers_logo_white.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/gprofile_button-44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/gprofile_button-44.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/html5-badge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/html5-badge.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/html_can_not_do_that.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/html_can_not_do_that.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/icons/bug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/icons/bug.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/icons/bug_closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/icons/bug_closed.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/icons/gears.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 15 | 25 | 26 | -------------------------------------------------------------------------------- /peterlubbers-owc4/images/icons/radar.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /peterlubbers-owc4/images/io2012_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/io2012_logo.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/my_book_cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/my_book_cover.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/offline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/offline.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/owc4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/owc4.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/peterlubbers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/peterlubbers.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/pics-appcache/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/pics-appcache/.DS_Store -------------------------------------------------------------------------------- /peterlubbers-owc4/images/pics-appcache/Screen Shot 2012-07-12 at 3.24.50 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/pics-appcache/Screen Shot 2012-07-12 at 3.24.50 PM.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/pics-appcache/chrome-site.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/pics-appcache/chrome-site.PNG -------------------------------------------------------------------------------- /peterlubbers-owc4/images/pics-appcache/photo (1).PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/pics-appcache/photo (1).PNG -------------------------------------------------------------------------------- /peterlubbers-owc4/images/pics-appcache/photo.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/pics-appcache/photo.PNG -------------------------------------------------------------------------------- /peterlubbers-owc4/images/sfhtml5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/sfhtml5.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/slides/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/slides/.DS_Store -------------------------------------------------------------------------------- /peterlubbers-owc4/images/slides/binding.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/slides/binding.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/slides/blueprint.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/slides/blueprint.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/slides/fast.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/slides/fast.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/slides/flexbox-holygrail.svg: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | <header> 15 | 16 | 17 | 18 | <footer> 19 | 20 | 21 | 22 | <nav> 23 | 24 | 25 | 26 | <article> 27 | 28 | 29 | 30 | <aside> 31 | 32 | -------------------------------------------------------------------------------- /peterlubbers-owc4/images/slides/flexbox-tools.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /peterlubbers-owc4/images/slides/rocket.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/slides/rocket.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/slides/stream.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/slides/stream.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/slides/tools.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/slides/tools.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/slides/tools2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/slides/tools2.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/tool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/tool.png -------------------------------------------------------------------------------- /peterlubbers-owc4/images/transferables.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/transferables.jpg -------------------------------------------------------------------------------- /peterlubbers-owc4/images/twitter_newbird_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/images/twitter_newbird_blue.png -------------------------------------------------------------------------------- /peterlubbers-owc4/index.html: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | Open Web Camp IV ApplicationCache Presentation 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
38 |

39 |

40 |

41 | 42 |
43 |
44 | 45 | 46 | 47 | 48 |
49 |

Let's Get Started!

50 |
51 |
52 |

53 | 54 | 55 |

Peter Lubbers, Program Manager, Google Chrome

56 | 57 |

58 | 59 |

60 |

61 | 62 |

63 | 64 | 65 | 66 |
67 |
68 | 69 | 70 | 71 |
72 |

San Francisco HTML5 User Group

73 |
74 | 78 |
79 | 80 | 81 | 82 | 83 |
84 |

Agenda

85 |
86 |
87 |
    88 |
  • About Offline Apps and ApplicationCache
  • 89 |
  • AppCache Basics
  • 90 |
  • Demo Time
  • 91 |
  • Questions and Answers
  • 92 |
93 |

Pay attention, win prizes!

94 | 95 |
96 |
97 | 98 | 99 | 100 | 101 |
102 |

HTML5 Feature Areas

103 |
104 |
105 | HTML5 Feature Areas 106 |
HTML5 Logo and Badges by W3C
107 |
108 |
109 | 110 | 111 | 112 | 113 |
114 |

HTML5 Offline and Storage

115 |
116 |
117 | Offline Feature Area 118 |
    119 |
  • File Storage
  • 120 |
      121 |
    • Browser Cache
    • 122 |
    • Application Cache
    • 123 |
    124 |
  • Data Storage
  • 125 |
      126 |
    • Cookies
    • 127 |
    • Session Storage
    • 128 |
    • Local Storage
    • 129 |
    • IndexedDB
    • 130 |
    131 |
132 |
133 | 134 | 135 | 136 |
137 |

Using ApplicationCache

138 |
139 |
140 |
    141 |
  • Offline use cases:
  • 142 |
      143 |
    • Air travel
    • 144 |
    • Remote areas
    • 145 |
    • Intermittent disconnects (tunnel/subway)
    • 146 |
    147 | 148 |
  • Use Application Cache
  • 149 |
      150 |
    • Browser cache is not reliable for complete offline
    • 151 |
    • Fetch resources that have not yet been visited
    • 152 |
    • Speeds up content delivery
    • 153 |
    154 |
155 |
156 |
157 | 158 | 159 |
160 |

Web Apps that Use ApplicationCache

161 |
162 |
163 | Angry birds 164 |
Angry Birds (Chrome Web Store)
165 |
166 |
167 | 168 | 169 |
170 |

Web Apps that Use ApplicationCache

171 |
172 |
173 | Financial Times 174 |
Financial Times Web App ft.com
175 |
176 |
177 | 178 | 179 | 180 |
181 |

Web Apps that Use ApplicationCache

182 |
183 |
184 | Gmail 185 |
Offline Gmail
186 |
187 |
188 | 189 | 190 | 191 | 192 | 193 |
194 |

Browser Support

195 |
196 | 200 |
201 | 202 | 203 |
204 | ApplicationCache Basics 205 |
206 |
207 | 208 | 209 | 210 |
211 |

ApplicationCache Basics

212 |

Create a manifest file (*.appcache)

213 |
214 |
215 | 216 |
217 | CACHE MANIFEST
218 | # version 2011-07-012 06:06:44
219 | 
220 | CACHE:
221 | # html files
222 | cache.html
223 | index.html
224 | # css files
225 | css/style.css
226 | # image files
227 | apple-touch-icon.png
228 | favicon.ico
229 | img/fallback.png
230 | 
231 | FALLBACK:
232 | / /demo/fallback.html
233 | 
234 | NETWORK:
235 | *
236 | 
237 | # Although it was removed from the spec, some browsers still require server configuration (mime type for *.appcache)
238 | 
239 |
240 |
241 | 242 | 246 | 247 | 248 | 249 | 250 |
251 |

ApplicationCache Basics

252 |

Add manifest attribute to the html element

253 |
254 |
255 | 256 |
257 | <doctype html>
258 | <html class="no-js" lang="en" manifest="manifest.appcache">
259 | 
260 |
261 |
262 | 263 | 264 | 265 |
266 | 267 | ApplicationCache is a Douchebag. 268 | 269 |
270 | Jake Archibald
271 | Lanyard 272 |
273 |
274 |
275 | 276 | 277 | 278 | 279 |
280 |

ApplicationCache Sequence of Events

281 |
282 |
283 |
    284 |
  • Navigate to URL in browser
  • 285 |
  • Browser checks if there already an ApplicationCache for the origin
  • 286 | 287 |
      288 |
    • No: Download initial version of the ApplicationCache
    • 289 |
    • Yes: Browser loads resources from ApplicationCache and checks if the manifest has changed (on the server)
    • 290 |
        291 |
      • No: Done
      • 292 |
      • Yes: Download new version of the ApplicationCache
      • 293 |
      294 |
    295 |
  • Important: ApplicationCache does not auto-refresh a page (you can manually refresh or programatically, based on ApplicationCache events)
  • 296 |
297 |
298 |
299 | 300 | 301 | 302 | 303 |
304 |

ApplicationCache Events

305 |
306 |
307 | 308 |
309 | // log each of the events fired by window.applicationCache
310 | window.applicationCache.onchecking = function(e) {log("Checking for updates");}
311 | window.applicationCache.onnoupdate = function(e) {log("No updates");}
312 | window.applicationCache.onupdateready = function(e) {log("Update ready");}
313 | window.applicationCache.onobsolete = function(e) {log("Obsolete");}
314 | window.applicationCache.ondownloading = function(e) {log("Downloading");}
315 | window.applicationCache.oncached = function(e) {log("Cached");}
316 | window.applicationCache.onerror = function(e) {log("Error");}
317 | 
318 | //Log each file
319 | window.applicationCache.onprogress = function(e) {log("checking");}
320 |   appCacheLog("Progress: downloaded file " + counter);
321 |   counter++;
322 | }
323 | 
324 |
325 |
326 | 327 | 328 | 329 |
330 |

Online and Offline Events

331 |
332 |
333 | 334 |
335 | //Online and Offline status detection
336 | window.addEventListener("online", function(e) {
337 |   log("You are online");
338 | }, true);
339 | window.addEventListener("offline", function(e) {
340 |   log("You are offline");
341 | }, true);
342 | 
343 |
344 |
345 | 346 | 347 | 348 | 349 | 350 |
351 | It's demo time! 352 |
353 |
354 | 355 | 356 |
357 |

Demo

358 |
359 | 363 |
364 | 365 | 366 | 367 | 368 |
369 |

Tips and Tricks

370 |
371 |
372 |
    373 |
  • Works well with local storage or IndexedDB
  • 374 |
  • Use the '*.appcache' extension for manifest files
  • 375 |
  • Don't ever cache the manifest file!
  • 376 |
  • Automatically generate the manifest (use HTML5 Boilerplate)
  • 377 |
  • To support older browsers, configure your web server to serve manifest files with the 'text/cache-manifest' mime type
  • 378 |
  • Use developer tools to analyze problems
  • 379 |
  • Clear the cache before you retest
  • 380 |
  • Quota and quota management varies per browser
  • 381 | 382 |
      383 |
    • about:cache
    • 384 |
    • chrome:appcache-internals
    • 385 |
    386 |
387 |
388 |
389 | 390 | 391 | 392 | 393 |
394 |

Cache Manifest Validation Tool

395 |
396 | 400 |
401 | 402 | 403 | 404 |
405 |

More Information

406 |
407 | 415 |
416 | 417 | 418 |
419 | Questions? 420 |
421 |
422 | 423 | 424 | 425 | 426 | 427 | 428 |
429 |

Thank You!

430 |
431 |

432 | 433 |

434 |
435 | 436 | 437 | 438 | 439 | 440 |
441 | 442 |
443 |
444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 |
452 | 453 | 464 | 465 | 469 | 470 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/app.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | window.requestAnimationFrame = window.requestAnimationFrame || 3 | window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || 4 | window.msequestAnimationFrame || window.oRequestAnimationFrame; 5 | window.cancelAnimationFrame = window.cancelAnimationFrame || 6 | window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || 7 | window.msCancelAnimationFrame || window.oCancelAnimationFrame; 8 | 9 | window.MutationObserver = window.MutationObserver || 10 | window.WebKitMutationObserver || window.MozMutationObserver || 11 | window.OMutationObserver || window.MsMutationObserver; 12 | 13 | var transEndEventNames = { 14 | 'WebkitTransition': 'webkitTransitionEnd', 15 | 'MozTransition': 'transitionend', 16 | 'OTransition': 'oTransitionEnd', 17 | 'msTransition': 'MSTransitionEnd', 18 | 'transition': 'transitionend' 19 | }; 20 | 21 | var PREFIXES = { 22 | 'webkit': 'WebKit', 23 | 'moz': 'Moz', 24 | 'ms': 'MS', 25 | 'o': 'O' 26 | }; 27 | 28 | // Find the correct transitionEnd vendor prefix. 29 | window.transEndEventName = transEndEventNames[Modernizr.prefixed('transition')]; 30 | 31 | window.$ = function(selector, opt_scope) { 32 | var scope = opt_scope || document; 33 | return scope.querySelector(selector); 34 | }; 35 | 36 | window.$$ = function(selector, opt_scope) { 37 | var scope = opt_scope || document; 38 | return Array.prototype.slice.call(scope.querySelectorAll(selector) || []); 39 | }; 40 | 41 | HTMLElement.prototype.$ = function(selector) { 42 | return $(selector, this); 43 | }; 44 | 45 | HTMLElement.prototype.$$ = function(selector) { 46 | return $$(selector, this); 47 | }; 48 | 49 | HTMLElement.prototype.listen = HTMLElement.prototype.addEventListener; 50 | document.listen = document.addEventListener; 51 | 52 | 53 | // If DOM is ready, run our setup. Otherwise wait for it to finish. 54 | if (document.readyState === 'complete') { 55 | initContent(); 56 | } else { 57 | document.listen('readystatechange', function() { 58 | if (document.readyState === 'complete') { 59 | initContent(); 60 | } 61 | }); 62 | } 63 | 64 | function addVendorPrefixes() { 65 | $$('[data-tooltip-property]').forEach(function(tip, i) { 66 | var property = tip.dataset.tooltipProperty; 67 | 68 | var support = Object.keys(PREFIXES); // Default to all prefixes if support array is missing. 69 | var includeUnprefixedVersion = false; 70 | if (tip.dataset.tooltipSupport) { 71 | support = JSON.parse(tip.dataset.tooltipSupport); 72 | // A 'unprefix' in the array indicates not to include unprefixed property. 73 | var idx = support.indexOf('unprefixed'); 74 | if (idx != -1) { 75 | includeUnprefixedVersion = true; 76 | support.splice(idx, 1); 77 | } 78 | } 79 | 80 | var str = ['/* Requires vendor prefixes. */']; 81 | 82 | if ('tooltipJs' in tip.dataset) { 83 | tip.href = 'http://caniuse.com/#search=' + property; 84 | 85 | support.forEach(function(prefix, i) { 86 | // Capitalized Properties should remain so, unless explicitly called out. 87 | if (property[0] == property[0].toUpperCase() && 88 | !('tooltipLowercase' in tip.dataset)) { 89 | var val = PREFIXES[prefix] + property + '(...)'; 90 | } else { 91 | var upperCasedProperty = property[0].toUpperCase() + property.substring(1); 92 | var val = prefix + upperCasedProperty + '(...);'; 93 | } 94 | str.push(val); 95 | }); 96 | 97 | if (includeUnprefixedVersion) { 98 | str.push(property + '(...);'); 99 | } 100 | 101 | } else { 102 | tip.href = 'http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#including_a_mixin'; 103 | 104 | support.forEach(function(prefix, i) { 105 | str.push('-' + prefix + '-' + property);// + ': ...'); 106 | 107 | }); 108 | 109 | str.push(property);// + ': ...'); // Include unprefixed property by default for CSS. 110 | } 111 | 112 | tip.dataset.tooltip = str.join('\n'); 113 | tip.role = 'tooltip'; 114 | tip.innerHTML = '' + 115 | (!('tooltipJs' in tip.dataset) ? '+' : '') + property + 116 | ''; 117 | }); 118 | } 119 | 120 | function addBugStatus() { 121 | $$('.bug').forEach(function(bug, i) { 122 | bug.alt = 'WebKit bug link'; 123 | bug.title = 'WebKit bug link'; 124 | fetchBugStatus(bug); 125 | }); 126 | } 127 | 128 | function fetchBugStatus(bug) { 129 | // Ignore crbugs. They don't do CORS :( 130 | if (!bug.href.match(/webk\.it/)) { 131 | return; 132 | } 133 | var url = bug.href.split('/'); 134 | url = 'https://bugs.webkit.org/show_bug.cgi?id=' + url[url.length - 1]; 135 | var xhr = new XMLHttpRequest(); 136 | xhr.open('GET', url, true); 137 | xhr.onload = function(e) { 138 | var div = document.createElement('div'); 139 | div.innerHTML = this.response; 140 | var status = div.$('#static_bug_status').textContent.trim(); 141 | var isClosed = status.match(/resolved|closed|fixed/i); 142 | if (isClosed) { 143 | bug.classList.add('closed'); 144 | } 145 | }; 146 | xhr.onerror = function(e) { 147 | console.log(e); 148 | }; 149 | xhr.send(); 150 | } 151 | 152 | // DOM Ready business. 153 | function initContent(e) { 154 | document.body.classList.add('loaded'); // Add loaded class for templates to use. 155 | 156 | if (slidedeck.slides[slidedeck.curSlide_].classList.contains('blueprint')) { 157 | document.body.classList.add('blueprint'); 158 | } 159 | 160 | slidedeck.container.listen('slideenter', function(e) { 161 | var slide = e.target; 162 | if (slide.dataset.bodyClass) { 163 | document.body.classList.add(slide.dataset.bodyClass); 164 | } 165 | }); 166 | 167 | slidedeck.container.listen('slideleave', function(e) { 168 | var slide = e.target; 169 | if (slide.dataset.bodyClass) { 170 | document.body.classList.remove(slide.dataset.bodyClass); 171 | } 172 | }); 173 | 174 | var isChrome = navigator.userAgent.match(/Chrome/); 175 | if (!isChrome || isChrome && parseInt(navigator.userAgent.match(/Chrome\/(.*) /)[1]) < 21) { 176 | document.querySelector('#chrome-version-warning').style.display = 'block'; 177 | } 178 | 179 | // Can't use CSS counters because counts change when slides are hidden. 180 | $$('.can h2').forEach(function(el, i) { 181 | el.dataset.canNum = ++i; 182 | }); 183 | 184 | $$('[data-config-gplus]').forEach(function(el, i) { 185 | el.href = slidedeck.config_.presenters[0].gplus; 186 | }); 187 | 188 | $$('[data-config-twitter]').forEach(function(el, i) { 189 | var handle = slidedeck.config_.presenters[0].twitter; 190 | if (!el.hasChildNodes()) { 191 | el.textContent = handle; 192 | } 193 | if (el.nodeName == 'A') { 194 | el.href = 'http://twitter.com/' + handle; 195 | } 196 | }); 197 | 198 | $$('[data-config-www]').forEach(function(el, i) { 199 | var www = slidedeck.config_.presenters[0].www; 200 | if (!el.hasChildNodes()) { 201 | el.textContent = www.replace('http:\/\/www\.', ''); 202 | } 203 | if (el.nodeName == 'A') { 204 | el.href = www; 205 | } 206 | }); 207 | 208 | $$('[data-config-presenter-name]').forEach(function(el, i) { 209 | el.textContent = slidedeck.config_.presenters[0].name; 210 | }); 211 | 212 | $$('[data-config-presenter-company]').forEach(function(el, i) { 213 | el.textContent = slidedeck.config_.presenters[0].company; 214 | }); 215 | 216 | $$('[data-config-presenter-title]').forEach(function(el, i) { 217 | el.textContent = slidedeck.config_.presenters[0].title; 218 | }); 219 | 220 | addVendorPrefixes(); 221 | addBugStatus(); 222 | 223 | var wrapup = document.querySelector('#wrapup ul'); 224 | var cans = document.querySelectorAll('slide.can h2'); 225 | for (var i = 0, can; can = cans[i]; ++i) { 226 | can.dataset.canNum = i + 1; 227 | var li = document.createElement('li'); 228 | li.textContent = can.textContent; 229 | wrapup.appendChild(li); 230 | } 231 | } 232 | 233 | (function() { 234 | function calculateHeights() { 235 | // Flexbox column demo. 236 | $$('#flexbox-bad > div').forEach(function(el, i) { 237 | var h = window.getComputedStyle(el).height; 238 | if (h != 'auto') { 239 | var height = Math.round(h.split('px')[0]); 240 | 241 | // Remember initial height so we can reset it if coming back to this slide. 242 | if (!el.dataset.initialHeight) { 243 | el.dataset.initialHeight = height; 244 | el.style.minHeight = height + 'px'; 245 | } else { 246 | el.style.minHeight = el.dataset.initialHeight + 'px'; 247 | } 248 | 249 | el.dataset.height = height; 250 | } 251 | }); 252 | } 253 | 254 | calculateHeights(); // Call on page load. 255 | 256 | var slide = $('#flexbox-bad').parentElement; 257 | slide.listen('slideenter', calculateHeights); 258 | slide.listen('slideleave', function(e) { 259 | var el = $('#flexbox-bad div:first-child'); 260 | el.style.minHeight = el.dataset.initialHeight + 'px'; 261 | }); 262 | })(); 263 | 264 | 265 | (function() { 266 | var demo = $('#flexbox-bad'); 267 | var el = demo.$('div:first-child'); 268 | var rafId = null; 269 | 270 | var onMutation = function(e) { 271 | var target = !e.type ? e[0].target : e.target; 272 | 273 | var height = Math.round(window.getComputedStyle(target).height.split('px')[0]); 274 | target.dataset.height = height; 275 | 276 | if (height > 400) { 277 | target.classList.add('whoops'); 278 | } else { 279 | target.classList.remove('whoops'); 280 | } 281 | }; 282 | 283 | // If we have mutation observers, use them. Otherwise, bind to keyup. 284 | if (window.MutationObserver) { 285 | var observer = new MutationObserver(onMutation); 286 | observer.observe(el, {childList: true}); 287 | } else { 288 | el.listen('keyup', onMutation); 289 | } 290 | 291 | var onTransitionEnd = function(e) { 292 | if (e.propertyName === 'height') { 293 | window.cancelAnimationFrame(rafId); 294 | } 295 | }; 296 | 297 | demo.$$('div').forEach(function(el, i) { 298 | el.listen(transEndEventName, onTransitionEnd, false); 299 | }); 300 | 301 | demo.listen('click', function(e) { 302 | var target = e.target; 303 | 304 | if (target.nodeName == 'DIV') { 305 | (function callback(time) { 306 | target.dataset.height = Math.round(window.getComputedStyle(target).height.split('px')[0]); 307 | rafId = window.requestAnimationFrame(callback); 308 | })(); 309 | 310 | if (!target.previousElementSibling && target.classList.contains('active')) { 311 | target.contentEditable = true; 312 | target.classList.toggle('editable'); 313 | } 314 | 315 | target.classList.toggle('active'); 316 | } 317 | }); 318 | })(); 319 | 320 | (function() { 321 | var demo = $('#flexbox-ex2'); 322 | 323 | demo.listen('change', function(e) { 324 | var target = e.target; 325 | demo.$('.box').style[Modernizr.prefixed(target.id)] = target.value; 326 | }); 327 | })(); 328 | 329 | (function() { 330 | var demo = $('#flexbox-ex3'); 331 | 332 | demo.listen('change', function(e) { 333 | if (e.target.nodeName == 'INPUT') { 334 | var str = []; 335 | this.$$('input').forEach(function(input, i) { 336 | str.push(input.value); 337 | }); 338 | this.$('.box > :nth-child(2)').style[Modernizr.prefixed('flex')] = str.join(' '); 339 | } 340 | }); 341 | })(); 342 | 343 | (function() { 344 | var demo = $('#flexbox-ex4'); 345 | 346 | demo.listen('change', function(e) { 347 | var target = e.target; 348 | var el = null; 349 | if (target.id == 'order') { 350 | el = demo.$('.box > :nth-child(2)'); 351 | } else if (target.id == 'flexDirection') { 352 | el = demo.$('.box'); 353 | if (target.value.indexOf('column') == 0) { 354 | demo.$('.box').classList.add('switchmainaxis'); 355 | } else { 356 | demo.$('.box').classList.remove('switchmainaxis'); 357 | } 358 | } 359 | el.style[Modernizr.prefixed(target.id)] = target.value; 360 | }); 361 | })(); 362 | 363 | (function() { 364 | var input = document.querySelector('#data-binding-example input'); 365 | input.dataset.value = input.value; 366 | 367 | input.addEventListener('change', function(e) { 368 | this.dataset.value = this.valueAsNumber; 369 | }); 370 | })(); 371 | 372 | })(); 373 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/modernizr.custom.45394.js: -------------------------------------------------------------------------------- 1 | /* Modernizr 2.5.3 (Custom Build) | MIT & BSD 2 | * Build: http://www.modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-flexbox_legacy-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-mq-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load 3 | */ 4 | ;window.Modernizr=function(a,b,c){function C(a){i.cssText=a}function D(a,b){return C(m.join(a+";")+(b||""))}function E(a,b){return typeof a===b}function F(a,b){return!!~(""+a).indexOf(b)}function G(a,b){for(var d in a)if(i[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function H(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:E(f,"function")?f.bind(d||b):f}return!1}function I(a,b,c){var d=a.charAt(0).toUpperCase()+a.substr(1),e=(a+" "+o.join(d+" ")+d).split(" ");return E(b,"string")||E(b,"undefined")?G(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),H(e,b,c))}function K(){e.input=function(c){for(var d=0,e=c.length;d",a,""].join(""),k.id=g,(l?k:m).innerHTML+=h,m.appendChild(k),l||(m.style.background="",f.appendChild(m)),i=c(k,a),l?k.parentNode.removeChild(k):m.parentNode.removeChild(m),!!i},y=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return x("@media "+b+" { #"+g+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},z=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=E(e[d],"function"),E(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),A={}.hasOwnProperty,B;!E(A,"undefined")&&!E(A.call,"undefined")?B=function(a,b){return A.call(a,b)}:B=function(a,b){return b in a&&E(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=v.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(v.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(v.call(arguments)))};return e});var J=function(c,d){var f=c.join(""),g=d.length;x(f,function(c,d){var f=b.styleSheets[b.styleSheets.length-1],h=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"",i=c.childNodes,j={};while(g--)j[i[g].id]=i[g];e.touch="ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch||(j.touch&&j.touch.offsetTop)===9,e.csstransforms3d=(j.csstransforms3d&&j.csstransforms3d.offsetLeft)===9&&j.csstransforms3d.offsetHeight===3,e.generatedcontent=(j.generatedcontent&&j.generatedcontent.offsetHeight)>=1,e.fontface=/src/i.test(h)&&h.indexOf(d.split(" ")[0])===0},g,d)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",m.join("touch-enabled),("),g,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",m.join("transform-3d),("),g,")","{#csstransforms3d{left:9px;position:absolute;height:3px;}}"].join(""),['#generatedcontent:after{content:"',k,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);r.flexbox=function(){return I("flexOrder")},r["flexbox-legacy"]=function(){return I("boxDirection")},r.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},r.canvastext=function(){return!!e.canvas&&!!E(b.createElement("canvas").getContext("2d").fillText,"function")},r.webgl=function(){try{var d=b.createElement("canvas"),e;e=!(!a.WebGLRenderingContext||!d.getContext("experimental-webgl")&&!d.getContext("webgl")),d=c}catch(f){e=!1}return e},r.touch=function(){return e.touch},r.geolocation=function(){return!!navigator.geolocation},r.postmessage=function(){return!!a.postMessage},r.websqldatabase=function(){return!!a.openDatabase},r.indexedDB=function(){return!!I("indexedDB",a)},r.hashchange=function(){return z("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},r.history=function(){return!!a.history&&!!history.pushState},r.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},r.websockets=function(){for(var b=-1,c=o.length;++b0&&g.splice(0,a);setTimeout(function(){b.parentNode.removeChild(b)},15)}}function m(a){var b,c;a.setAttribute("data-orderloaded","loaded");for(a=0;c=h[a];a++)if((b=i[c])&&b.getAttribute("data-orderloaded")==="loaded")delete i[c],require.addScriptToDom(b);else break;a>0&&h.splice(0, 7 | a)}var f=typeof document!=="undefined"&&typeof window!=="undefined"&&document.createElement("script"),n=f&&(f.async||window.opera&&Object.prototype.toString.call(window.opera)==="[object Opera]"||"MozAppearance"in document.documentElement.style),o=f&&f.readyState==="uninitialized",l=/^(complete|loaded)$/,g=[],j={},i={},h=[],f=null;define({version:"1.0.5",load:function(a,b,c,e){var d;b.nameToUrl?(d=b.nameToUrl(a,null),require.s.skipAsync[d]=!0,n||e.isBuild?b([a],c):o?(e=require.s.contexts._,!e.urlFetched[d]&& 8 | !e.loaded[a]&&(e.urlFetched[d]=!0,require.resourcesReady(!1),e.scriptCount+=1,d=require.attach(d,e,a,null,null,m),i[a]=d,h.push(a)),b([a],c)):b.specified(a)?b([a],c):(g.push({name:a,req:b,onLoad:c}),require.attach(d,null,a,k,"script/cache"))):b([a],c)}})})(); 9 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/polyfills/classList.min.js: -------------------------------------------------------------------------------- 1 | /* @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/ 2 | "use strict";if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(a){var f="classList",d="prototype",e=(a.HTMLElement||a.Element)[d],g=Object;strTrim=String[d].trim||function(){return this.replace(/^\s+|\s+$/g,"")},arrIndexOf=Array[d].indexOf||function(k){for(var j=0,h=this.length;j")&&c[0]);return a>4?a:!1}();return a},m.isInternetExplorer=function(){var a=m.isInternetExplorer.cached=typeof m.isInternetExplorer.cached!="undefined"?m.isInternetExplorer.cached:Boolean(m.getInternetExplorerMajorVersion());return a},m.emulated={pushState:!Boolean(a.history&&a.history.pushState&&a.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(e.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(e.userAgent)),hashChange:Boolean(!("onhashchange"in a||"onhashchange"in d)||m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<8)},m.enabled=!m.emulated.pushState,m.bugs={setHash:Boolean(!m.emulated.pushState&&e.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(e.userAgent)),safariPoll:Boolean(!m.emulated.pushState&&e.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(e.userAgent)),ieDoubleCheck:Boolean(m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<7)},m.isEmptyObject=function(a){for(var b in a)return!1;return!0},m.cloneObject=function(a){var b,c;return a?(b=k.stringify(a),c=k.parse(b)):c={},c},m.getRootUrl=function(){var a=d.location.protocol+"//"+(d.location.hostname||d.location.host);if(d.location.port||!1)a+=":"+d.location.port;return a+="/",a},m.getBaseHref=function(){var a=d.getElementsByTagName("base"),b=null,c="";return a.length===1&&(b=a[0],c=b.href.replace(/[^\/]+$/,"")),c=c.replace(/\/+$/,""),c&&(c+="/"),c},m.getBaseUrl=function(){var a=m.getBaseHref()||m.getBasePageUrl()||m.getRootUrl();return a},m.getPageUrl=function(){var a=m.getState(!1,!1),b=(a||{}).url||d.location.href,c;return c=b.replace(/\/+$/,"").replace(/[^\/]+$/,function(a,b,c){return/\./.test(a)?a:a+"/"}),c},m.getBasePageUrl=function(){var a=d.location.href.replace(/[#\?].*/,"").replace(/[^\/]+$/,function(a,b,c){return/[^\/]$/.test(a)?"":a}).replace(/\/+$/,"")+"/";return a},m.getFullUrl=function(a,b){var c=a,d=a.substring(0,1);return b=typeof b=="undefined"?!0:b,/[a-z]+\:\/\//.test(a)||(d==="/"?c=m.getRootUrl()+a.replace(/^\/+/,""):d==="#"?c=m.getPageUrl().replace(/#.*/,"")+a:d==="?"?c=m.getPageUrl().replace(/[\?#].*/,"")+a:b?c=m.getBaseUrl()+a.replace(/^(\.\/)+/,""):c=m.getBasePageUrl()+a.replace(/^(\.\/)+/,"")),c.replace(/\#$/,"")},m.getShortUrl=function(a){var b=a,c=m.getBaseUrl(),d=m.getRootUrl();return m.emulated.pushState&&(b=b.replace(c,"")),b=b.replace(d,"/"),m.isTraditionalAnchor(b)&&(b="./"+b),b=b.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),b},m.store={},m.idToState=m.idToState||{},m.stateToId=m.stateToId||{},m.urlToId=m.urlToId||{},m.storedStates=m.storedStates||[],m.savedStates=m.savedStates||[],m.normalizeStore=function(){m.store.idToState=m.store.idToState||{},m.store.urlToId=m.store.urlToId||{},m.store.stateToId=m.store.stateToId||{}},m.getState=function(a,b){typeof a=="undefined"&&(a=!0),typeof b=="undefined"&&(b=!0);var c=m.getLastSavedState();return!c&&b&&(c=m.createStateObject()),a&&(c=m.cloneObject(c),c.url=c.cleanUrl||c.url),c},m.getIdByState=function(a){var b=m.extractId(a.url),c;if(!b){c=m.getStateString(a);if(typeof m.stateToId[c]!="undefined")b=m.stateToId[c];else if(typeof m.store.stateToId[c]!="undefined")b=m.store.stateToId[c];else{for(;;){b=(new Date).getTime()+String(Math.random()).replace(/\D/g,"");if(typeof m.idToState[b]=="undefined"&&typeof m.store.idToState[b]=="undefined")break}m.stateToId[c]=b,m.idToState[b]=a}}return b},m.normalizeState=function(a){var b,c;if(!a||typeof a!="object")a={};if(typeof a.normalized!="undefined")return a;if(!a.data||typeof a.data!="object")a.data={};b={},b.normalized=!0,b.title=a.title||"",b.url=m.getFullUrl(m.unescapeString(a.url||d.location.href)),b.hash=m.getShortUrl(b.url),b.data=m.cloneObject(a.data),b.id=m.getIdByState(b),b.cleanUrl=b.url.replace(/\??\&_suid.*/,""),b.url=b.cleanUrl,c=!m.isEmptyObject(b.data);if(b.title||c)b.hash=m.getShortUrl(b.url).replace(/\??\&_suid.*/,""),/\?/.test(b.hash)||(b.hash+="?"),b.hash+="&_suid="+b.id;return b.hashedUrl=m.getFullUrl(b.hash),(m.emulated.pushState||m.bugs.safariPoll)&&m.hasUrlDuplicate(b)&&(b.url=b.hashedUrl),b},m.createStateObject=function(a,b,c){var d={data:a,title:b,url:c};return d=m.normalizeState(d),d},m.getStateById=function(a){a=String(a);var c=m.idToState[a]||m.store.idToState[a]||b;return c},m.getStateString=function(a){var b,c,d;return b=m.normalizeState(a),c={data:b.data,title:a.title,url:a.url},d=k.stringify(c),d},m.getStateId=function(a){var b,c;return b=m.normalizeState(a),c=b.id,c},m.getHashByState=function(a){var b,c;return b=m.normalizeState(a),c=b.hash,c},m.extractId=function(a){var b,c,d;return c=/(.*)\&_suid=([0-9]+)$/.exec(a),d=c?c[1]||a:a,b=c?String(c[2]||""):"",b||!1},m.isTraditionalAnchor=function(a){var b=!/[\/\?\.]/.test(a);return b},m.extractState=function(a,b){var c=null,d,e;return b=b||!1,d=m.extractId(a),d&&(c=m.getStateById(d)),c||(e=m.getFullUrl(a),d=m.getIdByUrl(e)||!1,d&&(c=m.getStateById(d)),!c&&b&&!m.isTraditionalAnchor(a)&&(c=m.createStateObject(null,null,e))),c},m.getIdByUrl=function(a){var c=m.urlToId[a]||m.store.urlToId[a]||b;return c},m.getLastSavedState=function(){return m.savedStates[m.savedStates.length-1]||b},m.getLastStoredState=function(){return m.storedStates[m.storedStates.length-1]||b},m.hasUrlDuplicate=function(a){var b=!1,c;return c=m.extractState(a.url),b=c&&c.id!==a.id,b},m.storeState=function(a){return m.urlToId[a.url]=a.id,m.storedStates.push(m.cloneObject(a)),a},m.isLastSavedState=function(a){var b=!1,c,d,e;return m.savedStates.length&&(c=a.id,d=m.getLastSavedState(),e=d.id,b=c===e),b},m.saveState=function(a){return m.isLastSavedState(a)?!1:(m.savedStates.push(m.cloneObject(a)),!0)},m.getStateByIndex=function(a){var b=null;return typeof a=="undefined"?b=m.savedStates[m.savedStates.length-1]:a<0?b=m.savedStates[m.savedStates.length+a]:b=m.savedStates[a],b},m.getHash=function(){var a=m.unescapeHash(d.location.hash);return a},m.unescapeString=function(b){var c=b,d;for(;;){d=a.unescape(c);if(d===c)break;c=d}return c},m.unescapeHash=function(a){var b=m.normalizeHash(a);return b=m.unescapeString(b),b},m.normalizeHash=function(a){var b=a.replace(/[^#]*#/,"").replace(/#.*/,"");return b},m.setHash=function(a,b){var c,e,f;return b!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.setHash,args:arguments,queue:b}),!1):(c=m.escapeHash(a),m.busy(!0),e=m.extractState(a,!0),e&&!m.emulated.pushState?m.pushState(e.data,e.title,e.url,!1):d.location.hash!==c&&(m.bugs.setHash?(f=m.getPageUrl(),m.pushState(null,null,f+"#"+c,!1)):d.location.hash=c),m)},m.escapeHash=function(b){var c=m.normalizeHash(b);return c=a.escape(c),m.bugs.hashEscape||(c=c.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),c},m.getHashByUrl=function(a){var b=String(a).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return b=m.unescapeHash(b),b},m.setTitle=function(a){var b=a.title,c;b||(c=m.getStateByIndex(0),c&&c.url===a.url&&(b=c.title||m.options.initialTitle));try{d.getElementsByTagName("title")[0].innerHTML=b.replace("<","<").replace(">",">").replace(" & "," & ")}catch(e){}return d.title=b,m},m.queues=[],m.busy=function(a){typeof a!="undefined"?m.busy.flag=a:typeof m.busy.flag=="undefined"&&(m.busy.flag=!1);if(!m.busy.flag){h(m.busy.timeout);var b=function(){var a,c,d;if(m.busy.flag)return;for(a=m.queues.length-1;a>=0;--a){c=m.queues[a];if(c.length===0)continue;d=c.shift(),m.fireQueueItem(d),m.busy.timeout=g(b,m.options.busyDelay)}};m.busy.timeout=g(b,m.options.busyDelay)}return m.busy.flag},m.busy.flag=!1,m.fireQueueItem=function(a){return a.callback.apply(a.scope||m,a.args||[])},m.pushQueue=function(a){return m.queues[a.queue||0]=m.queues[a.queue||0]||[],m.queues[a.queue||0].push(a),m},m.queue=function(a,b){return typeof a=="function"&&(a={callback:a}),typeof b!="undefined"&&(a.queue=b),m.busy()?m.pushQueue(a):m.fireQueueItem(a),m},m.clearQueue=function(){return m.busy.flag=!1,m.queues=[],m},m.stateChanged=!1,m.doubleChecker=!1,m.doubleCheckComplete=function(){return m.stateChanged=!0,m.doubleCheckClear(),m},m.doubleCheckClear=function(){return m.doubleChecker&&(h(m.doubleChecker),m.doubleChecker=!1),m},m.doubleCheck=function(a){return m.stateChanged=!1,m.doubleCheckClear(),m.bugs.ieDoubleCheck&&(m.doubleChecker=g(function(){return m.doubleCheckClear(),m.stateChanged||a(),!0},m.options.doubleCheckInterval)),m},m.safariStatePoll=function(){var b=m.extractState(d.location.href),c;if(!m.isLastSavedState(b))c=b;else return;return c||(c=m.createStateObject()),m.Adapter.trigger(a,"popstate"),m},m.back=function(a){return a!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.back,args:arguments,queue:a}),!1):(m.busy(!0),m.doubleCheck(function(){m.back(!1)}),n.go(-1),!0)},m.forward=function(a){return a!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.forward,args:arguments,queue:a}),!1):(m.busy(!0),m.doubleCheck(function(){m.forward(!1)}),n.go(1),!0)},m.go=function(a,b){var c;if(a>0)for(c=1;c<=a;++c)m.forward(b);else{if(!(a<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(c=-1;c>=a;--c)m.back(b)}return m};if(m.emulated.pushState){var o=function(){};m.pushState=m.pushState||o,m.replaceState=m.replaceState||o}else m.onPopState=function(b,c){var e=!1,f=!1,g,h;return m.doubleCheckComplete(),g=m.getHash(),g?(h=m.extractState(g||d.location.href,!0),h?m.replaceState(h.data,h.title,h.url,!1):(m.Adapter.trigger(a,"anchorchange"),m.busy(!1)),m.expectedStateId=!1,!1):(e=m.Adapter.extractEventData("state",b,c)||!1,e?f=m.getStateById(e):m.expectedStateId?f=m.getStateById(m.expectedStateId):f=m.extractState(d.location.href),f||(f=m.createStateObject(null,null,d.location.href)),m.expectedStateId=!1,m.isLastSavedState(f)?(m.busy(!1),!1):(m.storeState(f),m.saveState(f),m.setTitle(f),m.Adapter.trigger(a,"statechange"),m.busy(!1),!0))},m.Adapter.bind(a,"popstate",m.onPopState),m.pushState=function(b,c,d,e){if(m.getHashByUrl(d)&&m.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(e!==!1&&m.busy())return m.pushQueue({scope:m,callback:m.pushState,args:arguments,queue:e}),!1;m.busy(!0);var f=m.createStateObject(b,c,d);return m.isLastSavedState(f)?m.busy(!1):(m.storeState(f),m.expectedStateId=f.id,n.pushState(f.id,f.title,f.url),m.Adapter.trigger(a,"popstate")),!0},m.replaceState=function(b,c,d,e){if(m.getHashByUrl(d)&&m.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(e!==!1&&m.busy())return m.pushQueue({scope:m,callback:m.replaceState,args:arguments,queue:e}),!1;m.busy(!0);var f=m.createStateObject(b,c,d);return m.isLastSavedState(f)?m.busy(!1):(m.storeState(f),m.expectedStateId=f.id,n.replaceState(f.id,f.title,f.url),m.Adapter.trigger(a,"popstate")),!0};if(f){try{m.store=k.parse(f.getItem("History.store"))||{}}catch(p){m.store={}}m.normalizeStore()}else m.store={},m.normalizeStore();m.Adapter.bind(a,"beforeunload",m.clearAllIntervals),m.Adapter.bind(a,"unload",m.clearAllIntervals),m.saveState(m.storeState(m.extractState(d.location.href,!0))),f&&(m.onUnload=function(){var a,b;try{a=k.parse(f.getItem("History.store"))||{}}catch(c){a={}}a.idToState=a.idToState||{},a.urlToId=a.urlToId||{},a.stateToId=a.stateToId||{};for(b in m.idToState){if(!m.idToState.hasOwnProperty(b))continue;a.idToState[b]=m.idToState[b]}for(b in m.urlToId){if(!m.urlToId.hasOwnProperty(b))continue;a.urlToId[b]=m.urlToId[b]}for(b in m.stateToId){if(!m.stateToId.hasOwnProperty(b))continue;a.stateToId[b]=m.stateToId[b]}m.store=a,m.normalizeStore(),f.setItem("History.store",k.stringify(a))},m.intervalList.push(i(m.onUnload,m.options.storeInterval)),m.Adapter.bind(a,"beforeunload",m.onUnload),m.Adapter.bind(a,"unload",m.onUnload));if(!m.emulated.pushState){m.bugs.safariPoll&&m.intervalList.push(i(m.safariStatePoll,m.options.safariPollInterval));if(e.vendor==="Apple Computer, Inc."||(e.appCodeName||"")==="Mozilla")m.Adapter.bind(a,"hashchange",function(){m.Adapter.trigger(a,"popstate")}),m.getHash()&&m.Adapter.onDomLoad(function(){m.Adapter.trigger(a,"hashchange")})}},m.init()})(window) -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-apollo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/js/prettify/lang-apollo.js -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-clj.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2011 Google Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | var a=null; 17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a], 18 | ["typ",/^:[\dA-Za-z-]+/]]),["clj"]); 19 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-css.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com", 2 | /^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-go.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/js/prettify/lang-go.js -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-hs.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n \r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, 2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); 3 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-lisp.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], 3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","scm"]); 4 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-lua.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/js/prettify/lang-lua.js -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-ml.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/js/prettify/lang-ml.js -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-n.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\xa0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/, 3 | a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, 4 | a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]); 5 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-proto.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); 2 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-scala.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/js/prettify/lang-scala.js -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-sql.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/js/prettify/lang-sql.js -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-tex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/js/prettify/lang-tex.js -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-vb.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/js/prettify/lang-vb.js -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-vhdl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/js/prettify/lang-vhdl.js -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-wiki.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/js/prettify/lang-wiki.js -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/lang-yaml.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); 3 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} -------------------------------------------------------------------------------- /peterlubbers-owc4/js/prettify/prettify.js: -------------------------------------------------------------------------------- 1 | var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; 2 | (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= 3 | [],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), 9 | l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, 10 | q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, 11 | q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, 12 | "");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), 13 | a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} 14 | for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], 18 | "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], 19 | H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], 20 | J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ 21 | I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), 22 | ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", 23 | /^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), 24 | ["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", 25 | hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= 26 | !k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p0&&(g.splice(m-1,2),m-=2);m=q.pkgs[g=b[0]];b=b.join("/");m&&b===g+"/"+m.main&&(b=g)}else b.indexOf("./")=== 9 | 0&&(b=b.substring(2));return b}function l(b,f){var g=b?b.indexOf("!"):-1,m=null,a=f?f.name:null,h=b,e,d;g!==-1&&(m=b.substring(0,g),b=b.substring(g+1,b.length));m&&(m=c(m,a));b&&(m?e=(g=n[m])&&g.normalize?g.normalize(b,function(b){return c(b,a)}):c(b,a):(e=c(b,a),d=G[e],d||(d=i.nameToUrl(b,null,f),G[e]=d)));return{prefix:m,name:e,parentMap:f,url:d,originalName:h,fullName:m?m+"!"+(e||""):e}}function j(){var b=!0,f=q.priorityWait,g,a;if(f){for(a=0;g=f[a];a++)if(!s[g]){b=!1;break}b&&delete q.priorityWait}return b} 10 | function k(b,f,g){return function(){var a=ha.call(arguments,0),c;if(g&&K(c=a[a.length-1]))c.__requireJsBuild=!0;a.push(f);return b.apply(null,a)}}function t(b,f,g){f=k(g||i.require,b,f);$(f,{nameToUrl:k(i.nameToUrl,b),toUrl:k(i.toUrl,b),defined:k(i.requireDefined,b),specified:k(i.requireSpecified,b),isBrowser:d.isBrowser});return f}function p(b){var f,g,a,c=b.callback,h=b.map,e=h.fullName,ca=b.deps;a=b.listeners;var j=q.requireExecCb||d.execCb;if(c&&K(c)){if(q.catchError.define)try{g=j(e,b.callback, 11 | ca,n[e])}catch(k){f=k}else g=j(e,b.callback,ca,n[e]);if(e)(c=b.cjsModule)&&c.exports!==r&&c.exports!==n[e]?g=n[e]=b.cjsModule.exports:g===r&&b.usingExports?g=n[e]:(n[e]=g,H[e]&&(T[e]=!0))}else e&&(g=n[e]=c,H[e]&&(T[e]=!0));if(x[b.id])delete x[b.id],b.isDone=!0,i.waitCount-=1,i.waitCount===0&&(J=[]);delete M[e];if(d.onResourceLoad&&!b.placeholder)d.onResourceLoad(i,h,b.depArray);if(f)return g=(e?l(e).url:"")||f.fileName||f.sourceURL,a=f.moduleTree,f=P("defineerror",'Error evaluating module "'+e+'" at location "'+ 12 | g+'":\n'+f+"\nfileName:"+g+"\nlineNumber: "+(f.lineNumber||f.line),f),f.moduleName=e,f.moduleTree=a,d.onError(f);for(f=0;c=a[f];f++)c(g);return r}function u(b,f){return function(g){b.depDone[f]||(b.depDone[f]=!0,b.deps[f]=g,b.depCount-=1,b.depCount||p(b))}}function o(b,f){var g=f.map,a=g.fullName,c=g.name,h=N[b]||(N[b]=n[b]),e;if(!f.loading)f.loading=!0,e=function(b){f.callback=function(){return b};p(f);s[f.id]=!0;A()},e.fromText=function(b,f){var g=Q;s[b]=!1;i.scriptCount+=1;i.fake[b]=!0;g&&(Q=!1); 13 | d.exec(f);g&&(Q=!0);i.completeLoad(b)},a in n?e(n[a]):h.load(c,t(g.parentMap,!0,function(b,a){var c=[],e,m;for(e=0;m=b[e];e++)m=l(m,g.parentMap),b[e]=m.fullName,m.prefix||c.push(b[e]);f.moduleDeps=(f.moduleDeps||[]).concat(c);return i.require(b,a)}),e,q)}function y(b){x[b.id]||(x[b.id]=b,J.push(b),i.waitCount+=1)}function D(b){this.listeners.push(b)}function v(b,f){var g=b.fullName,a=b.prefix,c=a?N[a]||(N[a]=n[a]):null,h,e;g&&(h=M[g]);if(!h&&(e=!0,h={id:(a&&!c?O++ +"__p@:":"")+(g||"__r@"+O++),map:b, 14 | depCount:0,depDone:[],depCallbacks:[],deps:[],listeners:[],add:D},B[h.id]=!0,g&&(!a||N[a])))M[g]=h;a&&!c?(g=l(a),a in n&&!n[a]&&(delete n[a],delete R[g.url]),a=v(g,!0),a.add(function(){var f=l(b.originalName,b.parentMap),f=v(f,!0);h.placeholder=!0;f.add(function(b){h.callback=function(){return b};p(h)})})):e&&f&&(s[h.id]=!1,i.paused.push(h),y(h));return h}function C(b,f,a,c){var b=l(b,c),d=b.name,h=b.fullName,e=v(b),j=e.id,k=e.deps,o;if(h){if(h in n||s[j]===!0||h==="jquery"&&q.jQuery&&q.jQuery!== 15 | a().fn.jquery)return;B[j]=!0;s[j]=!0;h==="jquery"&&a&&W(a())}e.depArray=f;e.callback=a;for(a=0;a0)return r;if(q.priorityWait)if(j())A();else return r;for(h in s)if(!(h in L)&&(c=!0,!s[h]))if(b)a+=h+" ";else if(l=!0,h.indexOf("!")===-1){k=[];break}else(e=M[h]&&M[h].moduleDeps)&&k.push.apply(k,e);if(!c&&!i.waitCount)return r;if(b&&a)return b=P("timeout","Load timeout for modules: "+a),b.requireType="timeout",b.requireModules=a,b.contextName=i.contextName,d.onError(b); 18 | if(l&&k.length)for(a=0;h=x[k[a]];a++)if(h=F(h,{})){z(h,{});break}if(!b&&(l||i.scriptCount)){if((I||da)&&!X)X=setTimeout(function(){X=0;E()},50);return r}if(i.waitCount){for(a=0;h=J[a];a++)z(h,{});i.paused.length&&A();Y<5&&(Y+=1,E())}Y=0;d.checkReadyState();return r}var i,A,q={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},catchError:{}},S=[],B={require:!0,exports:!0,module:!0},G={},n={},s={},x={},J=[],R={},O=0,M={},N={},H={},T={},Z=0;W=function(b){if(!i.jQuery&&(b=b||(typeof jQuery!=="undefined"?jQuery: 19 | null))&&!(q.jQuery&&b.fn.jquery!==q.jQuery)&&("holdReady"in b||"readyWait"in b))if(i.jQuery=b,w(["jquery",[],function(){return jQuery}]),i.scriptCount)V(b,!0),i.jQueryIncremented=!0};A=function(){var b,a,c,l,k,h;i.takeGlobalQueue();Z+=1;if(i.scriptCount<=0)i.scriptCount=0;for(;S.length;)if(b=S.shift(),b[0]===null)return d.onError(P("mismatch","Mismatched anonymous define() module: "+b[b.length-1]));else w(b);if(!q.priorityWait||j())for(;i.paused.length;){k=i.paused;i.pausedCount+=k.length;i.paused= 20 | [];for(l=0;b=k[l];l++)a=b.map,c=a.url,h=a.fullName,a.prefix?o(a.prefix,b):!R[c]&&!s[h]&&((q.requireLoad||d.load)(i,h,c),c.indexOf("empty:")!==0&&(R[c]=!0));i.startTime=(new Date).getTime();i.pausedCount-=k.length}Z===1&&E();Z-=1;return r};i={contextName:a,config:q,defQueue:S,waiting:x,waitCount:0,specified:B,loaded:s,urlMap:G,urlFetched:R,scriptCount:0,defined:n,paused:[],pausedCount:0,plugins:N,needFullExec:H,fake:{},fullExec:T,managerCallbacks:M,makeModuleMap:l,normalize:c,configure:function(b){var a, 21 | c,d;b.baseUrl&&b.baseUrl.charAt(b.baseUrl.length-1)!=="/"&&(b.baseUrl+="/");a=q.paths;d=q.pkgs;$(q,b,!0);if(b.paths){for(c in b.paths)c in L||(a[c]=b.paths[c]);q.paths=a}if((a=b.packagePaths)||b.packages){if(a)for(c in a)c in L||aa(d,a[c],c);b.packages&&aa(d,b.packages);q.pkgs=d}if(b.priority)c=i.requireWait,i.requireWait=!1,A(),i.require(b.priority),A(),i.requireWait=c,q.priorityWait=b.priority;if(b.deps||b.callback)i.require(b.deps||[],b.callback)},requireDefined:function(b,a){return l(b,a).fullName in 22 | n},requireSpecified:function(b,a){return l(b,a).fullName in B},require:function(b,c,g){if(typeof b==="string"){if(K(c))return d.onError(P("requireargs","Invalid require call"));if(d.get)return d.get(i,b,c);c=l(b,c);b=c.fullName;return!(b in n)?d.onError(P("notloaded","Module name '"+c.fullName+"' has not been loaded yet for context: "+a)):n[b]}(b&&b.length||c)&&C(null,b,c,g);if(!i.requireWait)for(;!i.scriptCount&&i.paused.length;)A();return i.require},takeGlobalQueue:function(){U.length&&(ja.apply(i.defQueue, 23 | [i.defQueue.length-1,0].concat(U)),U=[])},completeLoad:function(b){var a;for(i.takeGlobalQueue();S.length;)if(a=S.shift(),a[0]===null){a[0]=b;break}else if(a[0]===b)break;else w(a),a=null;a?w(a):w([b,[],b==="jquery"&&typeof jQuery!=="undefined"?function(){return jQuery}:null]);d.isAsync&&(i.scriptCount-=1);A();d.isAsync||(i.scriptCount-=1)},toUrl:function(b,a){var c=b.lastIndexOf("."),d=null;c!==-1&&(d=b.substring(c,b.length),b=b.substring(0,c));return i.nameToUrl(b,d,a)},nameToUrl:function(b,a,g){var l, 24 | k,h,e,j=i.config,b=c(b,g&&g.fullName);if(d.jsExtRegExp.test(b))a=b+(a?a:"");else{l=j.paths;k=j.pkgs;g=b.split("/");for(e=g.length;e>0;e--)if(h=g.slice(0,e).join("/"),l[h]){g.splice(0,e,l[h]);break}else if(h=k[h]){b=b===h.name?h.location+"/"+h.main:h.location;g.splice(0,e,b);break}a=g.join("/")+(a||".js");a=(a.charAt(0)==="/"||a.match(/^[\w\+\.\-]+:/)?"":j.baseUrl)+a}return j.urlArgs?a+((a.indexOf("?")===-1?"?":"&")+j.urlArgs):a}};i.jQueryCheck=W;i.resume=A;return i}function ka(){var a,c,d;if(C&&C.readyState=== 25 | "interactive")return C;a=document.getElementsByTagName("script");for(c=a.length-1;c>-1&&(d=a[c]);c--)if(d.readyState==="interactive")return C=d;return null}var la=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ma=/require\(\s*["']([^'"\s]+)["']\s*\)/g,fa=/^\.\//,ba=/\.js$/,O=Object.prototype.toString,u=Array.prototype,ha=u.slice,ja=u.splice,I=!!(typeof window!=="undefined"&&navigator&&document),da=!I&&typeof importScripts!=="undefined",na=I&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/, 26 | ea=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",L={},D={},U=[],C=null,Y=0,Q=!1,ia={require:!0,module:!0,exports:!0},d,u={},J,y,v,E,o,w,F,B,z,W,X;if(typeof define==="undefined"){if(typeof requirejs!=="undefined")if(K(requirejs))return;else u=requirejs,requirejs=r;typeof require!=="undefined"&&!K(require)&&(u=require,require=r);d=requirejs=function(a,c,d){var j="_",k;!G(a)&&typeof a!=="string"&&(k=a,G(c)?(a=c,c=d):a=[]);if(k&&k.context)j=k.context;d=D[j]||(D[j]=ga(j));k&&d.configure(k); 27 | return d.require(a,c)};d.config=function(a){return d(a)};require||(require=d);d.toUrl=function(a){return D._.toUrl(a)};d.version="1.0.8";d.jsExtRegExp=/^\/|:|\?|\.js$/;y=d.s={contexts:D,skipAsync:{}};if(d.isAsync=d.isBrowser=I)if(v=y.head=document.getElementsByTagName("head")[0],E=document.getElementsByTagName("base")[0])v=y.head=E.parentNode;d.onError=function(a){throw a;};d.load=function(a,c,l){d.resourcesReady(!1);a.scriptCount+=1;d.attach(l,a,c);if(a.jQuery&&!a.jQueryIncremented)V(a.jQuery,!0), 28 | a.jQueryIncremented=!0};define=function(a,c,d){var j,k;typeof a!=="string"&&(d=c,c=a,a=null);G(c)||(d=c,c=[]);!c.length&&K(d)&&d.length&&(d.toString().replace(la,"").replace(ma,function(a,d){c.push(d)}),c=(d.length===1?["require"]:["require","exports","module"]).concat(c));if(Q&&(j=J||ka()))a||(a=j.getAttribute("data-requiremodule")),k=D[j.getAttribute("data-requirecontext")];(k?k.defQueue:U).push([a,c,d]);return r};define.amd={multiversion:!0,plugins:!0,jQuery:!0};d.exec=function(a){return eval(a)}; 29 | d.execCb=function(a,c,d,j){return c.apply(j,d)};d.addScriptToDom=function(a){J=a;E?v.insertBefore(a,E):v.appendChild(a);J=null};d.onScriptLoad=function(a){var c=a.currentTarget||a.srcElement,l;if(a.type==="load"||c&&na.test(c.readyState))C=null,a=c.getAttribute("data-requirecontext"),l=c.getAttribute("data-requiremodule"),D[a].completeLoad(l),c.detachEvent&&!ea?c.detachEvent("onreadystatechange",d.onScriptLoad):c.removeEventListener("load",d.onScriptLoad,!1)};d.attach=function(a,c,l,j,k,o){var p; 30 | if(I)return j=j||d.onScriptLoad,p=c&&c.config&&c.config.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),p.type=k||c&&c.config.scriptType||"text/javascript",p.charset="utf-8",p.async=!y.skipAsync[a],c&&p.setAttribute("data-requirecontext",c.contextName),p.setAttribute("data-requiremodule",l),p.attachEvent&&!(p.attachEvent.toString&&p.attachEvent.toString().indexOf("[native code]")<0)&&!ea?(Q=!0,o?p.onreadystatechange=function(){if(p.readyState=== 31 | "loaded")p.onreadystatechange=null,p.attachEvent("onreadystatechange",j),o(p)}:p.attachEvent("onreadystatechange",j)):p.addEventListener("load",j,!1),p.src=a,o||d.addScriptToDom(p),p;else da&&(importScripts(a),c.completeLoad(l));return null};if(I){o=document.getElementsByTagName("script");for(B=o.length-1;B>-1&&(w=o[B]);B--){if(!v)v=w.parentNode;if(F=w.getAttribute("data-main")){if(!u.baseUrl)o=F.split("/"),w=o.pop(),o=o.length?o.join("/")+"/":"./",u.baseUrl=o,F=w.replace(ba,"");u.deps=u.deps?u.deps.concat(F): 32 | [F];break}}}d.checkReadyState=function(){var a=y.contexts,c;for(c in a)if(!(c in L)&&a[c].waitCount)return;d.resourcesReady(!0)};d.resourcesReady=function(a){var c,l;d.resourcesDone=a;if(d.resourcesDone)for(l in a=y.contexts,a)if(!(l in L)&&(c=a[l],c.jQueryIncremented))V(c.jQuery,!1),c.jQueryIncremented=!1};d.pageLoaded=function(){if(document.readyState!=="complete")document.readyState="complete"};if(I&&document.addEventListener&&!document.readyState)document.readyState="loading",window.addEventListener("load", 33 | d.pageLoaded,!1);d(u);if(d.isAsync&&typeof setTimeout!=="undefined")z=y.contexts[u.context||"_"],z.requireWait=!0,setTimeout(function(){z.requireWait=!1;z.scriptCount||z.resume();d.checkReadyState()},0)}})(); 34 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/slide-controller.js: -------------------------------------------------------------------------------- 1 | (function(window) { 2 | 3 | var ORIGIN_ = location.protocol + '//' + location.host; 4 | 5 | function SlideController() { 6 | this.popup = null; 7 | this.isPopup = window.opener; 8 | 9 | if (this.setupDone()) { 10 | window.addEventListener('message', this.onMessage_.bind(this), false); 11 | 12 | // Close popups if we reload the main window. 13 | window.addEventListener('beforeunload', function(e) { 14 | if (this.popup) { 15 | this.popup.close(); 16 | } 17 | }.bind(this), false); 18 | } 19 | } 20 | 21 | SlideController.PRESENTER_MODE_PARAM = 'presentme'; 22 | 23 | SlideController.prototype.setupDone = function() { 24 | var params = location.search.substring(1).split('&').map(function(el) { 25 | return el.split('='); 26 | }); 27 | 28 | var presentMe = null; 29 | for (var i = 0, param; param = params[i]; ++i) { 30 | if (param[0].toLowerCase() == SlideController.PRESENTER_MODE_PARAM) { 31 | presentMe = param[1] == 'true'; 32 | break; 33 | } 34 | } 35 | 36 | if (presentMe !== null) { 37 | localStorage.ENABLE_PRESENTOR_MODE = presentMe; 38 | // TODO: use window.history.pushState to update URL instead of the redirect. 39 | if (window.history.replaceState) { 40 | window.history.replaceState({}, '', location.pathname); 41 | } else { 42 | location.replace(location.pathname); 43 | return false; 44 | } 45 | } 46 | 47 | var enablePresenterMode = localStorage.getItem('ENABLE_PRESENTOR_MODE'); 48 | if (enablePresenterMode && JSON.parse(enablePresenterMode)) { 49 | // Only open popup from main deck. Don't want recursive popup opening! 50 | if (!this.isPopup) { 51 | var opts = 'menubar=no,location=yes,resizable=yes,scrollbars=no,status=no'; 52 | this.popup = window.open(location.href, 'mywindow', opts); 53 | 54 | // Loading in the popup? Trigger the hotkey for turning presenter mode on. 55 | this.popup.addEventListener('load', function(e) { 56 | var evt = this.popup.document.createEvent('Event'); 57 | evt.initEvent('keydown', true, true); 58 | evt.keyCode = 'P'.charCodeAt(0); 59 | this.popup.document.dispatchEvent(evt); 60 | // this.popup.document.body.classList.add('with-notes'); 61 | // document.body.classList.add('popup'); 62 | }.bind(this), false); 63 | } 64 | } 65 | 66 | return true; 67 | } 68 | 69 | SlideController.prototype.onMessage_ = function(e) { 70 | var data = e.data; 71 | 72 | // Restrict messages to being from this origin. Allow local developmet 73 | // from file:// though. 74 | // TODO: It would be dope if FF implemented location.origin! 75 | if (e.origin != ORIGIN_ && ORIGIN_.indexOf('file://') != 0) { 76 | alert('Someone tried to postMessage from an unknown origin'); 77 | return; 78 | } 79 | 80 | // if (e.source.location.hostname != 'localhost') { 81 | // alert('Someone tried to postMessage from an unknown origin'); 82 | // return; 83 | // } 84 | 85 | if ('keyCode' in data) { 86 | var evt = document.createEvent('Event'); 87 | evt.initEvent('keydown', true, true); 88 | evt.keyCode = data.keyCode; 89 | document.dispatchEvent(evt); 90 | } 91 | }; 92 | 93 | SlideController.prototype.sendMsg = function(msg) { 94 | // // Send message to popup window. 95 | // if (this.popup) { 96 | // this.popup.postMessage(msg, ORIGIN_); 97 | // } 98 | 99 | // Send message to main window. 100 | if (this.isPopup) { 101 | // TODO: It would be dope if FF implemented location.origin. 102 | window.opener.postMessage(msg, '*'); 103 | } 104 | }; 105 | 106 | window.SlideController = SlideController; 107 | 108 | })(window); 109 | 110 | -------------------------------------------------------------------------------- /peterlubbers-owc4/js/slides.js: -------------------------------------------------------------------------------- 1 | require(['order!../slide_config', 'order!modernizr.custom.45394', 2 | 'order!prettify/prettify', 'order!hammer', 'order!slide-controller', 3 | 'order!slide-deck', 'order!app'], function(someModule) { 4 | 5 | }); 6 | -------------------------------------------------------------------------------- /peterlubbers-owc4/slide_config.js: -------------------------------------------------------------------------------- 1 | var SLIDE_CONFIG = { 2 | // Slide settings 3 | settings: { 4 | title: 'ApplicationCache', 5 | subtitle: 'Building Offline Web Applications with', 6 | useBuilds: true, // Default: true. False will turn off slide animation builds. 7 | usePrettify: true, // Default: true 8 | enableSlideAreas: true, // Default: true. False turns off the click areas on either slide of the slides. 9 | enableTouch: true, // Default: true. If touch support should enabled. Note: the device must support touch. 10 | //analytics: 'UA-32630298-1', 11 | favIcon: 'images/chrome-logo-tiny.png', 12 | fonts: [ 13 | 'Open Sans:regular,semibold,italic,italicsemibold', 14 | 'Inconsolata', 15 | 'Cabin Sketch:400', 16 | 'Muli' 17 | ], 18 | //theme: ['mytheme'], // Add your own custom themes or styles in /theme/css. Leave off the .css extension. 19 | }, 20 | 21 | // Author information 22 | presenters: [{ 23 | name: 'Peter Lubbers', 24 | title: 'Programs Manager, Google Chrome', 25 | company: 'Program Manager, Google Chrome', 26 | twitter: '@peterlubbers', 27 | www: 'http://www.prohtml5.com/', 28 | github: 'https://github.com/peterlubbers' 29 | }] 30 | }; 31 | 32 | -------------------------------------------------------------------------------- /peterlubbers-owc4/theme/css/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shinypb/appcachefacts/ed01b81093cb611446e142e73f5c48ec75f7d29f/peterlubbers-owc4/theme/css/.DS_Store -------------------------------------------------------------------------------- /peterlubbers-owc4/theme/css/phone.css: -------------------------------------------------------------------------------- 1 | slides>slide{-webkit-transition:none !important;-webkit-transition:none !important;-moz-transition:none !important;-ms-transition:none !important;-o-transition:none !important;transition:none !important} 2 | -------------------------------------------------------------------------------- /peterlubbers-owc4/theme/scss/_base.scss: -------------------------------------------------------------------------------- 1 | @import "compass/reset"; 2 | @import "compass/css3/border-radius"; 3 | @import "compass/css3/box"; 4 | @import "compass/css3/box-shadow"; 5 | @import "compass/css3/box-sizing"; 6 | @import "compass/css3/images"; 7 | @import "compass/css3/text-shadow"; 8 | @import "compass/css3/background-size"; 9 | @import "compass/css3/transform"; 10 | @import "compass/css3/transition"; 11 | 12 | @import "variables"; 13 | 14 | /** 15 | * Base SlideDeck Styles 16 | */ 17 | html { 18 | height: 100%; 19 | overflow: hidden; 20 | } 21 | 22 | body { 23 | margin: 0; 24 | padding: 0; 25 | 26 | opacity: 0; 27 | 28 | height: 100%; 29 | min-height: 740px; 30 | width: 100%; 31 | 32 | overflow: hidden; 33 | 34 | color: #fff; 35 | @include font-smoothing(antialiased); 36 | @include transition(opacity 800ms ease-in 100ms); // Add small delay to prevent jank. 37 | 38 | &.loaded { 39 | opacity: 1 !important; 40 | } 41 | } 42 | 43 | input, button { 44 | vertical-align: middle; 45 | } 46 | 47 | slides > slide[hidden] { 48 | display: none !important; 49 | } 50 | 51 | slides { 52 | width: 100%; 53 | height: 100%; 54 | position: absolute; 55 | left: 0; 56 | top: 0; 57 | @include transform(translate3d(0, 0, 0)); 58 | @include perspective(1000); 59 | @include transform-style(preserve-3d); 60 | @include transition(opacity 800ms ease-in 100ms); // Add small delay to prevent jank. 61 | } 62 | 63 | slides > slide { 64 | display: block; 65 | position: absolute; 66 | overflow: hidden; 67 | left: 50%; 68 | top: 50%; 69 | @include box-sizing(border-box); 70 | } 71 | 72 | /* Slide styles */ 73 | 74 | 75 | /*article.fill iframe { 76 | position: absolute; 77 | left: 0; 78 | top: 0; 79 | width: 100%; 80 | height: 100%; 81 | 82 | border: 0; 83 | margin: 0; 84 | 85 | @include border-radius(10px); 86 | 87 | z-index: -1; 88 | } 89 | 90 | slide.fill { 91 | background-repeat: no-repeat; 92 | @include background-size(cover); 93 | } 94 | 95 | slide.fill img { 96 | position: absolute; 97 | left: 0; 98 | top: 0; 99 | min-width: 100%; 100 | min-height: 100%; 101 | 102 | z-index: -1; 103 | } 104 | */ 105 | -------------------------------------------------------------------------------- /peterlubbers-owc4/theme/scss/_variables.scss: -------------------------------------------------------------------------------- 1 | $social-tags: 'htmlfivecan.com \00a0\00a0\00a0 #io12'; 2 | $brand-small-icon-size: 30px; 3 | 4 | $gray-1: #e6e6e6; 5 | $gray-2: #a9a9a9; 6 | $gray-3: #797979; 7 | $gray-4: #515151; 8 | 9 | $brand-blue: rgb(67, 135, 253); 10 | $brand-blue-secondary: #3c8ef3; 11 | $brand-blue-secondary2: #2a7cdf; 12 | 13 | $brand-red: rgb(244, 74, 63); 14 | $brand-red-secondary: #e0543e; 15 | $brand-red-secondary2: #d94d3a; 16 | 17 | $brand-yellow: rgb(255, 209, 77); 18 | $brand-yellow-secondary: #f9cc46; 19 | $brand-yellow-secondary2: #f6c000; 20 | 21 | $brand-green: rgb(13, 168, 97); 22 | $brand-green-secondary: #00a86d; 23 | $brand-green-secondary2: #009f5d; 24 | 25 | $slide-width: 900px; 26 | $slide-height: 700px; 27 | $slide-width-widescreen: 1100px; 28 | $slide-top-bottom-padding: 40px; 29 | $slide-left-right-padding: 60px; 30 | $slide-border-radius: 5px; 31 | 32 | $slide-tap-area-width: 100px; 33 | 34 | $article-content-top-padding: 45px; 35 | 36 | @mixin font-smoothing($val: antialiased) { 37 | -webkit-font-smoothing: $val; 38 | -moz-font-smoothing: $val; 39 | -ms-font-smoothing: $val; 40 | -o-font-smoothing: $val; 41 | } 42 | 43 | @mixin flexbox { 44 | display: -webkit-box !important; 45 | display: -moz-box !important; 46 | display: -ms-box !important; 47 | display: -o-box !important; 48 | display: box !important; 49 | } 50 | 51 | @mixin flex-center-center { 52 | @include box-orient(vertical); 53 | @include box-align(center); 54 | @include box-pack(center); 55 | } 56 | 57 | @mixin flex-left-center { 58 | @include box-orient(vertical); 59 | @include box-align(left); 60 | @include box-pack(center); 61 | } 62 | 63 | @mixin flex-right-center { 64 | @include box-orient(vertical); 65 | @include box-align(end); 66 | @include box-pack(center); 67 | } 68 | 69 | @mixin flex-flex($val: 0) { 70 | @include box-flex($val); 71 | } 72 | 73 | @mixin column-break-after($val) { 74 | -webkit-column-break-after: $val; 75 | -moz-column-break-after: $val; 76 | -ms-column-break-after: $val; 77 | -o-column-break-after: $val; 78 | column-break-after: $val; 79 | } 80 | -------------------------------------------------------------------------------- /peterlubbers-owc4/theme/scss/phone.scss: -------------------------------------------------------------------------------- 1 | @import "compass/css3/transition"; 2 | 3 | 4 | /*Smartphones (portrait and landscape) ----------- */ 5 | /*@media only screen 6 | and (min-width : 320px) 7 | and (max-width : 480px) { 8 | 9 | }*/ 10 | 11 | /* Smartphones (portrait) ----------- */ 12 | //@media only screen and (max-device-width: 480px) { 13 | /* Styles */ 14 | //$slide-width: 350px; 15 | //$slide-height: 500px; 16 | 17 | slides > slide { 18 | /* width: $slide-width !important; 19 | height: $slide-height !important; 20 | margin-left: -$slide-width / 2 !important; 21 | margin-top: -$slide-height / 2 !important; 22 | */ 23 | // Don't do full slide transitions on mobile. 24 | -webkit-transition: none !important; // Bug in compass? Not sure why the below is not working 25 | @include transition(none !important); 26 | } 27 | 28 | //} 29 | 30 | /* iPhone 4 ----------- */ 31 | @media 32 | only screen and (-webkit-min-device-pixel-ratio : 1.5), 33 | only screen and (min-device-pixel-ratio : 1.5) { 34 | /* Styles */ 35 | } --------------------------------------------------------------------------------