marxjs-rails 0.2.1 → 0.2.2
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/app/assets/javascripts/marx.js +5 -5
- data/app/assets/stylesheets/marx.css +3 -3
- data/lib/marxjs/rails/version.rb +1 -1
- 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: 6b523f2834228073197ca46459233cef8df24fb9
|
|
4
|
+
data.tar.gz: 71a718fe44ada1b38ca575837bfae1a790efcbdd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bdba4c2138fae9d68cf28315d971394d482f6f42a369b834cade1d8ca08aa41df4b68377322b26e534426afd579eb11407bf815299eb02fd07f8afc587eb96b1
|
|
7
|
+
data.tar.gz: aed5180e84c387b76572566e315559276000f16076c27f35b1175564e97a0985ffd047395a65355466c17f27f54e19b03b7106381ab5968c141fe9a566af18c5
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
window.Marx = function(options) {
|
|
2
2
|
var _this = this;
|
|
3
|
-
return $.getJSON("http://marxjs.
|
|
3
|
+
return $.getJSON("http://marxjs.com/characters", function(data) {
|
|
4
4
|
_this.marx_json = data;
|
|
5
5
|
return _this.initialize(options);
|
|
6
6
|
});
|
|
@@ -34,7 +34,7 @@ $.extend(Marx.prototype, {
|
|
|
34
34
|
create_controls: function() {
|
|
35
35
|
var open_controls,
|
|
36
36
|
_this = this;
|
|
37
|
-
$('body').append("<div class=\"marx-js-controls " + this.settings.position + "\">\n <link rel=\"stylesheet\" href=\"http://marxjs.
|
|
37
|
+
$('body').append("<div class=\"marx-js-controls " + this.settings.position + "\">\n <link rel=\"stylesheet\" href=\"http://marxjs.com/marx.css\">\n</div>");
|
|
38
38
|
this.$el = $('.marx-js-controls');
|
|
39
39
|
open_controls = this.settings.controls !== 'toggle-all' ? "<a href='#open-controls' class='open-controls'>MarxJS</a>" : "<div class=\"open-controls\">\n <a href=\"#advanced-controls\" class=\"advanced-controls\" title=\"Show Advanced Controls\">Advanced Controls</a>\n <a href=\"#standard-controls\" class=\"standard-controls\" title=\"Show Standard Controls\">Standard Controls</a>\n <a href=\"#populate-whole-form\" class=\"populate-whole-form\" title=\"Populate Whole Form\">MarxJS</a>\n</div>";
|
|
40
40
|
this.$el.append(open_controls);
|
|
@@ -173,7 +173,7 @@ $.extend(Marx.prototype, {
|
|
|
173
173
|
populate_textareas: function() {
|
|
174
174
|
var _this = this;
|
|
175
175
|
this.effected.textareas = 0;
|
|
176
|
-
return $.getJSON("http://marxjs.
|
|
176
|
+
return $.getJSON("http://marxjs.com/quotes", function(data) {
|
|
177
177
|
return $.each($("" + _this.settings.form + " textarea"), function(i, input) {
|
|
178
178
|
_this.effected.textareas += 1;
|
|
179
179
|
return $(input).attr('data-marx-d', true).val(data[Math.floor(Math.random() * data.length)].body);
|
|
@@ -283,7 +283,7 @@ $.extend(Marx.prototype, {
|
|
|
283
283
|
num = this.$('.ipsum input').val();
|
|
284
284
|
$ipsum = $("<div class='marx-generated-ipsum " + this.settings.position + "'>\n <h4>Marx Ipsum</h4>\n <a href='#close' class='marx-ipsum-close'>X</a>\n <div class='marx-container'></div>\n</div>");
|
|
285
285
|
$('body').append($ipsum);
|
|
286
|
-
return $.getJSON("http://marxjs.
|
|
286
|
+
return $.getJSON("http://marxjs.com/monologues", function(data) {
|
|
287
287
|
var i, max, monologues, _i;
|
|
288
288
|
max = num > data.length ? data.length - 1 : num;
|
|
289
289
|
monologues = data.sort(function() {
|
|
@@ -370,7 +370,7 @@ $.extend(Marx.prototype, {
|
|
|
370
370
|
});
|
|
371
371
|
break;
|
|
372
372
|
case 'random-image':
|
|
373
|
-
window.location = "http://marxjs.
|
|
373
|
+
window.location = "http://marxjs.com/get-image";
|
|
374
374
|
break;
|
|
375
375
|
case 'generate-ipsum':
|
|
376
376
|
this.generate_ipsum();
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
position: absolute;
|
|
86
86
|
display: block;
|
|
87
87
|
width: 195px;
|
|
88
|
-
background-image: url(http://marxjs.
|
|
88
|
+
background-image: url(http://marxjs.com/assets/icons/groucho.png);
|
|
89
89
|
background-color: #ddd;
|
|
90
90
|
background-repeat: no-repeat;
|
|
91
91
|
background-position: 5px center;
|
|
@@ -120,9 +120,9 @@
|
|
|
120
120
|
background-size: 24px 24px;
|
|
121
121
|
text-align: left; }
|
|
122
122
|
.marx-js-controls .open-controls a.standard-controls {
|
|
123
|
-
background-image: url(http://marxjs.
|
|
123
|
+
background-image: url(http://marxjs.com/assets/icons/standard.png); }
|
|
124
124
|
.marx-js-controls .open-controls a.advanced-controls {
|
|
125
|
-
background-image: url(http://marxjs.
|
|
125
|
+
background-image: url(http://marxjs.com/assets/icons/advanced.png); }
|
|
126
126
|
|
|
127
127
|
.bottom-right, .bottom-left {
|
|
128
128
|
bottom: 0;
|
data/lib/marxjs/rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: marxjs-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Keith Raymond
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-11-
|
|
11
|
+
date: 2014-11-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|