showoff 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adcfd9d5011c040a280a60fd5087b939583949ce
4
- data.tar.gz: 2b912728780a73bfc3c290ce0f8571f019b48da8
3
+ metadata.gz: ef6abad0c121f10cf72c52574b55becd5a96bbb2
4
+ data.tar.gz: 5f0b3645d70f14ce2bd52b7b12795e5f7a9f8257
5
5
  SHA512:
6
- metadata.gz: 5343aac662c6221e1b3658dd4a47437a1ae4a3b372e35e2dd9915f5e61feaad45669dc4155e303947090cfdb3040a18e246eb186fb054117f924328d4e7a481b
7
- data.tar.gz: bc0ae7e4ad3ce12dcb3f511512bcbb5be2fc59e0fe7241baba52b3c21cdb68ece6d50355a82c0e3c740cff9b2a027659d1adc1b2781911427680997441d46854
6
+ metadata.gz: 38a5a8e750d7b51a7a57c9a1af3a7298c06af179ad537c908541481714bd8bd1ccf7bcf0ab52d58dcaaca2957ec5e4f64a40950dfd4c7dbd5cc48d80da87da85
7
+ data.tar.gz: 754e19b73fa586e817e480f7da8fcdb6788f38237076079570f4aaf861a6a2eb371ea6a4d2921c11a8d8962b6f905b3c11eacb23ec04a141f15d05b653c33184
@@ -1,3 +1,3 @@
1
1
  # No namespace here since ShowOff is a class and I'd have to inherit from
2
2
  # Sinatra::Application (which we don't want to load here)
3
- SHOWOFF_VERSION = '0.14.1'
3
+ SHOWOFF_VERSION = '0.14.2'
@@ -217,6 +217,7 @@
217
217
  -webkit-order: 1;
218
218
  order: 1;
219
219
  min-width: 0px;
220
+ justify-content: space-between;
220
221
  }
221
222
  #frame {
222
223
  display: -webkit-flex;
@@ -225,6 +226,7 @@
225
226
  flex-flow: row;
226
227
  -webkit-flex: 10;
227
228
  flex: 10;
229
+ max-height: 95%; /* dear Firefox; what's the point of flex-box if we still have to do this crap? */
228
230
  }
229
231
 
230
232
  #preview {
@@ -268,6 +270,7 @@
268
270
  -webkit-flex: 0.5;
269
271
  flex: 0.5;
270
272
  height: 22px;
273
+ max-height: 22px;
271
274
  line-height: 22px;
272
275
  text-transform: uppercase;
273
276
  vertical-align: middle;
@@ -574,7 +574,8 @@ img#disconnected {
574
574
  }
575
575
 
576
576
  /* Add Console "code highlighting" styles to resemble the look of a terminal window. */
