Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add my PDSs in CLJS deck

  • Loading branch information...
commit c22d204fd190b54af87d91f5f20239338ce8d04d 1 parent 9a003c0
Michał Marczyk authored

Showing 68 changed files with 9,276 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  Persistent data structures in ClojureScript/.gitignore
  2. +16 0 Persistent data structures in ClojureScript/README.md
  3. +16 0 Persistent data structures in ClojureScript/custom.css
  4. +3 0  Persistent data structures in ClojureScript/deck.js/.gitignore
  5. +278 0 Persistent data structures in ClojureScript/deck.js/GPL-license.txt
  6. +21 0 Persistent data structures in ClojureScript/deck.js/MIT-license.txt
  7. +64 0 Persistent data structures in ClojureScript/deck.js/README.md
  8. +96 0 Persistent data structures in ClojureScript/deck.js/boilerplate.html
  9. +407 0 Persistent data structures in ClojureScript/deck.js/core/deck.core.css
  10. +498 0 Persistent data structures in ClojureScript/deck.js/core/deck.core.js
  11. +450 0 Persistent data structures in ClojureScript/deck.js/core/deck.core.scss
  12. +41 0 Persistent data structures in ClojureScript/deck.js/extensions/goto/deck.goto.css
  13. +7 0 Persistent data structures in ClojureScript/deck.js/extensions/goto/deck.goto.html
  14. +170 0 Persistent data structures in ClojureScript/deck.js/extensions/goto/deck.goto.js
  15. +46 0 Persistent data structures in ClojureScript/deck.js/extensions/goto/deck.goto.scss
  16. +13 0 Persistent data structures in ClojureScript/deck.js/extensions/hash/deck.hash.css
  17. +2 0  Persistent data structures in ClojureScript/deck.js/extensions/hash/deck.hash.html
  18. +142 0 Persistent data structures in ClojureScript/deck.js/extensions/hash/deck.hash.js
  19. +15 0 Persistent data structures in ClojureScript/deck.js/extensions/hash/deck.hash.scss
  20. +47 0 Persistent data structures in ClojureScript/deck.js/extensions/menu/deck.menu.css
  21. +187 0 Persistent data structures in ClojureScript/deck.js/extensions/menu/deck.menu.js
  22. +58 0 Persistent data structures in ClojureScript/deck.js/extensions/menu/deck.menu.scss
  23. +43 0 Persistent data structures in ClojureScript/deck.js/extensions/navigation/deck.navigation.css
  24. +3 0  Persistent data structures in ClojureScript/deck.js/extensions/navigation/deck.navigation.html
  25. +92 0 Persistent data structures in ClojureScript/deck.js/extensions/navigation/deck.navigation.js
  26. +56 0 Persistent data structures in ClojureScript/deck.js/extensions/navigation/deck.navigation.scss
  27. +28 0 Persistent data structures in ClojureScript/deck.js/extensions/scale/deck.scale.css
  28. +170 0 Persistent data structures in ClojureScript/deck.js/extensions/scale/deck.scale.js
  29. +31 0 Persistent data structures in ClojureScript/deck.js/extensions/scale/deck.scale.scss
  30. +18 0 Persistent data structures in ClojureScript/deck.js/extensions/status/deck.status.css
  31. +6 0 Persistent data structures in ClojureScript/deck.js/extensions/status/deck.status.html
  32. +95 0 Persistent data structures in ClojureScript/deck.js/extensions/status/deck.status.js
  33. +22 0 Persistent data structures in ClojureScript/deck.js/extensions/status/deck.status.scss
  34. +215 0 Persistent data structures in ClojureScript/deck.js/introduction/index.html
  35. +4 0 Persistent data structures in ClojureScript/deck.js/jquery-1.7.2.min.js
  36. +4 0 Persistent data structures in ClojureScript/deck.js/modernizr.custom.js
  37. +24 0 Persistent data structures in ClojureScript/deck.js/test/fixtures/complex.html
  38. +19 0 Persistent data structures in ClojureScript/deck.js/test/fixtures/empty.html
  39. +10 0 Persistent data structures in ClojureScript/deck.js/test/fixtures/iframe_simple.html
  40. +32 0 Persistent data structures in ClojureScript/deck.js/test/fixtures/iframes.html
  41. +36 0 Persistent data structures in ClojureScript/deck.js/test/fixtures/nesteds.html
  42. +42 0 Persistent data structures in ClojureScript/deck.js/test/fixtures/standard.html
  43. +39 0 Persistent data structures in ClojureScript/deck.js/test/index.html
  44. +190 0 Persistent data structures in ClojureScript/deck.js/test/lib/jasmine-html.js
  45. +288 0 Persistent data structures in ClojureScript/deck.js/test/lib/jasmine-jquery.js
  46. +166 0 Persistent data structures in ClojureScript/deck.js/test/lib/jasmine.css
  47. +2,477 0 Persistent data structures in ClojureScript/deck.js/test/lib/jasmine.js
  48. +3 0  Persistent data structures in ClojureScript/deck.js/test/settings.js
  49. +436 0 Persistent data structures in ClojureScript/deck.js/test/spec.core.js
  50. +142 0 Persistent data structures in ClojureScript/deck.js/test/spec.goto.js
  51. +81 0 Persistent data structures in ClojureScript/deck.js/test/spec.hash.js
  52. +66 0 Persistent data structures in ClojureScript/deck.js/test/spec.menu.js
  53. +51 0 Persistent data structures in ClojureScript/deck.js/test/spec.navigation.js
  54. +57 0 Persistent data structures in ClojureScript/deck.js/test/spec.scale.js
  55. +58 0 Persistent data structures in ClojureScript/deck.js/test/spec.status.js
  56. +123 0 Persistent data structures in ClojureScript/deck.js/themes/style/neon.css
  57. +155 0 Persistent data structures in ClojureScript/deck.js/themes/style/neon.scss
  58. +84 0 Persistent data structures in ClojureScript/deck.js/themes/style/swiss.css
  59. +107 0 Persistent data structures in ClojureScript/deck.js/themes/style/swiss.scss
  60. +214 0 Persistent data structures in ClojureScript/deck.js/themes/style/web-2.0.css
  61. +250 0 Persistent data structures in ClojureScript/deck.js/themes/style/web-2.0.scss
  62. +43 0 Persistent data structures in ClojureScript/deck.js/themes/transition/fade.css
  63. +69 0 Persistent data structures in ClojureScript/deck.js/themes/transition/fade.scss
  64. +76 0 Persistent data structures in ClojureScript/deck.js/themes/transition/horizontal-slide.css
  65. +90 0 Persistent data structures in ClojureScript/deck.js/themes/transition/horizontal-slide.scss
  66. +94 0 Persistent data structures in ClojureScript/deck.js/themes/transition/vertical-slide.css
  67. +112 0 Persistent data structures in ClojureScript/deck.js/themes/transition/vertical-slide.scss
  68. +275 0 Persistent data structures in ClojureScript/index.html
