rails-clustergrammer 0.1.0 → 0.1.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.
@@ -0,0 +1,36 @@
1
+ function send_to_Enrichr(options) { // http://amp.pharm.mssm.edu/Enrichr/#help
2
+ var defaultOptions = {
3
+ description: "",
4
+ popup: false
5
+ };
6
+
7
+ if (typeof options.description == 'undefined')
8
+ options.description = defaultOptions.description;
9
+ if (typeof options.popup == 'undefined')
10
+ options.popup = defaultOptions.popup;
11
+ if (typeof options.list == 'undefined')
12
+ alert('No genes defined.');
13
+
14
+ var form = document.createElement('form');
15
+ form.setAttribute('method', 'post');
16
+ form.setAttribute('action', 'https://amp.pharm.mssm.edu/Enrichr/enrich');
17
+ if (options.popup)
18
+ form.setAttribute('target', '_blank');
19
+ form.setAttribute('enctype', 'multipart/form-data');
20
+
21
+ var listField = document.createElement('input');
22
+ listField.setAttribute('type', 'hidden');
23
+ listField.setAttribute('name', 'list');
24
+ listField.setAttribute('value', options.list);
25
+ form.appendChild(listField);
26
+
27
+ var descField = document.createElement('input');
28
+ descField.setAttribute('type', 'hidden');
29
+ descField.setAttribute('name', 'description');
30
+ descField.setAttribute('value', options.description);
31
+ form.appendChild(descField);
32
+
33
+ document.body.appendChild(form);
34
+ form.submit();
35
+ document.body.removeChild(form);
36
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-clustergrammer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seok Jong Yu
@@ -72,8 +72,13 @@ files:
72
72
  - lib/rails/clustergrammer/engine.rb
73
73
  - lib/rails/clustergrammer/version.rb
74
74
  - rails-clustergrammer.gemspec
75
+ - vendor/assets/javascripts/Enrichrgram.js
75
76
  - vendor/assets/javascripts/clustergrammer.js
76
77
  - vendor/assets/javascripts/clustergrammer.min.js
78
+ - vendor/assets/javascripts/graph-scroll.js
79
+ - vendor/assets/javascripts/hzome_functions.js
80
+ - vendor/assets/javascripts/scroll_section_functions.js
81
+ - vendor/assets/javascripts/send_to_Enrichr.js
77
82
  homepage: https://github.com/SeokJongYu/rails-clustergrammer
78
83
  licenses:
79
84
  - MIT