577
- pre.highlight code.language-console {
577
+ pre.highlight code.language-console,
578
+ pre.highlight code.console {
578
579
  background: #222;
579
580
  background: url(titlebar/left.png) left top no-repeat, url(titlebar/right.png) right top no-repeat, url(titlebar/center.png) center top repeat-x #222;
580
581
  color: #63de00;
@@ -587,7 +588,8 @@ pre.highlight code.language-console {
587
588
  overflow: hidden;
588
589
  }
589
590
 
590
- pre.highlight code.language-powershellconsole {
591
+ pre.highlight code.language-powershellconsole,
592
+ pre.highlight code.powershellconsole {
591
593
  background: rgb(1, 36, 86);
592
594
  background: url(titlebar/powershell-controls.png) right top no-repeat, url(titlebar/powershell.png) left top repeat-x rgb(1, 36, 86);
593
595
  color: rgb(238, 237, 240);
@@ -927,6 +929,25 @@ form .element {
927
929
  *** end callouts ***
928
930
  **********************/
929
931
 
932
+ /* Render hidden headlines so that when we print with wkhtmltopdf, we can use section
933
+ titles for page headers. it would make sense to put this in the print section, but
934
+ then you get a weird double headline when previewing a print in the browser. */
935
+
936
+ /* make this invisible as possible, while still rendering so that wkhtmltopdf doesn't ignore it */
937
+ h1.section_title {
938
+ color: transparent !important;
939
+ opacity: 0 !important;
940
+ font-size: 0 !important;
941
+ margin: 0 !important;
942
+ padding: 0 !important;
943
+ }
944
+
945
+ /* because the above section headers are h1 elements rendered only in print */
946
+ .content:not(.cover) h1:not(.section_title) {
947
+ border-bottom: 2px solid #222;
948
+ }
949
+
950
+ /**** end hidden headlines ****/
930
951
 
931
952
  /* Tiny mobile devices. Larger devices scale automatically. */
932
953
  @media screen and (max-width: 320px)
@@ -991,20 +1012,6 @@ form .element {
991
1012
  height: 100% !important; /* because otherwise handout notes are cutoff by the inline height set on the slide */
992
1013
  }
993
1014
 
994
- /* make this invisible as possible, while still rendering so that wkhtmltopdf doesn't ignore it */
995
- h1.section_title {
996
- color: transparent !important;
997
- opacity: 0 !important;
998
- font-size: 0 !important;
999
- margin: 0 !important;
1000
- padding: 0 !important;
1001
- }
1002
-
1003
- /* because the above section headers are h1 elements rendered only in print */
1004
- .content:not(.cover) h1:not(.section_title) {
1005
- border-bottom: 2px solid #222;
1006
- }
1007
-
1008
1015
  /* prevent large images from running off the page */
1009
1016
  .content img {
1010
1017
  max-width: 7in;
@@ -711,8 +711,10 @@ function toggleAnnotations()
711
711
 
712
712
  if(mode.annotations) {
713
713
  $('#annotationToolbar').show();
714
- currentSlide.find('canvas.annotations').annotate(annotations);
715
714
  $('canvas.annotations').show();
715
+ if (typeof(currentSlide) != 'undefined') {
716
+ currentSlide.find('canvas.annotations').annotate(annotations);
717
+ }
716
718
  }
717
719
  else {
718
720
  $('#annotationToolbar').hide();
data/public/js/showoff.js CHANGED
@@ -179,16 +179,21 @@ function zoom(presenter) {
179
179
  var wBody = parseFloat(preso.parent().width());
180
180
 
181
181
  var newZoom = Math.min(hBody/hSlide, wBody/wSlide);
182
+
182
183
  // Because Firefox's transform doesn't scale up very well
183
184
  newZoom = newZoom > 1 ? 1 : newZoom - .04;
184
185
 
186
+ // Calculate the new offsets to roughly center the preview again
187
+ var hPos = (hBody - (hSlide * newZoom)) / 2;
188
+ var wPos = (wBody - (wSlide * newZoom)) / 2;
189
+
185
190
  preso.css("zoom", newZoom);
186
191
  preso.css("-ms-zoom", newZoom);
187
192
  preso.css("-webkit-zoom", newZoom);
188
193
  // Firefox doesn't support zoom
189
194
  // Don't use standard transform to avoid modifying Chrome
190
- preso.css("-moz-transform", "scale(" + newZoom + ")");
191
- preso.css("-moz-transform-origin", "0 0 0");
195
+ preso.css("-moz-transform", "scale(" + newZoom + ") translateX(" + wPos + "px) translateY(" + hPos + "px)");
196
+ preso.css("-moz-transform-origin", "0 0");
192
197
 
193
198
  // correct the zoom factor for the presenter
194
199
  if (presenter) {
data/views/presenter.erb CHANGED
@@ -104,13 +104,13 @@
104
104
  </span>
105
105
  <div id="debugInfo"></div>
106
106
  <span id="enableRemote" title="Enables tracking of other presenters.">
107
- <label for="remoteToggle">Enable Remote</label><input type="checkbox" id="remoteToggle" checked />
107
+ <label for="remoteToggle">Enable Remote</label><input type="checkbox" id="remoteToggle" autocomplete="off" checked />
108
108
  </span>
109
109
  <span id="enableFollower" title="Send slide change notifications.">
110
- <label for="followerToggle">Update Follower</label><input type="checkbox" id="followerToggle" checked />
110
+ <label for="followerToggle">Update Follower</label><input type="checkbox" id="followerToggle" autocomplete="off" checked />
111
111
  </span>
112
112
  <span id="enableAnnotations" title="Enable the annotation system.">
113
- <label for="annotationsToggle">Annotations</label><input type="checkbox" id="annotationsToggle" />
113
+ <label for="annotationsToggle">Annotations</label><input type="checkbox" id="annotationsToggle" autocomplete="off" />
114
114
  </span>
115
115
 
116
116
  </div>
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.14.1
4
+ version: 0.14.2
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-08-29 00:00:00.000000000 Z
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -342,29 +342,7 @@ homepage: https://puppetlabs.github.io/showoff
342
342
  licenses:
343
343
  - MIT
344
344
  metadata: {}
345
- post_install_message: |2+
346
- _________________________________________
347
- / Ahoy ahead! \
348
- | Style changes in this release. |
349
- | |
350
- \ Please clear your browser cache. /
351
- -----------------------------------------
352
- \ ^__^
353
- \ (oo)\_______
354
- (__)\ )\/\
355
- ||----w |
356
- || ||
357
-
358
- ************************************************************************
359
- The default styles have been significantly improved. Unfortunately, this
360
- means that if you've created your own custom styles, that you'll need to
361
- refactor them. We do hope you find the new styles simpler and better looking.
362
-
363
- Showoff can optionally use the PDFKit gem to build PDF files using the
364
- `showoff pdf` command. If you'd like your audience to download the PDF,
365
- place it in `_files/share`.
366
- ************************************************************************
367
-
345
+ post_install_message:
368
346
  rdoc_options: []
369
347
  require_paths:
370
348
  - lib