3  Persistent data structures in ClojureScript/.gitignore
... ... @@ -0,0 +1,3 @@
  1 +*~
  2 +\#*
  3 +.#*
16 Persistent data structures in ClojureScript/README.md
Source Rendered
... ... @@ -0,0 +1,16 @@
  1 +# Persistent data structures in ClojureScript
  2 +
  3 +Slides from my presentation at the
  4 +[Amsterdam Clojurians](http://amsclj.nl/)' October 2012 event.
  5 +
  6 +## deck.js
  7 +
  8 +This presentation uses [deck.js](http://imakewebthings.com/deck.js/),
  9 +vendored in in the `deck.js` directory; see `deck.js/README.md` for
  10 +copyright and licence information.
  11 +
  12 +## Licence
  13 +
  14 +<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.
  15 +
  16 +Copyright © 2012 Michał Marczyk
16 Persistent data structures in ClojureScript/custom.css
... ... @@ -0,0 +1,16 @@
  1 +body {
  2 + padding-left: 100px !important;
  3 + padding-right: 100px !important;
  4 +}
  5 +
  6 +section.slide > h1 {
  7 + font-size: 72px;
  8 +}
  9 +
  10 +section.slide > div.author {
  11 + position: absolute;
  12 + top: 70%;
  13 + width: 100%;
  14 + text-align: center;
  15 + font-size: 36px;
  16 +}
3  Persistent data structures in ClojureScript/deck.js/.gitignore
... ... @@ -0,0 +1,3 @@
  1 +.DS_Store
  2 +.sass-cache/
  3 +progress/
278 Persistent data structures in ClojureScript/deck.js/GPL-license.txt
... ... @@ -0,0 +1,278 @@
  1 +GNU GENERAL PUBLIC LICENSE
  2 + Version 2, June 1991
  3 +
  4 + Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  5 + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  6 + Everyone is permitted to copy and distribute verbatim copies
  7 + of this license document, but changing it is not allowed.
  8 +
  9 + Preamble
  10 +
  11 + The licenses for most software are designed to take away your
  12 +freedom to share and change it. By contrast, the GNU General Public
  13 +License is intended to guarantee your freedom to share and change free
  14 +software--to make sure the software is free for all its users. This
  15 +General Public License applies to most of the Free Software
  16 +Foundation's software and to any other program whose authors commit to
  17 +using it. (Some other Free Software Foundation software is covered by
  18 +the GNU Lesser General Public License instead.) You can apply it to
  19 +your programs, too.
  20 +
  21 + When we speak of free software, we are referring to freedom, not
  22 +price. Our General Public Licenses are designed to make sure that you
  23 +have the freedom to distribute copies of free software (and charge for
  24 +this service if you wish), that you receive source code or can get it
  25 +if you want it, that you can change the software or use pieces of it
  26 +in new free programs; and that you know you can do these things.
  27 +
  28 + To protect your rights, we need to make restrictions that forbid
  29 +anyone to deny you these rights or to ask you to surrender the rights.
  30 +These restrictions translate to certain responsibilities for you if you
  31 +distribute copies of the software, or if you modify it.
  32 +
  33 + For example, if you distribute copies of such a program, whether
  34 +gratis or for a fee, you must give the recipients all the rights that
  35 +you have. You must make sure that they, too, receive or can get the
  36 +source code. And you must show them these terms so they know their
  37 +rights.
  38 +
  39 + We protect your rights with two steps: (1) copyright the software, and
  40 +(2) offer you this license which gives you legal permission to copy,
  41 +distribute and/or modify the software.
  42 +
  43 + Also, for each author's protection and ours, we want to make certain
  44 +that everyone understands that there is no warranty for this free
  45 +software. If the software is modified by someone else and passed on, we
  46 +want its recipients to know that what they have is not the original, so
  47 +that any problems introduced by others will not reflect on the original
  48 +authors' reputations.
  49 +
  50 + Finally, any free program is threatened constantly by software
  51 +patents. We wish to avoid the danger that redistributors of a free
  52 +program will individually obtain patent licenses, in effect making the
  53 +program proprietary. To prevent this, we have made it clear that any
  54 +patent must be licensed for everyone's free use or not licensed at all.
  55 +
  56 + The precise terms and conditions for copying, distribution and
  57 +modification follow.
  58 +
  59 + GNU GENERAL PUBLIC LICENSE
  60 + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  61 +
  62 + 0. This License applies to any program or other work which contains
  63 +a notice placed by the copyright holder saying it may be distributed
  64 +under the terms of this General Public License. The "Program", below,
  65 +refers to any such program or work, and a "work based on the Program"
  66 +means either the Program or any derivative work under copyright law:
  67 +that is to say, a work containing the Program or a portion of it,
  68 +either verbatim or with modifications and/or translated into another
  69 +language. (Hereinafter, translation is included without limitation in
  70 +the term "modification".) Each licensee is addressed as "you".
  71 +
  72 +Activities other than copying, distribution and modification are not
  73 +covered by this License; they are outside its scope. The act of
  74 +running the Program is not restricted, and the output from the Program
  75 +is covered only if its contents constitute a work based on the
  76 +Program (independent of having been made by running the Program).
  77 +Whether that is true depends on what the Program does.
  78 +
  79 + 1. You may copy and distribute verbatim copies of the Program's
  80 +source code as you receive it, in any medium, provided that you
  81 +conspicuously and appropriately publish on each copy an appropriate
  82 +copyright notice and disclaimer of warranty; keep intact all the
  83 +notices that refer to this License and to the absence of any warranty;
  84 +and give any other recipients of the Program a copy of this License
  85 +along with the Program.
  86 +
  87 +You may charge a fee for the physical act of transferring a copy, and
  88 +you may at your option offer warranty protection in exchange for a fee.
  89 +
  90 + 2. You may modify your copy or copies of the Program or any portion
  91 +of it, thus forming a work based on the Program, and copy and
  92 +distribute such modifications or work under the terms of Section 1
  93 +above, provided that you also meet all of these conditions:
  94 +
  95 + a) You must cause the modified files to carry prominent notices
  96 + stating that you changed the files and the date of any change.
  97 +
  98 + b) You must cause any work that you distribute or publish, that in
  99 + whole or in part contains or is derived from the Program or any
  100 + part thereof, to be licensed as a whole at no charge to all third
  101 + parties under the terms of this License.
  102 +
  103 + c) If the modified program normally reads commands interactively
  104 + when run, you must cause it, when started running for such
  105 + interactive use in the most ordinary way, to print or display an
  106 + announcement including an appropriate copyright notice and a
  107 + notice that there is no warranty (or else, saying that you provide
  108 + a warranty) and that users may redistribute the program under
  109 + these conditions, and telling the user how to view a copy of this
  110 + License. (Exception: if the Program itself is interactive but
  111 + does not normally print such an announcement, your work based on
  112 + the Program is not required to print an announcement.)
  113 +
  114 +These requirements apply to the modified work as a whole. If
  115 +identifiable sections of that work are not derived from the Program,
  116 +and can be reasonably considered independent and separate works in
  117 +themselves, then this License, and its terms, do not apply to those
  118 +sections when you distribute them as separate works. But when you
  119 +distribute the same sections as part of a whole which is a work based
  120 +on the Program, the distribution of the whole must be on the terms of
  121 +this License, whose permissions for other licensees extend to the
  122 +entire whole, and thus to each and every part regardless of who wrote it.
  123 +
  124 +Thus, it is not the intent of this section to claim rights or contest
  125 +your rights to work written entirely by you; rather, the intent is to
  126 +exercise the right to control the distribution of derivative or
  127 +collective works based on the Program.
  128 +
  129 +In addition, mere aggregation of another work not based on the Program
  130 +with the Program (or with a work based on the Program) on a volume of
  131 +a storage or distribution medium does not bring the other work under
  132 +the scope of this License.
  133 +
  134 + 3. You may copy and distribute the Program (or a work based on it,
  135 +under Section 2) in object code or executable form under the terms of
  136 +Sections 1 and 2 above provided that you also do one of the following:
  137 +
  138 + a) Accompany it with the complete corresponding machine-readable
  139 + source code, which must be distributed under the terms of Sections
  140 + 1 and 2 above on a medium customarily used for software interchange; or,
  141 +
  142 + b) Accompany it with a written offer, valid for at least three
  143 + years, to give any third party, for a charge no more than your
  144 + cost of physically performing source distribution, a complete
  145 + machine-readable copy of the corresponding source code, to be
  146 + distributed under the terms of Sections 1 and 2 above on a medium
  147 + customarily used for software interchange; or,
  148 +
  149 + c) Accompany it with the information you received as to the offer
  150 + to distribute corresponding source code. (This alternative is
  151 + allowed only for noncommercial distribution and only if you
  152 + received the program in object code or executable form with such
  153 + an offer, in accord with Subsection b above.)
  154 +
  155 +The source code for a work means the preferred form of the work for
  156 +making modifications to it. For an executable work, complete source
  157 +code means all the source code for all modules it contains, plus any
  158 +associated interface definition files, plus the scripts used to
  159 +control compilation and installation of the executable. However, as a
  160 +special exception, the source code distributed need not include
  161 +anything that is normally distributed (in either source or binary
  162 +form) with the major components (compiler, kernel, and so on) of the
  163 +operating system on which the executable runs, unless that component
  164 +itself accompanies the executable.
  165 +
  166 +If distribution of executable or object code is made by offering
  167 +access to copy from a designated place, then offering equivalent
  168 +access to copy the source code from the same place counts as
  169 +distribution of the source code, even though third parties are not
  170 +compelled to copy the source along with the object code.
  171 +
  172 + 4. You may not copy, modify, sublicense, or distribute the Program
  173 +except as expressly provided under this License. Any attempt
  174 +otherwise to copy, modify, sublicense or distribute the Program is
  175 +void, and will automatically terminate your rights under this License.
  176 +However, parties who have received copies, or rights, from you under
  177 +this License will not have their licenses terminated so long as such
  178 +parties remain in full compliance.
  179 +
  180 + 5. You are not required to accept this License, since you have not
  181 +signed it. However, nothing else grants you permission to modify or
  182 +distribute the Program or its derivative works. These actions are
  183 +prohibited by law if you do not accept this License. Therefore, by
  184 +modifying or distributing the Program (or any work based on the
  185 +Program), you indicate your acceptance of this License to do so, and
  186 +all its terms and conditions for copying, distributing or modifying
  187 +the Program or works based on it.
  188 +
  189 + 6. Each time you redistribute the Program (or any work based on the
  190 +Program), the recipient automatically receives a license from the
  191 +original licensor to copy, distribute or modify the Program subject to
  192 +these terms and conditions. You may not impose any further
  193 +restrictions on the recipients' exercise of the rights granted herein.
  194 +You are not responsible for enforcing compliance by third parties to
  195 +this License.
  196 +
  197 + 7. If, as a consequence of a court judgment or allegation of patent
  198 +infringement or for any other reason (not limited to patent issues),
  199 +conditions are imposed on you (whether by court order, agreement or
  200 +otherwise) that contradict the conditions of this License, they do not
  201 +excuse you from the conditions of this License. If you cannot
  202 +distribute so as to satisfy simultaneously your obligations under this
  203 +License and any other pertinent obligations, then as a consequence you
  204 +may not distribute the Program at all. For example, if a patent
  205 +license would not permit royalty-free redistribution of the Program by
  206 +all those who receive copies directly or indirectly through you, then
  207 +the only way you could satisfy both it and this License would be to
  208 +refrain entirely from distribution of the Program.
  209 +
  210 +If any portion of this section is held invalid or unenforceable under
  211 +any particular circumstance, the balance of the section is intended to
  212 +apply and the section as a whole is intended to apply in other
  213 +circumstances.
  214 +
  215 +It is not the purpose of this section to induce you to infringe any
  216 +patents or other property right claims or to contest validity of any
  217 +such claims; this section has the sole purpose of protecting the
  218 +integrity of the free software distribution system, which is
  219 +implemented by public license practices. Many people have made
  220 +generous contributions to the wide range of software distributed
  221 +through that system in reliance on consistent application of that
  222 +system; it is up to the author/donor to decide if he or she is willing
  223 +to distribute software through any other system and a licensee cannot
  224 +impose that choice.
  225 +
  226 +This section is intended to make thoroughly clear what is believed to
  227 +be a consequence of the rest of this License.
  228 +
  229 + 8. If the distribution and/or use of the Program is restricted in
  230 +certain countries either by patents or by copyrighted interfaces, the
  231 +original copyright holder who places the Program under this License
  232 +may add an explicit geographical distribution limitation excluding
  233 +those countries, so that distribution is permitted only in or among
  234 +countries not thus excluded. In such case, this License incorporates
  235 +the limitation as if written in the body of this License.
  236 +
  237 + 9. The Free Software Foundation may publish revised and/or new versions
  238 +of the General Public License from time to time. Such new versions will
  239 +be similar in spirit to the present version, but may differ in detail to
  240 +address new problems or concerns.
  241 +
  242 +Each version is given a distinguishing version number. If the Program
  243 +specifies a version number of this License which applies to it and "any
  244 +later version", you have the option of following the terms and conditions
  245 +either of that version or of any later version published by the Free
  246 +Software Foundation. If the Program does not specify a version number of
  247 +this License, you may choose any version ever published by the Free Software
  248 +Foundation.
  249 +
  250 + 10. If you wish to incorporate parts of the Program into other free
  251 +programs whose distribution conditions are different, write to the author
  252 +to ask for permission. For software which is copyrighted by the Free
  253 +Software Foundation, write to the Free Software Foundation; we sometimes
  254 +make exceptions for this. Our decision will be guided by the two goals
  255 +of preserving the free status of all derivatives of our free software and
  256 +of promoting the sharing and reuse of software generally.
  257 +
  258 + NO WARRANTY
  259 +
  260 + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  261 +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
  262 +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  263 +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  264 +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  265 +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
  266 +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
  267 +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  268 +REPAIR OR CORRECTION.
  269 +
  270 + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  271 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  272 +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  273 +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  274 +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  275 +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  276 +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  277 +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  278 +POSSIBILITY OF SUCH DAMAGES.
