rbbt-views 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. data/lib/rbbt/workflow/rest.rb +365 -95
  2. data/lib/rbbt/workflow/rest/client.rb +2 -0
  3. data/lib/rbbt/workflow/rest/entity.rb +82 -76
  4. data/lib/rbbt/workflow/rest/finder.rb +78 -0
  5. data/lib/rbbt/workflow/rest/helpers.rb +288 -47
  6. data/lib/rbbt/workflow/rest/notes.rb +125 -0
  7. data/lib/rbbt/workflow/rest/render.rb +280 -240
  8. data/lib/rbbt/workflow/rest/util.rb +47 -31
  9. data/share/views/compass/_base.sass +0 -8
  10. data/share/views/compass/colors.sass +10 -0
  11. data/share/views/compass/colors/ventana_azul.sass +5 -0
  12. data/share/views/compass/compass.config +2 -1
  13. data/share/views/compass/details.sass +50 -0
  14. data/share/views/compass/dom.sass +64 -0
  15. data/share/views/compass/embedded.sass +111 -0
  16. data/share/views/compass/entities.sass +8 -0
  17. data/share/views/compass/error.sass +13 -0
  18. data/share/views/compass/finder.sass +42 -0
  19. data/share/views/compass/fonts.sass +8 -0
  20. data/share/views/compass/form.sass +49 -1
  21. data/share/views/compass/header.sass +68 -0
  22. data/share/views/compass/{main.sass → helpers.sass} +53 -21
  23. data/share/views/compass/layout.sass +31 -199
  24. data/share/views/compass/lists.sass +128 -0
  25. data/share/views/compass/menu.sass +35 -0
  26. data/share/views/compass/notes.sass +52 -0
  27. data/share/views/compass/sizes.sass +8 -0
  28. data/share/views/compass/tables.sass +22 -0
  29. data/share/views/compass/wait.sass +9 -0
  30. data/share/views/edit_list.haml +41 -30
  31. data/share/views/entity/GOTerm.haml +4 -3
  32. data/share/views/entity/Gene.haml +8 -1
  33. data/share/views/entity/GenomicMutation.haml +4 -1
  34. data/share/views/entity/KeggPathway.haml +1 -1
  35. data/share/views/entity/MutatedIsoform.haml +68 -11
  36. data/share/views/entity/NCIBioCartaPathway.haml +2 -3
  37. data/share/views/entity/NCINaturePathway.haml +3 -3
  38. data/share/views/entity/NCIReactomePathway.haml +2 -3
  39. data/share/views/entity/PfamDomain.haml +2 -0
  40. data/share/views/entity/Transcript.haml +10 -0
  41. data/share/views/entity_list/Default.haml +4 -0
  42. data/share/views/entity_list/Default/compare_to_other_lists.haml +41 -0
  43. data/share/views/entity_list/Default/entity_links.haml +6 -0
  44. data/share/views/entity_list/Default/find_in_other_lists.haml +36 -0
  45. data/share/views/error.haml +6 -1
  46. data/share/views/find.haml +10 -0
  47. data/share/views/form.haml +1 -1
  48. data/share/views/info.haml +1 -1
  49. data/share/views/js/_action_setup.js +250 -0
  50. data/share/views/js/_basic.js +269 -0
  51. data/share/views/js/_cytoscape.js +44 -0
  52. data/share/views/js/_details.js +239 -0
  53. data/share/views/js/_dom_updates.js +384 -0
  54. data/share/views/js/_embedded.js +95 -0
  55. data/share/views/js/_images.js +20 -0
  56. data/share/views/js/_layout.js +21 -0
  57. data/share/views/js/_lists.js +224 -0
  58. data/share/views/js/_table.js +36 -0
  59. data/share/views/js/_workflow.js +42 -0
  60. data/share/views/js/app.js +0 -570
  61. data/share/views/js/fix_tablesorter_scientific.js +25 -0
  62. data/share/views/js/json2.js +487 -0
  63. data/share/views/layout.haml +8 -98
  64. data/share/views/notes.haml +15 -0
  65. data/share/views/partials/_form.haml +22 -7
  66. data/share/views/partials/_job_control.haml +8 -8
  67. data/share/views/partials/_list_control.haml +32 -0
  68. data/share/views/partials/_list_header.haml +6 -0
  69. data/share/views/partials/_note_list.haml +64 -0
  70. data/share/views/partials/_result_table.haml +12 -7
  71. data/share/views/partials/_result_table_controls.haml +11 -5
  72. data/share/views/partials/_table.haml +24 -6
  73. data/share/views/partials/layout/_coda.haml +10 -0
  74. data/share/views/partials/layout/_details.haml +25 -0
  75. data/share/views/partials/layout/_head.haml +22 -0
  76. data/share/views/partials/layout/_header.haml +29 -0
  77. data/share/views/partials/layout/_menu.haml +20 -0
  78. data/share/views/partials/layout/_resources.haml +41 -0
  79. data/share/views/public/background.png +0 -0
  80. data/share/views/public/plugins/cytoscape-web/LICENSE.txt +504 -0
  81. data/share/views/public/plugins/cytoscape-web/README.txt +213 -0
  82. data/share/views/public/plugins/cytoscape-web/js/AC_OETags.js +1 -0
  83. data/share/views/public/plugins/cytoscape-web/js/cytoscapeweb.js +1 -0
  84. data/share/views/public/plugins/cytoscape-web/js/json2.js +1 -0
  85. data/share/views/public/plugins/cytoscape-web/swf/CytoscapeWeb.swf +0 -0
  86. data/share/views/public/plugins/cytoscape-web/swf/playerProductInstall.swf +0 -0
  87. data/share/views/public/plugins/fancybox/CHANGELOG.md +68 -0
  88. data/share/views/public/plugins/fancybox/README.md +220 -0
  89. data/share/views/public/plugins/fancybox/css/blank.gif +0 -0
  90. data/share/views/public/plugins/fancybox/css/fancybox_loading.gif +0 -0
  91. data/share/views/public/plugins/fancybox/css/fancybox_sprite.png +0 -0
  92. data/share/views/public/plugins/fancybox/css/jquery.fancybox.css +234 -0
  93. data/share/views/public/plugins/fancybox/helpers/fancybox_buttons.png +0 -0
  94. data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-buttons.css +85 -0
  95. data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-buttons.js +115 -0
  96. data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-media.js +85 -0
  97. data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-thumbs.css +54 -0
  98. data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-thumbs.js +157 -0
  99. data/share/views/public/plugins/fancybox/js/jquery.fancybox.js +1463 -0
  100. data/share/views/public/plugins/fancybox/js/jquery.mousewheel-3.0.6.pack.js +13 -0
  101. data/share/views/public/plugins/fancybox/lib/jquery-1.7.2.min.js +4 -0
  102. data/share/views/public/plugins/featuredimagezoomer/css/featuredimagezoomer.css +8 -0
  103. data/share/views/public/plugins/featuredimagezoomer/images/spinningred.gif +0 -0
  104. data/share/views/public/plugins/featuredimagezoomer/js/featuredimagezoomer.js +245 -0
  105. data/share/views/public/plugins/jquery-ui.hitarea.js +173 -0
  106. data/share/views/public/plugins/jquery/js/jquery-1.8.0.min.js +2 -0
  107. data/share/views/public/plugins/tablesorter/addons/pager/jquery.tablesorter.pager.css +25 -0
  108. data/share/views/public/plugins/tablesorter/addons/pager/jquery.tablesorter.pager.js +184 -0
  109. data/share/views/public/plugins/tablesorter/build.xml +26 -0
  110. data/share/views/public/plugins/tablesorter/build/ParseMaster.js +106 -0
  111. data/share/views/public/plugins/tablesorter/build/js.jar +0 -0
  112. data/share/views/public/plugins/tablesorter/build/jsmin.js +316 -0
  113. data/share/views/public/plugins/tablesorter/build/min.js +5 -0
  114. data/share/views/public/plugins/tablesorter/build/pack.js +5 -0
  115. data/share/views/public/plugins/tablesorter/build/packer.js +316 -0
  116. data/share/views/public/plugins/tablesorter/build/writeFile.js +19 -0
  117. data/share/views/public/plugins/tablesorter/changelog +41 -0
  118. data/share/views/public/plugins/tablesorter/docs/assets/ajax-content.html +43 -0
  119. data/share/views/public/plugins/tablesorter/docs/css/jq.css +29 -0
  120. data/share/views/public/plugins/tablesorter/docs/example-ajax.html +119 -0
  121. data/share/views/public/plugins/tablesorter/docs/example-empty-table.html +75 -0
  122. data/share/views/public/plugins/tablesorter/docs/example-extending-defaults.html +109 -0
  123. data/share/views/public/plugins/tablesorter/docs/example-meta-headers.html +108 -0
  124. data/share/views/public/plugins/tablesorter/docs/example-meta-parsers.html +105 -0
  125. data/share/views/public/plugins/tablesorter/docs/example-meta-sort-list.html +107 -0
  126. data/share/views/public/plugins/tablesorter/docs/example-option-debug.html +116 -0
  127. data/share/views/public/plugins/tablesorter/docs/example-option-digits.html +106 -0
  128. data/share/views/public/plugins/tablesorter/docs/example-option-sort-force.html +107 -0
  129. data/share/views/public/plugins/tablesorter/docs/example-option-sort-key.html +108 -0
  130. data/share/views/public/plugins/tablesorter/docs/example-option-sort-list.html +108 -0
  131. data/share/views/public/plugins/tablesorter/docs/example-option-sort-order.html +108 -0
  132. data/share/views/public/plugins/tablesorter/docs/example-option-text-extraction.html +85 -0
  133. data/share/views/public/plugins/tablesorter/docs/example-options-headers.html +118 -0
  134. data/share/views/public/plugins/tablesorter/docs/example-pager.html +329 -0
  135. data/share/views/public/plugins/tablesorter/docs/example-parsers.html +112 -0
  136. data/share/views/public/plugins/tablesorter/docs/example-trigger-sort.html +113 -0
  137. data/share/views/public/plugins/tablesorter/docs/example-triggers.html +336 -0
  138. data/share/views/public/plugins/tablesorter/docs/example-update-cell.html +118 -0
  139. data/share/views/public/plugins/tablesorter/docs/example-widgets.html +383 -0
  140. data/share/views/public/plugins/tablesorter/docs/img/external.png +0 -0
  141. data/share/views/public/plugins/tablesorter/docs/index.html +576 -0
  142. data/share/views/public/plugins/tablesorter/docs/js/docs.js +23 -0
  143. data/share/views/public/plugins/tablesorter/docs/js/examples.js +29 -0
  144. data/share/views/public/plugins/tablesorter/jquery-latest.js +154 -0
  145. data/share/views/public/plugins/tablesorter/jquery.metadata.js +122 -0
  146. data/share/views/public/plugins/tablesorter/jquery.tablesorter.js +1031 -0
  147. data/share/views/public/plugins/tablesorter/jquery.tablesorter.min.js +4 -0
  148. data/share/views/public/plugins/tablesorter/tests/assets/ajax-content.html +28 -0
  149. data/share/views/public/plugins/tablesorter/tests/cell.metadata.html +112 -0
  150. data/share/views/public/plugins/tablesorter/tests/checkbox.html +117 -0
  151. data/share/views/public/plugins/tablesorter/tests/colspan.html +149 -0
  152. data/share/views/public/plugins/tablesorter/tests/demo.html +353 -0
  153. data/share/views/public/plugins/tablesorter/tests/index.html +22 -0
  154. data/share/views/public/plugins/tablesorter/tests/large.html +30 -0
  155. data/share/views/public/plugins/tablesorter/tests/lockedOrder.html +355 -0
  156. data/share/views/public/plugins/tablesorter/tests/metadata.html +320 -0
  157. data/share/views/public/plugins/tablesorter/tests/multiple-headers.html +67 -0
  158. data/share/views/public/plugins/tablesorter/tests/pager.html +553 -0
  159. data/share/views/public/plugins/tablesorter/themes/blue/asc.gif +0 -0
  160. data/share/views/public/plugins/tablesorter/themes/blue/bg.gif +0 -0
  161. data/share/views/public/plugins/tablesorter/themes/blue/blue.zip +0 -0
  162. data/share/views/public/plugins/tablesorter/themes/blue/desc.gif +0 -0
  163. data/share/views/public/plugins/tablesorter/themes/blue/style.css +39 -0
  164. data/share/views/public/plugins/tablesorter/themes/green/asc.png +0 -0
  165. data/share/views/public/plugins/tablesorter/themes/green/bg.png +0 -0
  166. data/share/views/public/plugins/tablesorter/themes/green/desc.png +0 -0
  167. data/share/views/public/plugins/tablesorter/themes/green/green.zip +0 -0
  168. data/share/views/public/plugins/tablesorter/themes/green/style.css +39 -0
  169. data/share/views/public/plugins/wz_jsgraphics.js +1108 -0
  170. data/share/views/public/tmp/foo +0 -0
  171. data/share/views/result.haml +6 -1
  172. data/share/views/step_error.haml +5 -0
  173. data/share/views/user_lists.haml +8 -7
  174. data/share/views/wait.haml +40 -2
  175. metadata +302 -106
  176. data/share/views/compass/screen.sass +0 -8
  177. data/share/views/public/plugins/jquery/js/jquery-1.6.2.min.js +0 -18
