showoff 0.13.3 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/showoff/version.rb +1 -1
- data/lib/showoff.rb +3 -0
- data/lib/showoff_utils.rb +6 -0
- data/public/css/presenter.css +2 -1
- data/public/js/presenter.js +2 -2
- data/public/js/showoff.js +16 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2c16f1de4dfa9e1401b2d8882200287df206d61
|
4
|
+
data.tar.gz: e4db72901b96e5faf1c35ad018e60d3c29a14865
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95c4ef9e3f7d94060af10f68bf7a7b0188c99b034eefc431e75e26cf4943d7697ccbf1d6f8c3cc884af6f97f03534af19b04c05e2cc00f615d6e1c12826667ed
|
7
|
+
data.tar.gz: c9c46ab3f68540dd773d7140c05d3e3cb8c23646e0a945ed7b0b5c455418e9dd9a10837f4bf0e33ae0bbe6bac72e8056944eaf03e29f43dc0f94a857d37a6f22
|
data/lib/showoff/version.rb
CHANGED
data/lib/showoff.rb
CHANGED
@@ -997,6 +997,9 @@ class ShowOff < Sinatra::Application
|
|
997
997
|
end
|
998
998
|
|
999
999
|
def slides(static=false)
|
1000
|
+
# If we're displaying from a repository, let's update it
|
1001
|
+
ShowOffUtils.update(settings.verbose) if settings.url
|
1002
|
+
|
1000
1003
|
# if we have a cache and we're not asking to invalidate it
|
1001
1004
|
return @@cache if (@@cache and params['cache'] != 'clear')
|
1002
1005
|
content = get_slides_html(:static=>static)
|
data/lib/showoff_utils.rb
CHANGED
@@ -215,9 +215,15 @@ class ShowOffUtils
|
|
215
215
|
yield if block_given?
|
216
216
|
end
|
217
217
|
end
|
218
|
+
end
|
218
219
|
|
220
|
+
# just update the repo in cwd
|
221
|
+
def self.update(verbose=false)
|
222
|
+
puts "Updating presentation repository..." if verbose
|
223
|
+
system('git', 'pull')
|
219
224
|
end
|
220
225
|
|
226
|
+
|
221
227
|
# Makes a slide as a string.
|
222
228
|
# [title] title of the slide
|
223
229
|
# [classes] any "classes" to include, such as 'smaller', 'transition', etc.
|
data/public/css/presenter.css
CHANGED
data/public/js/presenter.js
CHANGED
@@ -632,12 +632,12 @@ function stopTimer() {
|
|
632
632
|
********************/
|
633
633
|
function toggleFollower()
|
634
634
|
{
|
635
|
-
mode.follow = $("#remoteToggle").
|
635
|
+
mode.follow = $("#remoteToggle").prop("checked");
|
636
636
|
getPosition();
|
637
637
|
}
|
638
638
|
|
639
639
|
function toggleUpdater()
|
640
640
|
{
|
641
|
-
mode.update = $("#followerToggle").
|
641
|
+
mode.update = $("#followerToggle").prop("checked");
|
642
642
|
update();
|
643
643
|
}
|
data/public/js/showoff.js
CHANGED
@@ -82,18 +82,21 @@ function loadSlides(load_slides, prefix, reload) {
|
|
82
82
|
if (reload) {
|
83
83
|
url += "?cache=clear";
|
84
84
|
}
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
85
|
+
//load slides offscreen, wait for images and then initialize
|
86
|
+
if (load_slides) {
|
87
|
+
$("#slides").load(url, false, function(){
|
88
|
+
$("#slides img").batchImageLoad({
|
89
|
+
loadingCompleteCallback: initializePresentation(prefix)
|
90
|
+
});
|
91
|
+
if (reload) {
|
92
|
+
location.reload(true);
|
93
|
+
}
|
94
|
+
})
|
95
|
+
} else {
|
96
|
+
$("#slides img").batchImageLoad({
|
97
|
+
loadingCompleteCallback: initializePresentation(prefix)
|
98
|
+
})
|
99
|
+
}
|
97
100
|
}
|
98
101
|
|
99
102
|
function initializePresentation(prefix) {
|
@@ -1148,7 +1151,7 @@ function toggleDebug () {
|
|
1148
1151
|
|
1149
1152
|
function reloadSlides () {
|
1150
1153
|
if (confirm('Are you sure you want to reload the slides?')) {
|
1151
|
-
|
1154
|
+
$('html,body').css('cursor','progress');
|
1152
1155
|
loadSlides(loadSlidesBool, loadSlidesPrefix, true);
|
1153
1156
|
showSlide();
|
1154
1157
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: showoff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|