Permalink
Browse files

initial stub of slide deck

  • Loading branch information...
1 parent 41f4b83 commit 912e71eb0edb55368b3a808f534ccc20d950110e @Trott Trott committed Jul 19, 2014
Showing with 9,214 additions and 0 deletions.
  1. +10 −0 CHANGELOG.md
  2. +21 −0 MIT-license.txt
  3. +12 −0 Makefile
  4. +95 −0 boilerplate.html
  5. +60 −0 core/deck.core.css
  6. +748 −0 core/deck.core.js
  7. +65 −0 core/deck.core.scss
  8. +25 −0 core/print.css
  9. +14 −0 core/print.scss
  10. +36 −0 extensions/goto/deck.goto.css
  11. +7 −0 extensions/goto/deck.goto.html
  12. +190 −0 extensions/goto/deck.goto.js
  13. +39 −0 extensions/goto/deck.goto.scss
  14. +45 −0 extensions/menu/deck.menu.css
  15. +225 −0 extensions/menu/deck.menu.js
  16. +55 −0 extensions/menu/deck.menu.scss
  17. +42 −0 extensions/navigation/deck.navigation.css
  18. +5 −0 extensions/navigation/deck.navigation.html
  19. +94 −0 extensions/navigation/deck.navigation.js
  20. +44 −0 extensions/navigation/deck.navigation.scss
  21. +20 −0 extensions/scale/deck.scale.css
  22. +190 −0 extensions/scale/deck.scale.js
  23. +22 −0 extensions/scale/deck.scale.scss
  24. +18 −0 extensions/status/deck.status.css
  25. +6 −0 extensions/status/deck.status.html
  26. +108 −0 extensions/status/deck.status.js
  27. +18 −0 extensions/status/deck.status.scss
  28. BIN img/ucsf.jpg
  29. +96 −0 index.html
  30. +215 −0 introduction/index.html
  31. +6 −0 jquery.min.js
  32. +4 −0 modernizr.custom.js
  33. +21 −0 test/fixtures/empty.html
  34. +36 −0 test/fixtures/nesteds.html
  35. +44 −0 test/fixtures/standard.html
  36. +37 −0 test/index.html
  37. +190 −0 test/lib/jasmine-html.js
  38. +288 −0 test/lib/jasmine-jquery.js
  39. +166 −0 test/lib/jasmine.css
  40. +2,477 −0 test/lib/jasmine.js
  41. +3 −0 test/settings.js
  42. +527 −0 test/spec.core.js
  43. +154 −0 test/spec.goto.js
  44. +83 −0 test/spec.menu.js
  45. +63 −0 test/spec.navigation.js
  46. +57 −0 test/spec.scale.js
  47. +60 −0 test/spec.status.js
  48. +300 −0 themes/style/_reset.scss
  49. +421 −0 themes/style/neon.css
  50. +148 −0 themes/style/neon.scss
  51. +389 −0 themes/style/swiss.css
  52. +109 −0 themes/style/swiss.scss
  53. +500 −0 themes/style/web-2.0.css
  54. +228 −0 themes/style/web-2.0.scss
  55. +35 −0 themes/transition/fade.css
  56. +59 −0 themes/transition/fade.scss
  57. +53 −0 themes/transition/horizontal-slide.css
  58. +72 −0 themes/transition/horizontal-slide.scss
  59. +67 −0 themes/transition/vertical-slide.css
  60. +92 −0 themes/transition/vertical-slide.scss
