├── .repo-rt ├── README.md ├── css ├── basic.css └── enhanced.css ├── images ├── icon-file-warning.png ├── icon-triangle.gif ├── icon-triangle.png └── icon-warning.png ├── index.html ├── js ├── example.js └── jQuery.collapsible.js └── license.txt /.repo-rt: -------------------------------------------------------------------------------- 1 | RETIRED 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | :warning: This project is archived and the repository is no longer maintained. 2 | 3 | Code Examples from the book [Designing with Progressive Enhancement](http://filamentgroup.com/dwpe) 4 | ================================ 5 | 6 | This repository includes open-sourced code developed and maintained by Filament Group, Inc. as part of the book "Designing With Progressive Enhancement" (Peachpit). 7 | 8 | All examples use the [jQuery JavaScript library](http://jquery.com). 9 | 10 | These code examples use the [EnhanceJS framework](https://github.com/filamentgroup/EnhanceJS) for applying progressive enhancement based on browser capabilities testing. 11 | -------------------------------------------------------------------------------- /css/basic.css: -------------------------------------------------------------------------------- 1 | body { font-family: "Segoe UI", Arial, sans-serif; } 2 | div#message li em { display: block; } -------------------------------------------------------------------------------- /css/enhanced.css: -------------------------------------------------------------------------------- 1 | body { font-size:62.5%; margin:10px; color:#333; } 2 | div#message { padding:1em 20px; border:2px solid #aaa; background:#fff; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; width:430px; margin-bottom:20px; } 3 | div#message h1 { font-size:1.9em; font-weight:bold; padding-left:30px; background:url(../images/icon-warning.png) left .2em no-repeat; } 4 | div#message p { font-size:1.4em; } 5 | div#message h2 { font-size:1.5em; font-weight:normal; } 6 | div#message ul { border-top:1px solid #aaa; padding-left:0; margin-left:16px; } 7 | div#message li { line-height:1; font-size:1.3em; color:#000; border-bottom:1px solid #aaa; padding:.5em 40px .5em 30px; background:url(../images/icon-file-warning.png) left center no-repeat; display:block; list-style:none; overflow:hidden; } 8 | div#message li span.file { float:left; } 9 | div#message li em { color:#666; font-style:italic; float:right; font-size:.9em; } 10 | .collapsible-heading { padding-left:15px; background:url(../images/icon-triangle.png) 0 6px no-repeat; cursor:pointer; } 11 | .collapsible-heading-collapsed { background-position:0 -84px; } 12 | .collapsible-heading-toggle { text-decoration:none; color:#333; } 13 | .collapsible-heading-status { position:absolute; left:-99999px; } 14 | .collapsible-content { overflow:hidden; } 15 | .collapsible-content-collapsed { display:none; } -------------------------------------------------------------------------------- /images/icon-file-warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filamentgroup/jQuery-Collapsible-Content/71972765618979e102aaf4450d58a71a65f8530e/images/icon-file-warning.png -------------------------------------------------------------------------------- /images/icon-triangle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filamentgroup/jQuery-Collapsible-Content/71972765618979e102aaf4450d58a71a65f8530e/images/icon-triangle.gif -------------------------------------------------------------------------------- /images/icon-triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filamentgroup/jQuery-Collapsible-Content/71972765618979e102aaf4450d58a71a65f8530e/images/icon-triangle.png -------------------------------------------------------------------------------- /images/icon-warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/filamentgroup/jQuery-Collapsible-Content/71972765618979e102aaf4450d58a71a65f8530e/images/icon-warning.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |The rest of your photos were uploaded successfully but 2 photos were not uploaded because they are not a supported format.
25 |