showoff 0.14.2 → 0.14.3
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/Rakefile +1 -1
- data/lib/showoff/version.rb +1 -1
- data/public/css/showoff.css +11 -0
- data/public/js/showoff.js +27 -9
- data/public/unsupported.html +35 -0
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6af0328fa0f7902f4b8b41aab135dc68ecb5b18b
|
|
4
|
+
data.tar.gz: 69fcaa2c090c7b69e930aeeaae98b6680519dfaa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb7757af9a213f5d232674d29e3885791466e961d0eab032d61fb4f68fde5f1ea1647b95e22812d9bd1f6fed97a7ce87b0ba40c7c43ac10d5693e8223e291795
|
|
7
|
+
data.tar.gz: 4fea23475193b76fc27494aa6f345efbc7a6a4ab54333d201f483ed8dfa44104eb7d91cb07660720f788dd38f94b5f3a2a0162ac032163f9cc5ebae361d2f65c
|
data/Rakefile
CHANGED
|
@@ -19,7 +19,7 @@ end
|
|
|
19
19
|
desc "Build Docker image"
|
|
20
20
|
task 'docker' do
|
|
21
21
|
Dir.chdir('build') do
|
|
22
|
-
system("docker build -t binford2k/showoff:#{version} -t binford2k/showoff:latest .")
|
|
22
|
+
system("docker build --no-cache=true -t binford2k/showoff:#{version} -t binford2k/showoff:latest .")
|
|
23
23
|
end
|
|
24
24
|
puts
|
|
25
25
|
puts 'Start container with: docker run -p 9090:9090 binford2k/showoff'
|
data/lib/showoff/version.rb
CHANGED
data/public/css/showoff.css
CHANGED
|
@@ -925,6 +925,17 @@ form .element {
|
|
|
925
925
|
.callout.stop:before { content: "\f05e"; } /* fa-ban */
|
|
926
926
|
.callout.thumbsup:before { content: "\f164"; } /* fa-thumbs-up */
|
|
927
927
|
|
|
928
|
+
/* callouts used on error pages */
|
|
929
|
+
.error .callout {
|
|
930
|
+
padding-left: 4em;
|
|
931
|
+
margin: 1em;
|
|
932
|
+
background-color: #ffe0e0;
|
|
933
|
+
padding-bottom: 0;
|
|
934
|
+
}
|
|
935
|
+
.error .callout p:first-of-type {
|
|
936
|
+
margin-top: 0;
|
|
937
|
+
}
|
|
938
|
+
|
|
928
939
|
/**********************
|
|
929
940
|
*** end callouts ***
|
|
930
941
|
**********************/
|
data/public/js/showoff.js
CHANGED
|
@@ -28,24 +28,31 @@ var mode = { track: true, follow: true };
|
|
|
28
28
|
$(document).on('click', 'code.execute', executeCode);
|
|
29
29
|
|
|
30
30
|
function setupPreso(load_slides, prefix) {
|
|
31
|
-
if (preso_started)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return
|
|
31
|
+
if (preso_started) {
|
|
32
|
+
alert("already started");
|
|
33
|
+
return;
|
|
35
34
|
}
|
|
36
|
-
preso_started = true
|
|
35
|
+
preso_started = true;
|
|
36
|
+
|
|
37
|
+
if (! cssPropertySupported('flex') ) {
|
|
38
|
+
window.location = 'unsupported.html';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (! cssPropertySupported('zoom') ) {
|
|
42
|
+
$('body').addClass('no-zoom');
|
|
43
|
+
}
|
|
37
44
|
|
|
38
45
|
// save our query string as an object for later use
|
|
39
46
|
query = $.parseQuery();
|
|
40
47
|
|
|
41
48
|
// Load slides fetches images
|
|
42
|
-
loadSlidesBool = load_slides
|
|
43
|
-
loadSlidesPrefix = prefix || '/'
|
|
44
|
-
loadSlides(loadSlidesBool, loadSlidesPrefix)
|
|
49
|
+
loadSlidesBool = load_slides;
|
|
50
|
+
loadSlidesPrefix = prefix || '/';
|
|
51
|
+
loadSlides(loadSlidesBool, loadSlidesPrefix);
|
|
45
52
|
|
|
46
53
|
setupSideMenu();
|
|
47
54
|
|
|
48
|
-
doDebugStuff()
|
|
55
|
+
doDebugStuff();
|
|
49
56
|
|
|
50
57
|
// bind event handlers
|
|
51
58
|
toggleKeybinding('on');
|
|
@@ -1537,3 +1544,14 @@ function setupStats()
|
|
|
1537
1544
|
function mobile() {
|
|
1538
1545
|
return ( $(window).width() <= 480 )
|
|
1539
1546
|
}
|
|
1547
|
+
|
|
1548
|
+
/* check browser support for one or more css properties */
|
|
1549
|
+
function cssPropertySupported(properties) {
|
|
1550
|
+
properties = typeof(properties) == 'string' ? Array(properties) : properties
|
|
1551
|
+
|
|
1552
|
+
var supported = properties.filter(function(property){
|
|
1553
|
+
return property in document.body.style;
|
|
1554
|
+
});
|
|
1555
|
+
|
|
1556
|
+
return properties.length == supported.length;
|
|
1557
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
2
|
+
<head>
|
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
4
|
+
<title>Unsupported Browser</title>
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
+
|
|
7
|
+
<link rel="stylesheet" type="text/css" href="/css/showoff.css">
|
|
8
|
+
<link rel="stylesheet" type="text/css" href="/css/font-awesome-4.4.0/css/font-awesome.min.css">
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body class="error">
|
|
12
|
+
<h1>Unsupported Browser</h1>
|
|
13
|
+
<h2>We regret to inform you that the browser you are using is not supported.</h2>
|
|
14
|
+
|
|
15
|
+
<div class="callout warning">
|
|
16
|
+
<p>
|
|
17
|
+
Showoff uses many modern web technologies, such as CSS transforms and the
|
|
18
|
+
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Using_CSS_flexible_boxes">Flexbox layout mode</a>
|
|
19
|
+
that's only been in use for about five years or so.
|
|
20
|
+
</p>
|
|
21
|
+
<p>
|
|
22
|
+
While we'd dearly love to support your browser of choice, it's genuinely infeasible
|
|
23
|
+
to do so. Instead, we suggest that you update to a more recent browser. Any major
|
|
24
|
+
browser released in the last few years will work. Even Internet Explorer 11 or above
|
|
25
|
+
will work reasonably well.
|
|
26
|
+
</p>
|
|
27
|
+
<p>
|
|
28
|
+
If you are on a corporate Windows machine with locked down installation privileges,
|
|
29
|
+
we also suggest trying out <a href="http://portableapps.com/apps/internet/google_chrome_portable">Portable Chrome</a>,
|
|
30
|
+
which will install into a self-contained bundle into your user profile only.
|
|
31
|
+
</p>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
</body>
|
|
35
|
+
</html>
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: showoff
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.14.
|
|
4
|
+
version: 0.14.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Chacon
|
|
8
|
+
- Ben Ford
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
12
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: sinatra
|
|
@@ -174,7 +175,7 @@ description: |2
|
|
|
174
175
|
then startup the showoff server in that directory. It will read in your
|
|
175
176
|
showoff.json file for which sections go in which order and then will give
|
|
176
177
|
you a URL to present from.
|
|
177
|
-
email:
|
|
178
|
+
email: eduteam@puppet.com
|
|
178
179
|
executables:
|
|
179
180
|
- showoff
|
|
180
181
|
extensions: []
|
|
@@ -338,6 +339,7 @@ files:
|
|
|
338
339
|
- public/js/jquery.parsequery.min.js
|
|
339
340
|
- public/js/presenter.js
|
|
340
341
|
- public/js/showoff.js
|
|
342
|
+
- public/unsupported.html
|
|
341
343
|
homepage: https://puppetlabs.github.io/showoff
|
|
342
344
|
licenses:
|
|
343
345
|
- MIT
|