k4slide 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +21 -0
- data/assets/k4slide.css +1 -0
- data/assets/k4slide.js +23509 -0
- data/assets-src/javascripts/k4slide.js +20 -0
- data/assets-src/javascripts/lib/cheesepie/closure/goog/events/ready.js +120 -0
- data/assets-src/javascripts/lib/cheesepie/closure/goog/events/ready_test.html +31 -0
- data/assets-src/javascripts/lib/k4/logger.js +101 -0
- data/assets-src/javascripts/lib/k4/slide/base.js +89 -0
- data/assets-src/javascripts/lib/k4/slide/config.js +75 -0
- data/assets-src/javascripts/lib/k4/slide/controller.js +255 -0
- data/assets-src/javascripts/lib/k4/slide/slide.js +161 -0
- data/assets-src/stylesheets/k4slide.scss +11 -0
- data/assets-src/stylesheets/themes/_config.scss +4 -0
- data/assets-src/stylesheets/themes/_mixin.scss +6 -0
- data/assets-src/stylesheets/themes/base.scss +68 -0
- data/example/example.html +43 -0
- data/example/example.md +19 -0
- data/k4slide.gemspec +28 -0
- data/lib/k4slide/erb/layout.html.erb +13 -0
- data/lib/k4slide/expand_compiler_options.rb +50 -0
- data/lib/k4slide/markdown_compiler.rb +27 -0
- data/lib/k4slide/markdown_renderer.rb +30 -0
- data/lib/k4slide/tasks.rb +158 -0
- data/lib/k4slide/version.rb +3 -0
- data/lib/k4slide.rb +10 -0
- metadata +157 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c26eb2889848342a42427990e238251aba2c4881
|
4
|
+
data.tar.gz: 447b5714bfd0393ce6abc0092b5955c7c40c0b48
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 40faab678242c49a0593e6b87d6886f4388b58465f663cd63ffdb237be308c30fe250b198c11d0c1719043e18fdd27997c4e8034506ce23bbc8fa63a189a9800
|
7
|
+
data.tar.gz: 136b1876f46bbdb83a7d44089ab322e16d7a37c2ad005f87b67727e2755b3e1b07144905c04a7d4faa00fb2019e1c42ba32e4072a037ab885d80eaff01f85bd9
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Shinichirow Kamito
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# K4slide
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'k4slide'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install k4slide
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "k4slide"
|
3
|
+
|
4
|
+
|
5
|
+
K4_ROOT = File.expand_path(File.dirname(__FILE__))
|
6
|
+
|
7
|
+
K4slide::Tasks.install do |config|
|
8
|
+
src_dir = File.expand_path(File.join(File.dirname(__FILE__), 'assets-src'))
|
9
|
+
assets_dir = File.expand_path(File.join(File.dirname(__FILE__), 'assets'))
|
10
|
+
|
11
|
+
# closure
|
12
|
+
config.closure.level = :script # :simple
|
13
|
+
config.closure.target_dir = File.join(src_dir, 'javascripts')
|
14
|
+
config.closure.compiled_dir = File.join(assets_dir)
|
15
|
+
# config.closure.load_paths << File.join(src_dir, 'javascripts/lib')
|
16
|
+
# SCSS
|
17
|
+
config.scss.target_dir = File.join(src_dir, 'stylesheets')
|
18
|
+
config.scss.compiled_dir = File.join(assets_dir)
|
19
|
+
|
20
|
+
# puts config.inspect
|
21
|
+
end
|
data/assets/k4slide.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
div[role="slide"]{position:absolute;top:0px;left:0px}body{background-color:#000000;color:#FFFFFF}body *{font-size:18pt;color:#333}div[role="slide"]{padding:2%;box-sizing:border-box;background-color:#FFFFFF;border-radius:1%;-webkit-border-radius:1%;-moz-border-radius:1%}div[role="slide"]>h1,div[role="slide"] h2,div[role="slide"] h3,div[role="slide"] h4,div[role="slide"] h5,div[role="slide"] ul,div[role="slide"] ol,div[role="slide"] li{margin:0px;padding:0px}div[role="slide"][slide-level="1"]>h1,div[role="slide"][slide-level="1"] h2,div[role="slide"][slide-level="2"]>h1,div[role="slide"][slide-level="2"] h2{margin-top:30%;margin-bottom:3.75%;margin-top:30%;margin-bottom:3.75%;padding-left:1%;font-size:140%}div[role="slide"][slide-level="1"]>h1,div[role="slide"][slide-level="2"]>h1{border-bottom:1px solid #666;border-left:10px solid #666}div[role="slide"][slide-level="1"]>h2,div[role="slide"][slide-level="2"]>h2{border-left:10px solid #666}div[role="slide"][slide-level="1"]>ul,div[role="slide"][slide-level="1"] ol,div[role="slide"][slide-level="2"]>ul,div[role="slide"][slide-level="2"] ol{text-align:right;list-style-type:none}div[role="slide"][slide-level="3"]>h3{border-bottom:1px solid #666;font-size:120%}div[role="slide"]:last-child>h3{display:none}div[role="slide"]:last-child>p{margin-top:30%;margin-bottom:3.75%;text-align:center}
|