showoff 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/showoff.rb +7 -1
- data/public/js/showoff.js +1 -1
- metadata +5 -19
data/lib/showoff.rb
CHANGED
@@ -269,8 +269,14 @@ class ShowOff < Sinatra::Application
|
|
269
269
|
href = clean_link(link['src'])
|
270
270
|
assets << href if href
|
271
271
|
end
|
272
|
+
|
273
|
+
css = Dir.glob("#{options.public}/**/*.css").map { |path| path.gsub(options.public + '/', '') }
|
274
|
+
assets << css
|
272
275
|
|
273
|
-
|
276
|
+
js = Dir.glob("#{options.public}/**/*.js").map { |path| path.gsub(options.public + '/', '') }
|
277
|
+
assets << js
|
278
|
+
|
279
|
+
assets.uniq.join("\n")
|
274
280
|
end
|
275
281
|
|
276
282
|
def slides(static=false)
|
data/public/js/showoff.js
CHANGED
@@ -45,7 +45,7 @@ function setupPreso(load_slides, prefix) {
|
|
45
45
|
function loadSlides(load_slides, prefix) {
|
46
46
|
//load slides offscreen, wait for images and then initialize
|
47
47
|
if (load_slides) {
|
48
|
-
$("#slides").load("
|
48
|
+
$("#slides").load("slides", false, function(){
|
49
49
|
$("#slides img").batchImageLoad({
|
50
50
|
loadingCompleteCallback: initializePresentation(prefix)
|
51
51
|
})
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: showoff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Chacon
|
@@ -74,24 +74,10 @@ dependencies:
|
|
74
74
|
version: "0"
|
75
75
|
type: :runtime
|
76
76
|
version_requirements: *id004
|
77
|
-
- !ruby/object:Gem::Dependency
|
78
|
-
name: kramdown
|
79
|
-
prerelease: false
|
80
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ">="
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
hash: 3
|
86
|
-
segments:
|
87
|
-
- 0
|
88
|
-
version: "0"
|
89
|
-
type: :runtime
|
90
|
-
version_requirements: *id005
|
91
77
|
- !ruby/object:Gem::Dependency
|
92
78
|
name: gli
|
93
79
|
prerelease: false
|
94
|
-
requirement: &
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
95
81
|
none: false
|
96
82
|
requirements:
|
97
83
|
- - ">="
|
@@ -103,7 +89,7 @@ dependencies:
|
|
103
89
|
- 1
|
104
90
|
version: 1.1.1
|
105
91
|
type: :runtime
|
106
|
-
version_requirements: *
|
92
|
+
version_requirements: *id005
|
107
93
|
description: " ShowOff is a Sinatra web app that reads simple configuration files for a\n presentation. It is sort of like a Keynote web app engine. I am using it\n to do all my talks in 2010, because I have a deep hatred in my heart for\n Keynote and yet it is by far the best in the field.\n\n The idea is that you setup your slide files in section subdirectories and\n then startup the showoff server in that directory. It will read in your\n showoff.json file for which sections go in which order and then will give \n you a URL to present from.\n"
|
108
94
|
email: schacon@gmail.com
|
109
95
|
executables:
|