Skip to content

Commit b28303c

Browse files
committed
Added deck.js sources
1 parent 8a807ac commit b28303c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+8956
-0
lines changed

git-next-level/.deck.js/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
## v1.1.0
4+
5+
- Expand `beforeInit` event to allow halting of init event.
6+
- Create alternative init signature with single options object using new `options.selectors.slides` option.
7+
- Added methods `getTopLevelSlides` and `getNestedSlides`.
8+
- Integrated hash plugin into core.
9+
- Allow for touch swiping to be axis specific or disabled.
10+
- Include ARIA attribute considerations in core and extensions.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2011-2014 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.

git-next-level/.deck.js/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
SASSOPTS=--scss --style expanded
2+
3+
default: generate
4+
5+
generate:
6+
sass --update ${SASSOPTS} .
7+
8+
force:
9+
sass --update ${SASSOPTS} --force .
10+
11+
watch:
12+
sass --watch ${SASSOPTS} .

git-next-level/.deck.js/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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/archive/latest.zip), 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://jasmine.github.io/) 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+
## Printing
31+
32+
Core includes stripped down black and white print styles for the standard slide template that is suitable for handouts.
33+
34+
## Awesome Contributors
35+
36+
- [jbuck](https://github.com/jbuck)
37+
- [cykod](https://github.com/cykod)
38+
- [dougireton](https://github.com/dougireton)
39+
- [awirick](https://github.com/awirick)
40+
- Daniel Knittl-Frank
41+
- [alexch](https://github.com/alexch)
42+
- [twitwi](https://github.com/twitwi)
43+
44+
If you would like to contribute a patch to deck.js please do as much as you can of the following:
45+
46+
- Add or amend Jasmine tests.
47+
- Add inline documentation.
48+
- If the standard snippet of an extension changes, please change it in both the introduction deck and the snippet html in the extension folder.
49+
- 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.
50+
51+
## License
52+
53+
Copyright (c) 2011-2014 Caleb Troughton
54+
55+
Licensed under the [MIT license](https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt)
56+
57+
## Donations
58+
59+
[![Gittip donate
60+
button](http://img.shields.io/gittip/imakewebthings.png)](https://www.gittip.com/imakewebthings/ "Donate weekly to this project using Gittip")
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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" media="screen" href="core/deck.core.css">
12+
13+
<!-- Extension CSS files go here. Remove or add as needed. -->
14+
<link rel="stylesheet" media="screen" href="extensions/goto/deck.goto.css">
15+
<link rel="stylesheet" media="screen" href="extensions/menu/deck.menu.css">
16+
<link rel="stylesheet" media="screen" href="extensions/navigation/deck.navigation.css">
17+
<link rel="stylesheet" media="screen" href="extensions/status/deck.status.css">
18+
<link rel="stylesheet" media="screen" href="extensions/scale/deck.scale.css">
19+
20+
<!-- Style theme. More available in /themes/style/ or create your own. -->
21+
<link rel="stylesheet" media="screen" href="themes/style/web-2.0.css">
22+
23+
<!-- Transition theme. More available in /themes/transition/ or create your own. -->
24+
<link rel="stylesheet" media="screen" href="themes/transition/horizontal-slide.css">
25+
26+
<!-- Basic black and white print styles -->
27+
<link rel="stylesheet" media="print" href="core/print.css">
28+
29+
<!-- Required Modernizr file -->
30+
<script src="modernizr.custom.js"></script>
31+
</head>
32+
<body>
33+
<div class="deck-container">
34+
35+
<!-- Begin slides. Just make elements with a class of slide. -->
36+
37+
<section class="slide">
38+
<h1>Slide</h1>
39+
</section>
40+
41+
<section class="slide">
42+
<h1>Content</h1>
43+
</section>
44+
45+
<section class="slide">
46+
<h1>Here</h1>
47+
</section>
48+
49+
<!-- End slides. -->
50+
51+
<!-- Begin extension snippets. Add or remove as needed. -->
52+
53+
<!-- deck.navigation snippet -->
54+
<div aria-role="navigation">
55+
<a href="#" class="deck-prev-link" title="Previous">&#8592;</a>
56+
<a href="#" class="deck-next-link" title="Next">&#8594;</a>
57+
</div>
58+
59+
<!-- deck.status snippet -->
60+
<p class="deck-status" aria-role="status">
61+
<span class="deck-status-current"></span>
62+
/
63+
<span class="deck-status-total"></span>
64+
</p>
65+
66+
<!-- deck.goto snippet -->
67+
<form action="." method="get" class="goto-form">
68+
<label for="goto-slide">Go to slide:</label>
69+
<input type="text" name="slidenum" id="goto-slide" list="goto-datalist">
70+
<datalist id="goto-datalist"></datalist>
71+
<input type="submit" value="Go">
72+
</form>
73+
74+
<!-- End extension snippets. -->
75+
</div>
76+
77+
<!-- Required JS files. -->
78+
<script src="jquery.min.js"></script>
79+
<script src="core/deck.core.js"></script>
80+
81+
<!-- Extension JS files. Add or remove as needed. -->
82+
<script src="extensions/menu/deck.menu.js"></script>
83+
<script src="extensions/goto/deck.goto.js"></script>
84+
<script src="extensions/status/deck.status.js"></script>
85+
<script src="extensions/navigation/deck.navigation.js"></script>
86+
<script src="extensions/scale/deck.scale.js"></script>
87+
88+
<!-- Initialize the deck. You can put this in an external file if desired. -->
89+
<script>
90+
$(function() {
91+
$.deck('.slide');
92+
});
93+
</script>
94+
</body>
95+
</html>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
html, body {
2+
height: 100%;
3+
padding: 0;
4+
margin: 0;
5+
}
6+
7+
.deck-container {
8+
position: relative;
9+
min-height: 100%;
10+
margin: 0 auto;
11+
overflow: hidden;
12+
overflow-y: auto;
13+
}
14+
.js .deck-container {
15+
visibility: hidden;
16+
}
17+
.ready .deck-container {
18+
visibility: visible;
19+
}
20+
.touch .deck-container {
21+
-webkit-text-size-adjust: none;
22+
-moz-text-size-adjust: none;
23+
}
24+
25+
.deck-loading {
26+
display: none;
27+
}
28+
29+
.slide {
30+
width: auto;
31+
min-height: 100%;
32+
position: relative;
33+
}
34+
35+
.deck-before, .deck-previous, .deck-next, .deck-after {
36+
position: absolute;
37+
left: -999em;
38+
top: -999em;
39+
}
40+
41+
.deck-current {
42+
z-index: 2;
43+
}
44+
45+
.slide .slide {
46+
visibility: hidden;
47+
position: static;
48+
min-height: 0;
49+
}
50+
51+
.deck-child-current {
52+
position: static;
53+
z-index: 2;
54+
}
55+
.deck-child-current .slide {
56+
visibility: hidden;
57+
}
58+
.deck-child-current .deck-previous, .deck-child-current .deck-before, .deck-child-current .deck-current {
59+
visibility: visible;
60+
}

0 commit comments

Comments
 (0)