21 Persistent data structures in ClojureScript/deck.js/MIT-license.txt
... ... @@ -0,0 +1,21 @@
  1 +The MIT License
  2 +
  3 +Copyright (c) 2011 Caleb Troughton
  4 +
  5 +Permission is hereby granted, free of charge, to any person obtaining a copy
  6 +of this software and associated documentation files (the "Software"), to deal
  7 +in the Software without restriction, including without limitation the rights
  8 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9 +copies of the Software, and to permit persons to whom the Software is
  10 +furnished to do so, subject to the following conditions:
  11 +
  12 +The above copyright notice and this permission notice shall be included in
  13 +all copies or substantial portions of the Software.
  14 +
  15 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21 +THE SOFTWARE.
64 Persistent data structures in ClojureScript/deck.js/README.md
Source Rendered
... ... @@ -0,0 +1,64 @@
  1 +#deck.js
  2 +
  3 +A JavaScript library for building modern HTML presentations. deck.js is flexible enough to let advanced CSS and JavaScript authors craft highly customized decks, but also provides templates and themes for the HTML novice to build a standard slideshow.
  4 +
  5 +## Quick Start
  6 +
  7 +This repository includes a `boilerplate.html` as a starting point, with all the extensions included. Just [download it](https://github.com/imakewebthings/deck.js/zipball/stable), open `boilerplate.html`, and start editing your slides.
  8 +
  9 +## Documentation
  10 +
  11 +Check out the [documentation page](http://imakewebthings.github.com/deck.js/docs) for more information on the methods, events, and options available in core and all the included extensions. A sample standard slide deck is included in the package under the `introduction` folder. You can also [view that sample deck](http://imakewebthings.github.com/deck.js/introduction) online to play with the available style and transition themes.
  12 +
  13 +## Extensions, Themes, and Related Projects
  14 +
  15 +Take a look at [the wiki](https://github.com/imakewebthings/deck.js/wiki) for lists of extensions, themes, and other related goodies. If you have a publicly available project of your own, feel free to add to the list.
  16 +
  17 +## Dependencies (included in this repository)
  18 +
  19 +- [jQuery](http://jquery.com)
  20 +- [Modernizr](http://modernizr.com)
  21 +
  22 +## Tests & Support
  23 +
  24 +Unit tests are written with [Jasmine](http://pivotal.github.com/jasmine/) and [jasmine-jquery](https://github.com/velesin/jasmine-jquery). You can [run them here](http://imakewebthings.github.com/deck.js/test).
  25 +
  26 +deck.js has been tested with jQuery 1.6+ and works in IE7+, Chrome, FF, Safari, and Opera. The more capable browsers receive greater enhancements, but a basic cutaway slideshow will work for all browsers listed above. Please don't give your presentations in IE6.
  27 +
  28 +For any questions or general discussion about deck.js please direct your attention to the [mailing list](http://groups.google.com/group/deckjs) (uses Google groups.) If you would like to report a bug, please see the [issues page](https://github.com/imakewebthings/deck.js/issues).
  29 +
  30 +## Known Bug(s)
  31 +
  32 +There is an issue with certain builds of Chrome that result in a solid blue background and generally broken decks. This is a bug in Chrome ([Issue 91518](http://code.google.com/p/chromium/issues/detail?id=91518)) that stems from hardware acceleration of 3d transforms. Current workarounds:
  33 +
  34 +- Use a different browser. This problem doesn't exist in Safari, FF, Opera.
  35 +- Disable hardware compositing by setting `--disable-accelerated-compositing` in the Chrome loading options
  36 +- Replace instances of `translate3d` with `translate` in the CSS of your decks (though this will slow down performance on iOS devices and Safari.)
  37 +
  38 +Firefox contains a bug that allows users to scroll horizontally using the trackpad despite `overflow-x:hidden`. ([Bug 664275](https://bugzilla.mozilla.org/show_bug.cgi?id=664275) and [Bug 325942](https://bugzilla.mozilla.org/show_bug.cgi?id=325942).) If anyone knows of any workarounds to this issue please contact me.
  39 +
  40 +## Printing
  41 +
  42 +Core includes stripped down black and white print styles for the standard slide template that is suitable for handouts.
  43 +
  44 +## Awesome Contributors
  45 +
  46 +- [jbuck](https://github.com/jbuck)
  47 +- [cykod](https://github.com/cykod)
  48 +- [dougireton](https://github.com/dougireton)
  49 +- [awirick](https://github.com/awirick)
  50 +- Daniel Knittl-Frank
  51 +- [alexch](https://github.com/alexch)
  52 +
  53 +If you would like to contribute a patch to deck.js please do as much as you can of the following:
  54 +
  55 +- Add or amend Jasmine tests.
  56 +- Add inline documentation.
  57 +- If the standard snippet of an extension changes, please change it in both the introduction deck and the snippet html in the extension folder.
  58 +- If the API changes, it would be awesome to receive a parallel pull request to the gh-pages branch which updates the public-facing documentation.
  59 +
  60 +## License
  61 +
  62 +Copyright (c) 2011-2012 Caleb Troughton
  63 +
  64 +Dual licensed under the [MIT license](https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt) and [GPL license](https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt).
96 Persistent data structures in ClojureScript/deck.js/boilerplate.html
... ... @@ -0,0 +1,96 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 +<head>
  4 + <meta charset="utf-8">
  5 + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6 + <meta name="viewport" content="width=1024, user-scalable=no">
  7 +
  8 + <title>Your deck.js Presentation</title>
  9 +
  10 + <!-- Required stylesheet -->
  11 + <link rel="stylesheet" href="core/deck.core.css">
  12 +
  13 + <!-- Extension CSS files go here. Remove or add as needed. -->
  14 + <link rel="stylesheet" href="extensions/goto/deck.goto.css">
  15 + <link rel="stylesheet" href="extensions/menu/deck.menu.css">
  16 + <link rel="stylesheet" href="extensions/navigation/deck.navigation.css">
  17 + <link rel="stylesheet" href="extensions/status/deck.status.css">
  18 + <link rel="stylesheet" href="extensions/hash/deck.hash.css">
  19 + <link rel="stylesheet" href="extensions/scale/deck.scale.css">
  20 +
  21 + <!-- Style theme. More available in /themes/style/ or create your own. -->
  22 + <link rel="stylesheet" href="themes/style/web-2.0.css">
  23 +
  24 + <!-- Transition theme. More available in /themes/transition/ or create your own. -->
  25 + <link rel="stylesheet" href="themes/transition/horizontal-slide.css">
  26 +
  27 + <!-- Required Modernizr file -->
  28 + <script src="modernizr.custom.js"></script>
  29 +</head>
  30 +<body class="deck-container">
  31 +
  32 +<!-- Begin slides. Just make elements with a class of slide. -->
  33 +
  34 +<section class="slide">
  35 + <h1>Slide</h1>
  36 +</section>
  37 +
  38 +<section class="slide">
  39 + <h1>Content</h1>
  40 +</section>
  41 +
  42 +<section class="slide">
  43 + <h1>Here</h1>
  44 +</section>
  45 +
  46 +<!-- End slides. -->
  47 +
  48 +
  49 +<!-- Begin extension snippets. Add or remove as needed. -->
  50 +
  51 +<!-- deck.navigation snippet -->
  52 +<a href="#" class="deck-prev-link" title="Previous">&#8592;</a>
  53 +<a href="#" class="deck-next-link" title="Next">&#8594;</a>
  54 +
  55 +<!-- deck.status snippet -->
  56 +<p class="deck-status">
  57 + <span class="deck-status-current"></span>
  58 + /
  59 + <span class="deck-status-total"></span>
  60 +</p>
  61 +
  62 +<!-- deck.goto snippet -->
  63 +<form action="." method="get" class="goto-form">
  64 + <label for="goto-slide">Go to slide:</label>
  65 + <input type="text" name="slidenum" id="goto-slide" list="goto-datalist">
  66 + <datalist id="goto-datalist"></datalist>
  67 + <input type="submit" value="Go">
  68 +</form>
  69 +
  70 +<!-- deck.hash snippet -->
  71 +<a href="." title="Permalink to this slide" class="deck-permalink">#</a>
  72 +
  73 +<!-- End extension snippets. -->
  74 +
  75 +
  76 +<!-- Required JS files. -->
  77 +<script src="jquery-1.7.2.min.js"></script>
  78 +<script src="core/deck.core.js"></script>
  79 +
  80 +<!-- Extension JS files. Add or remove as needed. -->
  81 +<script src="../core/deck.core.js"></script>
  82 +<script src="../extensions/hash/deck.hash.js"></script>
  83 +<script src="../extensions/menu/deck.menu.js"></script>
  84 +<script src="../extensions/goto/deck.goto.js"></script>
  85 +<script src="../extensions/status/deck.status.js"></script>
  86 +<script src="../extensions/navigation/deck.navigation.js"></script>
  87 +<script src="../extensions/scale/deck.scale.js"></script>
  88 +
  89 +<!-- Initialize the deck. You can put this in an external file if desired. -->
  90 +<script>
  91 + $(function() {
  92 + $.deck('.slide');
  93 + });
  94 +</script>
  95 +</body>
  96 +</html>
407 Persistent data structures in ClojureScript/deck.js/core/deck.core.css
... ... @@ -0,0 +1,407 @@
  1 +html, body {
  2 + height: 100%;
  3 + padding: 0;
  4 + margin: 0;
  5 +}
  6 +
  7 +body.deck-container {
  8 + overflow-y: auto;
  9 + position: static;
  10 +}
  11 +
  12 +.deck-container {
  13 + position: relative;
  14 + min-height: 100%;
  15 + margin: 0 auto;
  16 + padding: 0 48px;
  17 + font-size: 16px;
  18 + line-height: 1.25;
  19 + overflow: hidden;
  20 + /* Resets and base styles from HTML5 Boilerplate */
  21 + /* End HTML5 Boilerplate adaptations */
  22 +}
  23 +.js .deck-container {
  24 + visibility: hidden;
  25 +}
  26 +.ready .deck-container {
  27 + visibility: visible;
  28 +}
  29 +.touch .deck-container {
  30 + -webkit-text-size-adjust: none;
  31 + -moz-text-size-adjust: none;
  32 +}
  33 +.deck-container div, .deck-container span, .deck-container object, .deck-container iframe,
  34 +.deck-container h1, .deck-container h2, .deck-container h3, .deck-container h4, .deck-container h5, .deck-container h6, .deck-container p, .deck-container blockquote, .deck-container pre,
  35 +.deck-container abbr, .deck-container address, .deck-container cite, .deck-container code, .deck-container del, .deck-container dfn, .deck-container em, .deck-container img, .deck-container ins, .deck-container kbd, .deck-container q, .deck-container samp,
  36 +.deck-container small, .deck-container strong, .deck-container sub, .deck-container sup, .deck-container var, .deck-container b, .deck-container i, .deck-container dl, .deck-container dt, .deck-container dd, .deck-container ol, .deck-container ul, .deck-container li,
  37 +.deck-container fieldset, .deck-container form, .deck-container label, .deck-container legend,
  38 +.deck-container table, .deck-container caption, .deck-container tbody, .deck-container tfoot, .deck-container thead, .deck-container tr, .deck-container th, .deck-container td,
  39 +.deck-container article, .deck-container aside, .deck-container canvas, .deck-container details, .deck-container figcaption, .deck-container figure,
  40 +.deck-container footer, .deck-container header, .deck-container hgroup, .deck-container menu, .deck-container nav, .deck-container section, .deck-container summary,
  41 +.deck-container time, .deck-container mark, .deck-container audio, .deck-container video {
  42 + margin: 0;
  43 + padding: 0;
  44 + border: 0;
  45 + font-size: 100%;
  46 + font: inherit;
  47 + vertical-align: baseline;
  48 +}
  49 +.deck-container article, .deck-container aside, .deck-container details, .deck-container figcaption, .deck-container figure,
  50 +.deck-container footer, .deck-container header, .deck-container hgroup, .deck-container menu, .deck-container nav, .deck-container section {
  51 + display: block;
  52 +}
  53 +.deck-container blockquote, .deck-container q {
  54 + quotes: none;
  55 +}
  56 +.deck-container blockquote:before, .deck-container blockquote:after, .deck-container q:before, .deck-container q:after {
  57 + content: "";
  58 + content: none;
  59 +}
  60 +.deck-container ins {
  61 + background-color: #ff9;
  62 + color: #000;
  63 + text-decoration: none;
  64 +}
  65 +.deck-container mark {
  66 + background-color: #ff9;
  67 + color: #000;
  68 + font-style: italic;
  69 + font-weight: bold;
  70 +}
  71 +.deck-container del {
  72 + text-decoration: line-through;
  73 +}
  74 +.deck-container abbr[title], .deck-container dfn[title] {
  75 + border-bottom: 1px dotted;
  76 + cursor: help;
  77 +}
  78 +.deck-container table {
  79 + border-collapse: collapse;
  80 + border-spacing: 0;
  81 +}
  82 +.deck-container hr {
  83 + display: block;
  84 + height: 1px;
  85 + border: 0;
  86 + border-top: 1px solid #ccc;
  87 + margin: 1em 0;
  88 + padding: 0;
  89 +}
  90 +.deck-container input, .deck-container select {
  91 + vertical-align: middle;
  92 +}
  93 +.deck-container select, .deck-container input, .deck-container textarea, .deck-container button {
  94 + font: 99% sans-serif;
  95 +}
  96 +.deck-container pre, .deck-container code, .deck-container kbd, .deck-container samp {
  97 + font-family: monospace, sans-serif;
  98 +}
  99 +.deck-container a {
  100 + -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  101 +}
  102 +.deck-container a:hover, .deck-container a:active {
  103 + outline: none;
  104 +}
  105 +.deck-container ul, .deck-container ol {
  106 + margin-left: 2em;
  107 + vertical-align: top;
  108 +}
  109 +.deck-container ol {
  110 + list-style-type: decimal;
  111 +}
  112 +.deck-container nav ul, .deck-container nav li {
  113 + margin: 0;
  114 + list-style: none;
  115 + list-style-image: none;
  116 +}
  117 +.deck-container small {
  118 + font-size: 85%;
  119 +}
  120 +.deck-container strong, .deck-container th {
  121 + font-weight: bold;
  122 +}
  123 +.deck-container td {
  124 + vertical-align: top;
  125 +}
  126 +.deck-container sub, .deck-container sup {
  127 + font-size: 75%;
  128 + line-height: 0;
  129 + position: relative;
  130 +}
  131 +.deck-container sup {
  132 + top: -0.5em;
  133 +}
  134 +.deck-container sub {
  135 + bottom: -0.25em;
  136 +}
  137 +.deck-container textarea {
  138 + overflow: auto;
  139 +}
  140 +.ie6 .deck-container legend, .ie7 .deck-container legend {
  141 + margin-left: -7px;
  142 +}
  143 +.deck-container input[type="radio"] {
  144 + vertical-align: text-bottom;
  145 +}
  146 +.deck-container input[type="checkbox"] {
  147 + vertical-align: bottom;
  148 +}
  149 +.ie7 .deck-container input[type="checkbox"] {
  150 + vertical-align: baseline;
  151 +}
  152 +.ie6 .deck-container input {
  153 + vertical-align: text-bottom;
  154 +}
  155 +.deck-container label, .deck-container input[type="button"], .deck-container input[type="submit"], .deck-container input[type="image"], .deck-container button {
  156 + cursor: pointer;
  157 +}
  158 +.deck-container button, .deck-container input, .deck-container select, .deck-container textarea {
  159 + margin: 0;
  160 +}
  161 +.deck-container input:invalid, .deck-container textarea:invalid {
  162 + border-radius: 1px;
  163 + -moz-box-shadow: 0px 0px 5px red;
  164 + -webkit-box-shadow: 0px 0px 5px red;
  165 + box-shadow: 0px 0px 5px red;
  166 +}
  167 +.deck-container input:invalid .no-boxshadow, .deck-container textarea:invalid .no-boxshadow {
  168 + background-color: #f0dddd;
  169 +}
  170 +.deck-container button {
  171 + width: auto;
  172 + overflow: visible;
  173 +}
  174 +.ie7 .deck-container img {
  175 + -ms-interpolation-mode: bicubic;
  176 +}
  177 +.deck-container, .deck-container select, .deck-container input, .deck-container textarea {
  178 + color: #444;
  179 +}
  180 +.deck-container a {
  181 + color: #607890;
  182 +}
  183 +.deck-container a:hover, .deck-container a:focus {
  184 + color: #036;
  185 +}
  186 +.deck-container a:link {
  187 + -webkit-tap-highlight-color: #fff;
  188 +}
  189 +.deck-container.deck-loading {
  190 + display: none;
  191 +}
  192 +
  193 +.slide {
  194 + width: auto;
  195 + min-height: 100%;
  196 + position: relative;
  197 +}
  198 +.slide h1 {
  199 + font-size: 4.5em;
  200 +}
  201 +.slide h1, .slide .vcenter {
  202 + font-weight: bold;
  203 + text-align: center;
  204 + padding-top: 1em;
  205 + max-height: 100%;
  206 +}
  207 +.csstransforms .slide h1, .csstransforms .slide .vcenter {
  208 + padding: 0 48px;
  209 + position: absolute;
  210 + left: 0;
  211 + right: 0;
  212 + top: 50%;
  213 + -webkit-transform: translate(0, -50%);
  214 + -moz-transform: translate(0, -50%);
  215 + -ms-transform: translate(0, -50%);
  216 + -o-transform: translate(0, -50%);
  217 + transform: translate(0, -50%);
  218 +}
  219 +.slide .vcenter h1 {
  220 + position: relative;
  221 + top: auto;
  222 + padding: 0;
  223 + -webkit-transform: none;
  224 + -moz-transform: none;
  225 + -ms-transform: none;
  226 + -o-transform: none;
  227 + transform: none;
  228 +}
  229 +.slide h2 {
  230 + font-size: 2.25em;
  231 + font-weight: bold;
  232 + padding-top: .5em;
  233 + margin: 0 0 .66666em 0;
  234 + border-bottom: 3px solid #888;
  235 +}
  236 +.slide h3 {
  237 + font-size: 1.4375em;
  238 + font-weight: bold;
  239 + margin-bottom: .30435em;
  240 +}
  241 +.slide h4 {
  242 + font-size: 1.25em;
  243 + font-weight: bold;
  244 + margin-bottom: .25em;
  245 +}
  246 +.slide h5 {
  247 + font-size: 1.125em;
  248 + font-weight: bold;
  249 + margin-bottom: .2222em;
  250 +}
  251 +.slide h6 {
  252 + font-size: 1em;
  253 + font-weight: bold;
  254 +}
  255 +.slide img, .slide iframe, .slide video {
  256 + display: block;
  257 + max-width: 100%;
  258 +}
  259 +.slide video, .slide iframe, .slide img {
  260 + display: block;
  261 + margin: 0 auto;
  262 +}
  263 +.slide p, .slide blockquote, .slide iframe, .slide img, .slide ul, .slide ol, .slide pre, .slide video {
  264 + margin-bottom: 1em;
  265 +}
  266 +.slide pre {
  267 + white-space: pre;
  268 + white-space: pre-wrap;
  269 + word-wrap: break-word;
  270 + padding: 1em;
  271 + border: 1px solid #888;
  272 +}
  273 +.slide em {
  274 + font-style: italic;
  275 +}
  276 +.slide li {
  277 + padding: .25em 0;
  278 + vertical-align: middle;
  279 +}
  280 +
  281 +.deck-before, .deck-previous, .deck-next, .deck-after {
  282 + position: absolute;
  283 + left: -999em;
  284 + top: -999em;
  285 +}
  286 +
  287 +.deck-current {
  288 + z-index: 2;
  289 +}
  290 +
  291 +.slide .slide {
  292 + visibility: hidden;
  293 + position: static;
  294 + min-height: 0;
  295 +}
  296 +
  297 +.deck-child-current {
  298 + position: static;
  299 + z-index: 2;
  300 +}
  301 +.deck-child-current .slide {
  302 + visibility: hidden;
  303 +}
  304 +.deck-child-current .deck-previous, .deck-child-current .deck-before, .deck-child-current .deck-current {
  305 + visibility: visible;
  306 +}
  307 +
  308 +@media screen and (max-device-width: 480px) {
  309 + /* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
  310 +}
  311 +@media print {
  312 + * {
  313 + background: transparent !important;
  314 + color: black !important;
  315 + text-shadow: none !important;
  316 + filter: none !important;
  317 + -ms-filter: none !important;
  318 + -webkit-box-reflect: none !important;
  319 + -moz-box-reflect: none !important;
  320 + -webkit-box-shadow: none !important;
  321 + -moz-box-shadow: none !important;
  322 + box-shadow: none !important;
  323 + }
  324 + * :before, * :after {
  325 + display: none !important;
  326 + }
  327 +
  328 + a, a:visited {
  329 + color: #444 !important;
  330 + text-decoration: underline;
  331 + }
  332 +
  333 + a[href]:after {
  334 + content: " (" attr(href) ")";
  335 + }
  336 +
  337 + abbr[title]:after {
  338 + content: " (" attr(title) ")";
  339 + }
  340 +
  341 + .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {
  342 + content: "";
  343 + }
  344 +
  345 + pre, blockquote {
  346 + border: 1px solid #999;
  347 + page-break-inside: avoid;
  348 + }
  349 +
  350 + thead {
  351 + display: table-header-group;
  352 + }
  353 +
  354 + tr, img {
  355 + page-break-inside: avoid;
  356 + }
  357 +
  358 + @page {
  359 + margin: 0.5cm;
  360 +}
  361 +
  362 + p, h2, h3 {
  363 + orphans: 3;
  364 + widows: 3;
  365 + }
  366 +
  367 + h2, h3 {
  368 + page-break-after: avoid;
  369 + }
  370 +
  371 + .slide {
  372 + position: static !important;
  373 + visibility: visible !important;
  374 + display: block !important;
  375 + -webkit-transform: none !important;
  376 + -moz-transform: none !important;
  377 + -o-transform: none !important;
  378 + -ms-transform: none !important;
  379 + transform: none !important;
  380 + opacity: 1 !important;
  381 + }
  382 +
  383 + h1, .vcenter {
  384 + -webkit-transform: none !important;
  385 + -moz-transform: none !important;
  386 + -o-transform: none !important;
  387 + -ms-transform: none !important;
  388 + transform: none !important;
  389 + padding: 0 !important;
  390 + position: static !important;
  391 + }
  392 +
  393 + .deck-container > .slide {
  394 + page-break-after: always;
  395 + }
  396 +
  397 + .deck-container {
  398 + width: 100% !important;
  399 + height: auto !important;
  400 + padding: 0 !important;
  401 + display: block !important;
  402 + }
  403 +
  404 + script {
  405 + display: none;
  406 + }
  407 +}
498 Persistent data structures in ClojureScript/deck.js/core/deck.core.js
... ... @@ -0,0 +1,498 @@
  1 +/*!
  2 +Deck JS - deck.core
  3 +Copyright (c) 2011 Caleb Troughton
  4 +Dual licensed under the MIT license and GPL license.
  5 +https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt
  6 +https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt
  7 +*/
  8 +
  9 +/*
  10 +The deck.core module provides all the basic functionality for creating and
  11 +moving through a deck. It does so by applying classes to indicate the state of
  12 +the deck and its slides, allowing CSS to take care of the visual representation
  13 +of each state. It also provides methods for navigating the deck and inspecting
  14 +its state, as well as basic key bindings for going to the next and previous
  15 +slides. More functionality is provided by wholly separate extension modules
  16 +that use the API provided by core.
  17 +*/
  18 +(function($, deck, document, undefined) {
  19 + var slides, // Array of all the uh, slides...
  20 + current, // Array index of the current slide
  21 + $container, // Keeping this cached
  22 +
  23 + events = {
  24 + /*
  25 + This event fires whenever the current slide changes, whether by way of
  26 + next, prev, or go. The callback function is passed two parameters, from
  27 + and to, equal to the indices of the old slide and the new slide
  28 + respectively. If preventDefault is called on the event within this handler
  29 + the slide change does not occur.
  30 +
  31 + $(document).bind('deck.change', function(event, from, to) {
  32 + alert('Moving from slide ' + from + ' to ' + to);
  33 + });
  34 + */
  35 + change: 'deck.change',
  36 +
  37 + /*
  38 + This event fires at the beginning of deck initialization, after the options
  39 + are set but before the slides array is created. This event makes a good hook
  40 + for preprocessing extensions looking to modify the deck.
  41 + */
  42 + beforeInitialize: 'deck.beforeInit',
  43 +