showoff 0.13.0 → 0.13.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c54ccde20fbe6df23ec6b8760dc4c379fdd5e510
4
- data.tar.gz: 1da82fd0d90fbdeffee8da521ab4fba731046672
3
+ metadata.gz: 7a500763400a9b53499d748a5128aad932228638
4
+ data.tar.gz: 34570d4eb7bbd84cbccac8d61b7fd44ebf1b47ee
5
5
  SHA512:
6
- metadata.gz: 8d3d1f9f9e699646c389383282dabb862dd7c9ae0fe681a9a63f1efc158dea921847ba10a34b415352a47e74bed93a0a040fac600e416445d2f2545d14481087
7
- data.tar.gz: 6c100036f06dd912ba08f8eeca4670807d342103e4e9db5946fafbee629e10f9765785ef074a8aa06006c231b107d136090745ef3ed74c1fa5b34e661242621d
6
+ metadata.gz: 706412e299a95a4d67d6de1ae9f5c9f66042c073905f237a1bb6bb33c392e14e5bc6664066a22743309401e83ad5e02cd346f788555edb884412e807557503d3
7
+ data.tar.gz: 50f32ce8a733aa0f7866671f4c05c4273f050161be8a4836ee58eaacef5af53a618da3c0f3eadaec3924e676682351c15b36ddc842b333eedb32228caa8fabf3
@@ -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.13.0'
3
+ SHOWOFF_VERSION = '0.13.1'
data/public/js/showoff.js CHANGED
@@ -702,14 +702,14 @@ function renderForm(form) {
702
702
  // poke inside to get options, then render each as a span and replace the select
703
703
  var parent = $(input).parent();
704
704
 
705
- $(input).children('option').each(function() {
706
- var text = $(input).text();
707
- var classes = $(input).attr('class');
705
+ $(input).children('option').each(function(index, option) {
706
+ var text = $(option).text();
707
+ var classes = $(option).attr('class');
708
708
 
709
709
  if(! text.match(/^-+$/)) {
710
710
  var resultDiv = $('<div>')
711
711
  .addClass('item')
712
- .attr('data-value', $(input).val())
712
+ .attr('data-value', $(option).val())
713
713
  .append($('<span>').addClass('answer').text(text))
714
714
  .append($('<div>').addClass('bar'));
715
715
  if (classes) {
@@ -1184,7 +1184,7 @@ var removeResults = function() {
1184
1184
 
1185
1185
  var print = function(text) {
1186
1186
  removeResults();
1187
- var _results = $('<div>').addClass('results').html('<pre>'+$.print(text, {max_string:500})+'</pre>');
1187
+ var _results = $('<div>').addClass('results').html('<pre>'+$.print(text, {max_string:1500})+'</pre>');
1188
1188
  $('body').append(_results);
1189
1189
  _results.click(removeResults);
1190
1190
 
data/views/presenter.erb CHANGED
@@ -95,8 +95,7 @@
95
95
 
96
96
  <div id="bottom">
97
97
  <div id="buttonNav">
98
- <span id="buttonPrev"><label class="fa fa-chevron-left fa-lg"> Previous</label></span>
99
- <span id="buttonNext"><label class="fa fa-chevron-right fa-lg">Next</label></span>
98
+ <div id="buttonPrev"><i class="fa fa-chevron-left fa-lg"></i> Previous</div><div id="buttonNext">Next <i class="fa fa-chevron-right fa-lg"></i></div>
100
99
  </div>
101
100
  <div id="questions">
102
101
  <h3>Audience Questions</h3>
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.0
4
+ version: 0.13.1
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-06-28 00:00:00.000000000 Z
11
+ date: 2016-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -333,7 +333,8 @@ files:
333
333
  - public/js/presenter.js
334
334
  - public/js/showoff.js
335
335
  homepage: http://github.com/puppetlabs/showoff
336
- licenses: []
336
+ licenses:
337
+ - MIT
337
338
  metadata: {}
338
339
  post_install_message: |2+
339
340
  _________________________________________