@@ -0,0 +1,213 @@
1
+ ================================================================================
2
+ LICENSE AGREEMENT AND DISCLAIMER
3
+ ================================================================================
4
+
5
+ Cytoscape Web is developed as part of the Cytoscape project, by members of the
6
+ Cytoscape Consortium.
7
+ It is available at http://www.cytoscape.org and provided to all users
8
+ free of charge under the Lesser GNU Public License (LGPL).
9
+
10
+ Users of Cytoscape Web must first agree to the license agreement
11
+ provided in the file "LICENSE.txt".
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
17
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
19
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ ================================================================================
22
+ WEBSITE
23
+ ================================================================================
24
+
25
+ Visit our Website at http://cytoscapeweb.cytoscape.org/
26
+
27
+ ================================================================================
28
+ INSTALLATION AND USAGE
29
+ ================================================================================
30
+
31
+ 1. Copy all the files from js/min/ and swf/ to your project folder.
32
+
33
+ 2. Create an HTML file in the same folder and reference the copied JavaScript
34
+ files:
35
+
36
+ <head>
37
+ <script type="text/javascript" src="AC_OETags.min.js"></script>
38
+ <script type="text/javascript" src="json2.min.js"></script>
39
+ <script type="text/javascript" src="cytoscapeweb.min.js"></script>
40
+ </head>
41
+
42
+ 3. Add a div or another HTML container and give it an ID (Cytoscape Web will
43
+ replace its contents with the rendered graph):
44
+
45
+ <body>
46
+ <div id="cytoscapeweb" style="width:600px;height:400px;"></div>
47
+ </body>
48
+
49
+ 4. Write JavaScript code to initialize and start Cytoscape Web:
50
+
51
+ <script type="text/javascript">
52
+ // network data could alternatively be grabbed via ajax
53
+ var xml = '\
54
+ <graphml>\
55
+ <graph>\
56
+ <node id="1"/>\
57
+ <node id="2"/>\
58
+ <edge target="1" source="2"/>\
59
+ </graph>\
60
+ </graphml>\
61
+ ';
62
+
63
+ // init and draw
64
+ var vis = new org.cytoscapeweb.Visualization("cytoscapeweb");
65
+ vis.draw({ network: xml });
66
+ </script>
67
+
68
+ --------------------------------------------------------------------------------
69
+
70
+ To see other examples and the API documentation, visit
71
+ http://cytoscapeweb.cytoscape.org/documentation
72
+
73
+ ================================================================================
74
+ SOURCE CODE
75
+ ================================================================================
76
+
77
+ - You can browse the Cytoscape Web source code at
78
+ http://chianti.ucsd.edu/svn/cytoscapeweb
79
+
80
+ - You can also download the latest source from our Subversion server, by using
81
+ the following command:
82
+
83
+ svn checkout http://chianti.ucsd.edu/svn/cytoscapeweb/trunk/cytoscapeweb cytoscapeweb-read-only
84
+
85
+ - After you download the project from Subversion, you can use Flex Builder or
86
+ Apache Ant to build it.
87
+
88
+ ================================================================================
89
+ PROJECT SETUP ON FLEX BUILDER
90
+ ================================================================================
91
+ This option requires Adobe's Flex Builder 3 (or the Flex Builder plugin for
92
+ Eclipse).
93
+ It is not free, but you can download a 60-day trial from:
94
+
95
+ http://www.adobe.com/products/flex.
96
+
97
+ The Cytoscape Web development team uses Eclipse with the Flex Builder plugin.
98
+
99
+ 1. Checkout the project from SVN or import it as a Flex project.
100
+
101
+ 2. Setup the Flex Build Path:
102
+ * Main source folder: src
103
+ * Output folder: bin
104
+ * Source Path (Add Folder): src-test
105
+ * Library Path (Add SWC Folder): lib
106
+
107
+ 3. Add this line to Flex's "additional compiler arguments":
108
+ -locale en_US -source-path=assets/locale/{locale}
109
+
110
+ 4. Set the Flex Applications:
111
+ * src/CytoscapeWeb.mxml (default)
112
+ * src/TestRunner.mxml
113
+
114
+ 5. Before running Cytoscape Web with the test page, you need to minify some
115
+ JavaScript files. We provided an Ant task for that.
116
+ One option is to manually execute the "js minify" Ant task after the
117
+ ActionScript code is compiled by the Flex Builder.
118
+ But if you are using Eclipse with the Flex Builder plugin, it might be
119
+ more convenient to let Eclipse do it automatically after each build.
120
+ To allow that, just follow these steps:
121
+
122
+ 5.1. Open the project Properties panel and select "Builders".
123
+
124
+ 5.2. Click "New..." and choose "Ant Builder".
125
+
126
+ 5.3. Give it a name (e.g. "JS Minify"), and enter the following parameters:
127
+
128
+ - Main tab:
129
+
130
+ Buildfile: ${workspace_loc:/cytoscapeweb/build.xml}
131
+ Base direectory: ${workspace_loc:/cytoscapeweb}
132
+
133
+ - Targets tab:
134
+
135
+ Manual Build: js minify
136
+ Auto Build: js minify
137
+
138
+ 5.4. Click "Apply" and "OK".
139
+
140
+ Now, every time the project is built by the Eclipse Flex Builder plugin,
141
+ it will also minify the required JavaScript files.
142
+
143
+ 6. To test Cytoscape Web, just right-click src/CytoscapeWeb.mxml and choose:
144
+
145
+ Run As >> Flex Application
146
+
147
+ The first time it will open CytoscapeWeb.html in your default browser, but
148
+ it will not work. To fix it, right-click CytoscapeWeb.mxml again and select:
149
+
150
+ Run As >> Run Configurations...
151
+
152
+ Then, under "URL or path to launch", uncheck "Use defaults" and replace
153
+ "CytoscapeWeb.html" by "tests.html" (on Debug, Profile and Run). Now you can
154
+ run CytoscapeWeb.mxml again.
155
+
156
+ ================================================================================
157
+ BUILDING WITH ANT
158
+ ================================================================================
159
+ If you do not have Flex Builder, you still can build the project with Apache
160
+ Ant:
161
+
162
+ 1. Download and install Apache Ant. Installation instructions are available at:
163
+
164
+ http://ant.apache.org/manual/install.html.
165
+
166
+ 2. Download and install the Flex SDK from:
167
+
168
+ http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk
169
+
170
+ 3. After installing the Flex SDK, create a file called "local.properties" in the
171
+ root folder of the Cytoscape Web project (the one that contains "build.xml").
172
+ Open the created properties file with any text editor and add the FLEX_HOME
173
+ path, which is the location where you just installed the Flex SDK.
174
+ Example:
175
+
176
+ FLEX_HOME=/Library/flex_sdk_3.5/
177
+
178
+ 2. To build Cytoscape Web, open the terminal, go to the project folder and type:
179
+
180
+ ant build
181
+
182
+ 3. To test it, just open bin/tests.html in a web browser. It will probably not
183
+ work if you are doing that directly from the file system, because of the
184
+ Flash Player security settings. You can change it by going to this web page:
185
+
186
+ http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
187
+
188
+ Just open "Edit locations...", select "Add location...", and add the folder
189
+ that contains the Cytoscape Web project. Now you can open bin/tests.html
190
+ again.
191
+
192
+ If you run Cytoscape Web from a Web server, there are no such security
193
+ issues.
194
+
195
+ ================================================================================
196
+ LINKING BACK TO US
197
+ ================================================================================
198
+ If you use Cytoscape Web, please link us back.
199
+ We appreciate it, because that helps us keep Cytoscape Web development funded.
200
+ Feel free to link to us however you choose or use one of the examples below:
201
+
202
+ <a href="http://cytoscapeweb.cytoscape.org/">
203
+ <img src="http://cytoscapeweb.cytoscape.org/img/logos/cw_s.png" alt="Cytoscape Web"/>
204
+ </a>
205
+
206
+ <a href="http://cytoscapeweb.cytoscape.org/">
207
+ <img src="http://cytoscapeweb.cytoscape.org/img/logos/cw.png" alt="Cytoscape Web"/>
208
+ </a>
209
+
210
+ ================================================================================
211
+
212
+ Thank you for using Cytoscape Web!
213
+
@@ -0,0 +1 @@
1
+ var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var a;var b;var c;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(c){}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(c){a=-1}}return a}function GetSwfVer(){var g=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var f=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var a=navigator.plugins["Shockwave Flash"+f].description;var e=a.split(" ");var c=e[2].split(".");var h=c[0];var b=c[1];var d=e[3];if(d==""){d=e[4]}if(d[0]=="d"){d=d.substring(1)}else{if(d[0]=="r"){d=d.substring(1);if(d.indexOf("d")>0){d=d.substring(0,d.indexOf("d"))}}else{if(d[0]=="b"){d=d.substring(1)}}}var g=h+"."+b+"."+d}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){g=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){g=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){g=2}else{if(isIE&&isWin&&!isOpera){g=ControlVersion()}}}}}return g}function DetectFlashVer(f,d,c){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var e=versionArray[0];var a=versionArray[1];var b=versionArray[2];if(e>parseFloat(f)){return true}else{if(e==parseFloat(f)){if(a>parseFloat(d)){return true}else{if(a==parseFloat(d)){if(b>=parseFloat(c)){return true}}}}}return false}}}function AC_AddExtension(b,a){if(b.indexOf("?")!=-1){return b.replace(/\?/,a+"?")}else{return b+a}}function AC_Generateobj(e,d,a){var c="";if(isIE&&isWin&&!isOpera){c+="<object ";for(var b in e){c+=b+'="'+e[b]+'" '}c+=">";for(var b in d){c+='<param name="'+b+'" value="'+d[b]+'" /> '}c+="</object>"}else{c+="<embed ";for(var b in a){c+=b+'="'+a[b]+'" '}c+="> </embed>"}document.write(c)}function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_GetArgs(b,e,g,d,h){var a=new Object();a.embedAttrs=new Object();a.params=new Object();a.objAttrs=new Object();for(var c=0;c<b.length;c=c+2){var f=b[c].toLowerCase();switch(f){case"classid":break;case"pluginspage":a.embedAttrs[b[c]]=b[c+1];break;case"src":case"movie":b[c+1]=AC_AddExtension(b[c+1],e);a.embedAttrs.src=b[c+1];a.params[g]=b[c+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":a.objAttrs[b[c]]=b[c+1];break;case"id":case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":a.embedAttrs[b[c]]=a.objAttrs[b[c]]=b[c+1];break;default:a.embedAttrs[b[c]]=a.params[b[c]]=b[c+1]}}a.objAttrs.classid=d;if(h){a.embedAttrs.type=h}return a};
@@ -0,0 +1 @@
1
+ (function(){if(typeof(window.org)==="undefined"){window.org={}}if(typeof(window.org.cytoscapeweb)==="undefined"){org.cytoscapeweb={}}window._cytoscapeWebInstances={index:0};org.cytoscapeweb.Visualization=function(a,b){this.containerId=a;if(!b){b={}}this.options=b;this.idToken=b.idToken?b.idToken:"cytoscapeWeb";this.swfPath=b.swfPath?b.swfPath:"CytoscapeWeb";this.flashInstallerPath=b.flashInstallerPath?b.flashInstallerPath:"playerProductInstall";this.flashAlternateContent=b.flashAlternateContent?b.flashAlternateContent:"This content requires the Adobe Flash Player. <a href=http://www.adobe.com/go/getflash/>Get Flash</a>";_cytoscapeWebInstances.index++;this.id=this.idToken+_cytoscapeWebInstances.index;_cytoscapeWebInstances[this.id]=this};org.cytoscapeweb.Visualization.prototype={draw:function(a){if(!a){a={}}this.drawOptions=a;this.embedSWF();return this},ready:function(a){if(!a){this._onReady=function(){}}else{this._onReady=a}return this},layout:function(){var a=this.swf();if(arguments.length>0){a.applyLayout(arguments[0]);return this}else{return a.getLayout()}},visualStyle:function(){var a=this.swf();if(arguments.length>0){a.setVisualStyle(arguments[0]);return this}else{return a.getVisualStyle()}},visualStyleBypass:function(){var b=this.swf();var a;if(arguments.length>0){a=JSON.stringify(arguments[0]);b.setVisualStyleBypass(a);return this}else{a=b.getVisualStyleBypass();return this._parseJSON(a)}},panZoomControlVisible:function(){var a=this.swf();if(arguments.length>0){a.showPanZoomControl(arguments[0]);return this}else{return a.isPanZoomControlVisible()}},edgesMerged:function(){var a=this.swf();if(arguments.length>0){a.mergeEdges(arguments[0]);return this}else{return a.isEdgesMerged()}},nodeLabelsVisible:function(){var a=this.swf();if(arguments.length>0){a.showNodeLabels(arguments[0]);return this}else{return a.isNodeLabelsVisible()}},edgeLabelsVisible:function(){var a=this.swf();if(arguments.length>0){a.showEdgeLabels(arguments[0]);return this}else{return a.isEdgeLabelsVisible()}},nodeTooltipsEnabled:function(){var a=this.swf();if(arguments.length>0){a.enableNodeTooltips(arguments[0]);return this}else{return a.isNodeTooltipsEnabled()}},edgeTooltipsEnabled:function(){var a=this.swf();if(arguments.length>0){a.enableEdgeTooltips(arguments[0]);return this}else{return a.isEdgeTooltipsEnabled()}},customCursorsEnabled:function(){if(arguments.length>0){this.swf().enableCustomCursors(arguments[0]);return this}else{return this.swf().isCustomCursorsEnabled()}},panEnabled:function(){if(arguments.length>0){this.swf().enableGrabToPan(arguments[0]);return this}else{return this.swf().isGrabToPanEnabled()}},panBy:function(b,a){this.swf().panBy(b,a);return this},panToCenter:function(){this.swf().panToCenter();return this},zoom:function(){var a=this.swf();if(arguments.length>0){a.zoomTo(arguments[0]);return this}else{return a.getZoom()}},zoomToFit:function(){this.swf().zoomToFit();return this},node:function(b){var a=this.swf().getNodeById(b);return this._parseJSON(a)},nodes:function(a){var b=this.swf().getNodes(a);return this._parseJSON(b)},childNodes:function(a){if(a==null){throw ("The 'parent' parameter is mandatory.")}if(typeof a==="object"&&a.hasOwnProperty("data")){if(typeof a.data==="object"){a=a.data.id}}var b=this.swf().getChildNodes(a);return this._parseJSON(b)},parentNodes:function(){var a=this.swf().getParentNodes();return this._parseJSON(a)},edge:function(b){var a=this.swf().getEdgeById(b);return this._parseJSON(a)},edges:function(){var a=this.swf().getEdges();return this._parseJSON(a)},mergedEdges:function(){var a=this.swf().getMergedEdges();return this._parseJSON(a)},addElements:function(){var a,c=false;if(arguments.length>0&&this._typeof(arguments[0])==="array"){a=arguments[0]}if(a==null){throw ("The 'items' object is mandatory.")}if(arguments.length>1&&typeof arguments[1]==="boolean"){c=arguments[1]}var b=this.swf().addElements(a,c);return this._parseJSON(b)},addNode:function(a,g){var c;var f=false;var e=null;var b=2;if(arguments.length>b&&(typeof arguments[b]==="object"||arguments[b]==null)){c=arguments[b++]}if(arguments.length>b&&typeof arguments[b]==="boolean"){f=arguments[b++]}var d=this.swf().addNode(a,g,c,f);return this._parseJSON(d)},addEdge:function(a){var c=false;if(a==null){throw ("The 'data' object is mandatory.")}if(a.source==null){throw ("The 'source' node ID mandatory.")}if(a.target==null){throw ("The 'target' node ID mandatory.")}if(arguments.length>1){c=arguments[1]}var b=this.swf().addEdge(a,c);return this._parseJSON(b)},removeNode:function(a,b){this.swf().removeElements("nodes",[a],b);return this},removeEdge:function(a,b){this.swf().removeElements("edges",[a],b);return this},removeElements:function(){var b,a,c=false;if(arguments.length>=1){if(typeof arguments[0]==="string"){b=arguments[0]}else{if(this._typeof(arguments[0])==="array"){a=arguments[0]}else{if(typeof arguments[0]==="boolean"){c=arguments[0]}}}}if(arguments.length>=2){if(this._typeof(arguments[1])==="array"){a=arguments[1]}else{if(typeof arguments[1]==="boolean"){c=arguments[1]}}}if(arguments.length>2){c=arguments[2]}b=this._normalizeGroup(b);this.swf().removeElements(b,a,c);return this},dataSchema:function(){return this._parseJSON(this.swf().getDataSchema())},addDataField:function(){var a,c,b=0;if(arguments.length>1){a=arguments[b++]}c=arguments[b];if(c==null){throw ("The 'dataField' object is mandatory.")}if(c.name==null){throw ("The 'name' of the data field is mandatory.")}if(c.type==null){throw ("The 'type' of the data field is mandatory.")}a=this._normalizeGroup(a);this.swf().addDataField(a,c);return this},removeDataField:function(){var b,a,c=0;if(arguments.length>1){b=arguments[c++]}a=arguments[c];if(a==null){throw ("The 'name' of the data field is mandatory.")}b=this._normalizeGroup(b);this.swf().removeDataField(b,a);return this},updateData:function(){var b,a,c;if(arguments.length===1){if(typeof arguments[0]==="string"){b=arguments[0]}else{if(this._typeof(arguments[0])==="array"){a=arguments[0]}else{c=arguments[0]}}}else{if(arguments.length===2){if(typeof arguments[0]==="string"){b=arguments[0];if(this._typeof(arguments[1])==="array"){a=arguments[1]}else{c=arguments[1]}}else{a=arguments[0];c=arguments[1]}}else{if(arguments.length>2){b=arguments[0];a=arguments[1];c=arguments[2]}}}b=this._normalizeGroup(b);this.swf().updateData(b,a,c);return this},select:function(){var b,a;if(arguments.length===1){if(typeof arguments[0]==="string"){b=arguments[0]}else{a=arguments[0]}}else{if(arguments.length>1){b=arguments[0];a=arguments[1]}}b=this._normalizeGroup(b);this.swf().select(b,a);return this},selected:function(a){return this._nodesAndEdges(a,"getSelectedNodes","getSelectedEdges")},deselect:function(){var b,a;if(arguments.length===1){if(typeof arguments[0]==="string"){b=arguments[0]}else{a=arguments[0]}}else{if(arguments.length>1){b=arguments[0];a=arguments[1]}}b=this._normalizeGroup(b);this.swf().deselect(b,a);return this},filter:function(){var b,d,a=[],g=false;if(arguments.length>2){b=arguments[0];d=arguments[1];g=arguments[2]}else{if(arguments.length===2){if(typeof arguments[0]==="string"){b=arguments[0];d=arguments[1]}else{d=arguments[0];g=arguments[1]}}else{if(arguments.length===1){d=arguments[0]}}}b=this._normalizeGroup(b);if(typeof d==="function"){var e=this._nodesAndEdges(b,"getNodes","getEdges");if(e.length>0){for(var c=0;c<e.length;c++){var f=e[c];if(d(f)){a.push(f.data.id)}}}}else{if(this._typeof(d)==="array"){a=d}}this.swf().filter(b,a,g);return this},removeFilter:function(a,b){a=this._normalizeGroup(a);this.swf().removeFilter(a,b);return this},firstNeighbors:function(b,a){var c=this.swf().firstNeighbors(b,a);return this._parseJSON(c)},networkModel:function(){var a=this.swf().getNetworkModel();return this._parseJSON(a)},graphml:function(){return this.swf().getNetworkAsText("graphml")},xgmml:function(){return this.swf().getNetworkAsText("xgmml")},sif:function(a){return this.swf().getNetworkAsText("sif",a)},pdf:function(a){return this.swf().getNetworkAsImage("pdf",a)},svg:function(a){return this.swf().getNetworkAsImage("svg",a)},png:function(){return this.swf().getNetworkAsImage("png")},exportNetwork:function(c,b,a){c=c.toLowerCase().trim();this.swf().exportNetwork(c,b,a);return this},addListener:function(a,f){var d;if(arguments.length>2){d=arguments[1];f=arguments[2]}a=this._normalizeEvent(a);d=this._normalizeGroup(d);if(!this._listeners){this._listeners={}}if(!this._listeners[d]){this._listeners[d]={}}var c=this._listeners[d][a];if(!c){c=[];this._listeners[d][a]=c}var b=false;for(var e=0;e<c.length;e++){if(f===c[e]){b=true;break}}if(!b){c.push(f)}return this},removeListener:function(b){var d;var f;if(arguments.length>2){d=arguments[1];f=arguments[2]}else{if(arguments.length===2){if(typeof arguments[1]==="function"){f=arguments[1]}else{d=arguments[1]}}}b=this._normalizeEvent(b);d=this._normalizeGroup(d);var a;if(this._listeners){a=this._listeners[d]}if(a){if(!f){delete a[b]}else{var c=a[b];if(c){for(var e=0;e<c.length;e++){if(f===c[e]){c.splice(e,1);break}}}}}return this},hasListener:function(b){var e=false;var d;if(arguments.length>1){d=arguments[1]}b=this._normalizeEvent(b);d=this._normalizeGroup(d);if(this._listeners){var a=this._listeners[d];if(a){var c=a[b];e=c&&c.length>0}}return e},addContextMenuItem:function(d,c){if(d&&c){var b;if(arguments.length>2){b=arguments[1];c=arguments[2]}b=this._normalizeGroup(b);if(!this._contextMenuItems){this._contextMenuItems={}}var a=this._contextMenuItems[b];if(!a){a={};this._contextMenuItems[b]=a}a[d]=c;this.swf().addContextMenuItem(d,b)}return this},removeContextMenuItem:function(c){if(c){var b;if(arguments.length>1){b=arguments[1]}b=this._normalizeGroup(b);if(this._contextMenuItems){var a=this._contextMenuItems[b];if(a){if(a[c]){this.swf().removeContextMenuItem(c,b);delete a[c]}}}}return this},removeAllContextMenuItems:function(){if(this._contextMenuItems){for(var b in this._contextMenuItems){if(this._contextMenuItems.hasOwnProperty(b)){var a=this._contextMenuItems[b];if(a){for(var c in a){if(a.hasOwnProperty(c)){this.removeContextMenuItem(c,b)}}}}}}return this},swf:function(){if(navigator.appName.indexOf("Microsoft")!==-1){return window[this.id]}else{return document[this.id]}},embedSWF:function(){var c=10;var l=0;var j=0;var h=this.containerId;AC_Generateobj=function(s,r,o){var q="";var p;if(isIE&&isWin&&!isOpera){q+="<object ";for(p in s){if(Object.hasOwnProperty.call(s,p)){q+=p+'="'+s[p]+'" '}}q+=">";for(p in r){if(Object.hasOwnProperty.call(r,p)){q+='<param name="'+p+'" value="'+r[p]+'" /> '}}q+="</object>"}else{q+="<embed ";for(p in o){if(Object.hasOwnProperty.call(o,p)){q+=p+'="'+o[p]+'" '}}q+="> </embed>"}document.getElementById(h).innerHTML=q};var g=DetectFlashVer(6,0,65);var d=DetectFlashVer(c,l,j);if(g&&!d){var b=(isIE===true)?"ActiveX":"PlugIn";var a=window.location;document.title=document.title.slice(0,47)+" - Flash Player Installation";var e=document.title;AC_FL_RunContent("src",this.flashInstallerPath,"FlashVars","MMredirectURL="+a+"&MMplayerType="+b+"&MMdoctitle="+e+"","width","100%","height","100%","align","middle","id",this.id,"quality","high","bgcolor","#ffffff","name",this.id,"allowScriptAccess","always","type","application/x-shockwave-flash","pluginspage","http://www.adobe.com/go/getflashplayer")}else{if(d){var n=["resourceBundleUrl"];var k="";if(this.options){for(var f in n){if(Object.hasOwnProperty.call(n,f)){var m=n[f];if(this.options[m]!==undefined){k+=m+"="+this.options[m]+"&"}}}k+="id="+this.id}AC_FL_RunContent("src",this.swfPath,"width","100%","height","100%","align","middle","id",this.id,"quality","high","bgcolor","#ffffff","name",this.id,"allowScriptAccess","always","type","application/x-shockwave-flash","pluginspage","http://www.adobe.com/go/getflashplayer","wmode","opaque","flashVars",k)}else{document.getElementById(h).innerHTML=this.flashAlternateContent}}return this},_onBeforeComplete:function(){var b=window.__flash__addCallback;window.__flash__addCallback=function(d,e){try{b(d,e)}catch(c){}};var a=window.__flash__removeCallback;window.__flash__removeCallback=function(d,e){try{a(d,e)}catch(c){}}},_onComplete:function(){this.swf().draw(this.drawOptions)},_onReady:function(){},_dispatch:function(d,b){var a=null;if(b!=null){a=this._parseJSON(b)}var c=this[d](a);return c},_hasListener:function(a){return this.hasListener(a.type,a.group)},_invokeListeners:function(b){if(this._listeners){var d=this._normalizeGroup(b.group);var a=this._listeners[d];if(a){var f=this._normalizeEvent(b.type);var c=a[f];for(var e=0;e<c.length;e++){c[e](b)}}}},_invokeContextMenuCallback:function(b){if(this._contextMenuItems){var c=this._normalizeGroup(b.group);var a=this._contextMenuItems[c];if(a){b=new org.cytoscapeweb.Event(b);var d=a[b.value];if(d){d(b)}}}},_normalizeEvent:function(a){if(a){a=a.toLowerCase().trim()}return a},_normalizeGroup:function(a){if(a){a=a.toLowerCase().trim()}if(a!=="nodes"&&a!=="edges"){a="none"}return a},_nodesAndEdges:function(e,b,a){var f=[];e=this._normalizeGroup(e);if(e==="nodes"||e==="none"){var d=this._parseJSON(this.swf()[b]());f=f.concat(d)}if(e==="edges"||e==="none"){var c=this._parseJSON(this.swf()[a]());f=f.concat(c)}return f},_typeof:function(a){if(typeof(a)=="object"){if(a===null){return"null"}if(a.constructor==(new Array).constructor){return"array"}if(a.constructor==(new Date).constructor){return"date"}if(a.constructor==(new RegExp).constructor){return"regex"}return"object"}return typeof(a)},_parseJSON:function(a){if(a!=null){a=a.replace(/\n/g,"\\n").replace(/\t/g,"\\t")}return JSON.parse(a)}};if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"")}}org.cytoscapeweb.Event=function(a){this.type=a.type;this.group=a.group;this.target=a.target;this.value=a.value;this.mouseX=a.mouseX;this.mouseY=a.mouseY}})();
@@ -0,0 +1 @@
1
+ if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());
@@ -0,0 +1,68 @@
1
+ fancyBox - Changelog
2
+ =========
3
+
4
+ ### Version 2.0.6 - April 16, 2012
5
+
6
+ * Fixed #188 - keystrokes in contenteditable
7
+ * Fixed #171 - non-images should not be preloaded
8
+ * Fixed #158 - 'closeClick: true' breaks gallery navigation
9
+ * New "media" helper - detects and displays various media types
10
+ * New option "groupAttr" - name of group selector attribute, default is "data-fancybox-group"
11
+ * New feature - selector expressions in URLs, see #170
12
+ * Improved 'overlay' helper to use "position: fixed"
13
+ * Improved autoSize, fixed wrong height in some cases
14
+ * Improved centering and iframe scrolling for iOS
15
+ * Updated markup, new element '.fancybox-skin' is now used for styling
16
+
17
+ ### Version 2.0.5 - February 21, 2012
18
+
19
+ * Fixed #155 - easing for prev/next animations
20
+ * Fixed #153 - overriding "keys" options
21
+ * Fixed #147 - IE7 problem with #hash links
22
+ * Fixed #130 - changing dynamically data-fancybox-group
23
+ * Fixed #126 - obey minWidth/minHeight
24
+ * Fixed #118 - placement of loading icon and navigation arrows
25
+ * Fixed #101 - "index" option not working
26
+ * Fixed #94 - "orig" option not working
27
+ * Fixed #80 - does not work on IE6
28
+ * Fixed #72 - can't set overlay opacity to 0
29
+ * Fixed #63 - properly set gallery index
30
+ * New option "autoCenter" - toggles centering on window resize or scroll, disabled for mobile devices by default
31
+ * New option "autoResize" - toggles responsivity, disabled for mobile devices by default
32
+ * New option "preload" - number of images to preload
33
+ * New feature to target mobile/desktop browsers using CSS, see #108
34
+ * Changed ajax option defaults to "{ dataType: 'html', headers: { 'X-fancyBox': true } }", see #150 and #128
35
+ * Updated loading icon for IE7, IE8
36
+ * Calculates height of the iframe if 'autoSize' is set to 'true' and the iframe is on the same domain as the main page
37
+
38
+ ### Version 2.0.4 - December 12, 2011
39
+
40
+ * Fixed #47 - fix overriding properties
41
+ * New option "position" to thumbnail and button helpers
42
+
43
+
44
+ ### Version 2.0.3 - November 29, 2011
45
+
46
+ * Fixed #29 - broken elastic transitions
47
+
48
+
49
+ ### Version 2.0.2 - November 28, 2011
50
+
51
+ * Fixed slidshow
52
+ * Fixed scrollbar issue when displayed a very tall image
53
+ * New option "nextClick" - navigate to next gallery item when user clicks the content
54
+ * New option "modal" - to disable navigation and closing
55
+ * Add 'metadata' plugin support
56
+ * Add ability to create groups using 'data-fancybox-group' attribute
57
+ * Updated manual usage to match earlier releases
58
+
59
+
60
+ ### Version 2.0.1 - November 23, 2011
61
+
62
+ * Fixed keyboard events inside form elements
63
+ * Fixed manual usage
64
+
65
+
66
+ ### Version 2.0.0 - November 21, 2011
67
+
68
+ First release - completely rewritten, many new features and updated graphics.
@@ -0,0 +1,220 @@
1
+ NOTE
2
+ ====
3
+
4
+ This package has been rearranged, visit http://fancyapps.com/fancybox for the
5
+ original
6
+
7
+ Miguel Vazquez
8
+
9
+ fancyBox
10
+ ========
11
+
12
+ fancyBox is a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages.
13
+
14
+ More information and examples: http://www.fancyapps.com/fancybox/
15
+
16
+ License: http://www.fancyapps.com/fancybox/#license
17
+
18
+ Copyright (c) 2012 Janis Skarnelis - janis@fancyapps.com
19
+
20
+
21
+ How to use
22
+ ----------
23
+
24
+ To get started, download the plugin, unzip it and copy files to your website/application directory.
25
+ Load files in the <head> section of your HTML document. Make sure you also add the jQuery library.
26
+
27
+ <head>
28
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
29
+ <link rel="stylesheet" href="/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
30
+ <script type="text/javascript" src="/fancybox/jquery.fancybox.pack.js"></script>
31
+ </head>
32
+
33
+ Create your links with a `title` if you want a title to be shown, and add a class:
34
+
35
+ <a href="large_image.jpg" class="fancybox" title="Sample title"><img src="small_image.jpg" /></a>
36
+
37
+ If you have a set of related items that you would like to group,
38
+ additionally include a group name in the `rel` (or `data-fancybox-group`) attribute:
39
+
40
+ <a href="large_1.jpg" class="fancybox" rel="gallery" title="Sample title 1"><img src="small_1.jpg" /></a>
41
+ <a href="large_2.jpg" class="fancybox" rel="gallery" title="Sample title 1"><img src="small_2.jpg" /></a>
42
+
43
+ Initialise the script like this:
44
+
45
+ <script>
46
+ $(document).ready(function() {
47
+ $('.fancybox').fancybox();
48
+ });
49
+ </script>
50
+
51
+ May also be passed an optional options object which will extend the default values. Example:
52
+
53
+ <script>
54
+ $(document).ready(function() {
55
+ $('.fancybox').fancybox({
56
+ padding : 0,
57
+ openEffect : 'elastic'
58
+ });
59
+ });
60
+ </script>
61
+
62
+ Tip: Automatically group and apply fancyBox to all images:
63
+
64
+ $("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.png'],a[href$='.gif']").attr('rel', 'gallery').fancybox();
65
+
66
+ Script uses the `href` attribute of the matched elements to obtain the location of the content and to figure out content type you want to display.
67
+ You can specify type directly by adding classname (fancybox.image, fancybox.iframe, etc) or `data-fancybox-group` attribute:
68
+
69
+ //Ajax:
70
+ <a href="/example.html" class="fancybox fancybox.ajax">Example</a>
71
+ //or
72
+ <a href="/example.html" class="fancybox" data-fancybox-type="ajax">Example</a>
73
+
74
+ //Iframe:
75
+ <a href="example.html" class="fancybox fancybox.iframe">Example</a>
76
+
77
+ //Inline (will display an element with `id="example"`)
78
+ <a href="#example" class="fancybox">Example</a>
79
+
80
+ //SWF:
81
+ <a href="example.swf" class="fancybox">Example</a>
82
+
83
+ //Image:
84
+ <a href="example.jpg" class="fancybox">Example</a>
85
+
86
+ Note, ajax requests are subject to the [same origin policy](http://en.wikipedia.org/wiki/Same_origin_policy).
87
+ If fancyBox will not be able to get content type, error message will be displayed (this is different from previsous versions where 'ajax' was used as default type).
88
+
89
+ Advanced
90
+ --------
91
+
92
+ ### Helpers
93
+
94
+ Helpers provide a simple mechanism to extend the capabilities of fancyBox. There are two built-in helpers - 'overlay' and 'title'.
95
+ You can disable them, set custom options or enable other helpers. Examples:
96
+
97
+ //Disable title helper
98
+ $(".fancybox").fancybox({
99
+ helpers: {
100
+ title: null
101
+ }
102
+ });
103
+
104
+ //Disable overlay helper
105
+ $(".fancybox").fancybox({
106
+ helpers: {
107
+ overlay : null
108
+ }
109
+ });
110
+
111
+ //Change title position and overlay color
112
+ $(".fancybox").fancybox({
113
+ helpers: {
114
+ title : {
115
+ type : 'inside'
116
+ },
117
+ overlay : {
118
+ css : {
119
+ 'background-color' : '#fff'
120
+ }
121
+ }
122
+ }
123
+ });
124
+
125
+ //Enable thumbnail helper and set custom options
126
+ $(".fancybox").fancybox({
127
+ helpers: {
128
+ thumbs : {
129
+ width: 50,
130
+ height: 50
131
+ }
132
+ }
133
+ });
134
+
135
+
136
+ ### API
137
+
138
+ Also available are event driven callback methods. The `this` keyword refers to the current or upcoming object (depends on callback method). Here is how you can change title:
139
+
140
+ $(".fancybox").fancybox({
141
+ beforeLoad : function() {
142
+ this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
143
+
144
+ /*
145
+ "this.element" refers to current element, so you can, for example, use the "alt" attribute of the image to store the title:
146
+ this.title = $(this.element).find('img').attr('alt');
147
+ */
148
+ }
149
+ });
150
+
151
+ It`s possible to open fancyBox programmatically in various ways:
152
+
153
+ //HTML content:
154
+ $.fancybox( '<div><h1>Lorem Lipsum</h1><p>Lorem lipsum</p></div>', {
155
+ title : 'Custom Title'
156
+ });
157
+
158
+ //DOM element:
159
+ $.fancybox( $("#inline"), {
160
+ title : 'Custom Title'
161
+ });
162
+
163
+ //Custom object:
164
+ $.fancybox({
165
+ href: 'example.jpg',
166
+ title : 'Custom Title'
167
+ });
168
+
169
+ //Array of objects:
170
+ $.fancybox([
171
+ {
172
+ href: 'example1.jpg',
173
+ title : 'Custom Title 1'
174
+ },
175
+ {
176
+ href: 'example2.jpg',
177
+ title : 'Custom Title 2'
178
+ }
179
+ ], {
180
+ padding: 0
181
+ });
182
+
183
+ There are several methods that allow you to interact with and manipulate fancyBox, example:
184
+
185
+ //Close fancybox:
186
+ $.fancybox.close();
187
+
188
+ There is a simply way to access wrapping elements using JS:
189
+
190
+ $.fancybox.wrap
191
+ $.fancybox.skin
192
+ $.fancybox.outer
193
+ $.fancybox.inner
194
+
195
+ You can override CSS to customize the look. For example, make navigation arrows always visible
196
+ and move them outside of area (use this snippet after including fancybox.css):
197
+
198
+ .fancybox-nav span {
199
+ visibility: visible;
200
+ }
201
+
202
+ .fancybox-prev {
203
+ left: -80px;
204
+ }
205
+
206
+ .fancybox-next {
207
+ right: -80px;
208
+ }
209
+
210
+ In that case, you might want to increase space around box:
211
+
212
+ $(".fancybox").fancybox({
213
+ margin : [20, 60, 20, 60]
214
+ });
215
+
216
+
217
+ Bug tracker
218
+ -----------
219
+
220
+ Have a bug? Please create an issue on GitHub at https://github.com/fancyapps/fancyBox/issues