View
@@ -0,0 +1,10 @@
+# Changelog
+
+## v1.1.0
+
+- Expand `beforeInit` event to allow halting of init event.
+- Create alternative init signature with single options object using new `options.selectors.slides` option.
+- Added methods `getTopLevelSlides` and `getNestedSlides`.
+- Integrated hash plugin into core.
+- Allow for touch swiping to be axis specific or disabled.
+- Include ARIA attribute considerations in core and extensions.
View
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2011-2014 Caleb Troughton
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
@@ -0,0 +1,12 @@
+SASSOPTS=--scss --style expanded
+
+default: generate
+
+generate:
+ sass --update ${SASSOPTS} .
+
+force:
+ sass --update ${SASSOPTS} --force .
+
+watch:
+ sass --watch ${SASSOPTS} .
View
@@ -0,0 +1,95 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=1024, user-scalable=no">
+
+ <title>Your deck.js Presentation</title>
+
+ <!-- Required stylesheet -->
+ <link rel="stylesheet" media="screen" href="core/deck.core.css">
+
+ <!-- Extension CSS files go here. Remove or add as needed. -->
+ <link rel="stylesheet" media="screen" href="extensions/goto/deck.goto.css">
+ <link rel="stylesheet" media="screen" href="extensions/menu/deck.menu.css">
+ <link rel="stylesheet" media="screen" href="extensions/navigation/deck.navigation.css">
+ <link rel="stylesheet" media="screen" href="extensions/status/deck.status.css">
+ <link rel="stylesheet" media="screen" href="extensions/scale/deck.scale.css">
+
+ <!-- Style theme. More available in /themes/style/ or create your own. -->
+ <link rel="stylesheet" media="screen" href="themes/style/web-2.0.css">
+
+ <!-- Transition theme. More available in /themes/transition/ or create your own. -->
+ <link rel="stylesheet" media="screen" href="themes/transition/horizontal-slide.css">
+
+ <!-- Basic black and white print styles -->
+ <link rel="stylesheet" media="print" href="core/print.css">
+
+ <!-- Required Modernizr file -->
+ <script src="modernizr.custom.js"></script>
+</head>
+<body>
+ <div class="deck-container">
+
+ <!-- Begin slides. Just make elements with a class of slide. -->
+
+ <section class="slide">
+ <h1>Slide</h1>
+ </section>
+
+ <section class="slide">
+ <h1>Content</h1>
+ </section>
+
+ <section class="slide">
+ <h1>Here</h1>
+ </section>
+
+ <!-- End slides. -->
+
+ <!-- Begin extension snippets. Add or remove as needed. -->
+
+ <!-- deck.navigation snippet -->
+ <div aria-role="navigation">
+ <a href="#" class="deck-prev-link" title="Previous">&#8592;</a>
+ <a href="#" class="deck-next-link" title="Next">&#8594;</a>
+ </div>
+
+ <!-- deck.status snippet -->
+ <p class="deck-status" aria-role="status">
+ <span class="deck-status-current"></span>
+ /
+ <span class="deck-status-total"></span>
+ </p>
+
+ <!-- deck.goto snippet -->
+ <form action="." method="get" class="goto-form">
+ <label for="goto-slide">Go to slide:</label>
+ <input type="text" name="slidenum" id="goto-slide" list="goto-datalist">
+ <datalist id="goto-datalist"></datalist>
+ <input type="submit" value="Go">
+ </form>
+
+ <!-- End extension snippets. -->
+ </div>
+
+<!-- Required JS files. -->
+<script src="jquery.min.js"></script>
+<script src="core/deck.core.js"></script>
+
+<!-- Extension JS files. Add or remove as needed. -->
+<script src="extensions/menu/deck.menu.js"></script>
+<script src="extensions/goto/deck.goto.js"></script>
+<script src="extensions/status/deck.status.js"></script>
+<script src="extensions/navigation/deck.navigation.js"></script>
+<script src="extensions/scale/deck.scale.js"></script>
+
+<!-- Initialize the deck. You can put this in an external file if desired. -->
+<script>
+ $(function() {
+ $.deck('.slide');
+ });
+</script>
+</body>
+</html>
View
@@ -0,0 +1,60 @@
+html, body {
+ height: 100%;
+ padding: 0;
+ margin: 0;
+}
+
+.deck-container {
+ position: relative;
+ min-height: 100%;
+ margin: 0 auto;
+ overflow: hidden;
+ overflow-y: auto;
+}
+.js .deck-container {
+ visibility: hidden;
+}
+.ready .deck-container {
+ visibility: visible;
+}
+.touch .deck-container {
+ -webkit-text-size-adjust: none;
+ -moz-text-size-adjust: none;
+}
+
+.deck-loading {
+ display: none;
+}
+
+.slide {
+ width: auto;
+ min-height: 100%;
+ position: relative;
+}
+
+.deck-before, .deck-previous, .deck-next, .deck-after {
+ position: absolute;
+ left: -999em;
+ top: -999em;
+}
+
+.deck-current {
+ z-index: 2;
+}
+
+.slide .slide {
+ visibility: hidden;
+ position: static;
+ min-height: 0;
+}
+
+.deck-child-current {
+ position: static;
+ z-index: 2;
+}
+.deck-child-current .slide {
+ visibility: hidden;
+}
+.deck-child-current .deck-previous, .deck-child-current .deck-before, .deck-child-current .deck-current {
+ visibility: visible;
+}
Oops, something went wrong.

0 comments on commit 912e71e

Please sign in to comment.