|
| 1 | +<!-- |
| 2 | +// OntoMaton is a component of the ISA software suite (http://www.isa-tools.org) |
| 3 | +// |
| 4 | +// License: |
| 5 | +// OntoMaton is licensed under the Common Public Attribution License version 1.0 (CPAL) |
| 6 | +// |
| 7 | +// EXHIBIT A. CPAL version 1.0 |
| 8 | +// “The contents of this file are subject to the CPAL version 1.0 (the “License”); |
| 9 | +// you may not use this file except in compliance with the License. You may obtain a |
| 10 | +// copy of the License at http://isatab.sf.net/licenses/OntoMaton-license.html. |
| 11 | +// The License is based on the Mozilla Public License version 1.1 but Sections |
| 12 | +// 14 and 15 have been added to cover use of software over a computer network and |
| 13 | +// provide for limited attribution for the Original Developer. In addition, Exhibit |
| 14 | +// A has been modified to be consistent with Exhibit B. |
| 15 | +// |
| 16 | +// Software distributed under the License is distributed on an “AS IS” basis, |
| 17 | +// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for |
| 18 | +// the specific language governing rights and limitations under the License. |
| 19 | +// |
| 20 | +// The Original Code is OntoMaton. |
| 21 | +// The Original Developer is the Initial Developer. The Initial Developer of the |
| 22 | +// Original Code is the ISA Team (Eamonn Maguire, [email protected]; Alejandra Gonzalez-Beltran, [email protected]; Massimiliano Izzo <[email protected]>; |
| 23 | +// Philippe Rocca-Serra, [email protected]; Susanna-Assunta Sansone, [email protected]; |
| 24 | +// http://www.isa-tools.org). All portions of the code written by the ISA Team are |
| 25 | +// Copyright (c) 2007-2016 ISA Team. All Rights Reserved. |
| 26 | +// |
| 27 | +// EXHIBIT B. Attribution Information |
| 28 | +// Attribution Copyright Notice: Copyright (c) 2007-2016 ISA Team |
| 29 | +// Attribution Phrase: Developed by the ISA Team |
| 30 | +// Attribution URL: http://www.isa-tools.org |
| 31 | +// Graphic Image provided in the Covered Code as file: http://isatab.sf.net/assets/img/tools/ontomaton-part-of-isatools.png |
| 32 | +// Display of Attribution Information is required in Larger Works which are defined in the CPAL as a work which combines Covered Code or portions thereof with code not governed by the terms of the CPAL. |
| 33 | +--> |
| 34 | + |
1 | 35 | <link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons.css"> |
2 | 36 | <!-- The CSS package above applies Google styling to buttons and other elements. --> |
3 | 37 | <style> |
|
14 | 48 | top: 0; |
15 | 49 | } |
16 | 50 |
|
| 51 | +.sidebar { |
| 52 | + width: 94%; |
| 53 | +} |
| 54 | + |
17 | 55 | .hidden { |
18 | 56 | display:none; |
19 | 57 | } |
|
34 | 72 |
|
35 | 73 | .ontomaton-header{ |
36 | 74 | padding-top: 5px; |
37 | | - background: #f6f7f6; |
38 | 75 | height: 75px; |
39 | 76 | } |
40 | 77 |
|
|
92 | 129 |
|
93 | 130 | .search-results ul { |
94 | 131 | list-style:none; |
95 | | -margin-left: -30px; |
| 132 | +margin-left: 0px; |
96 | 133 | text-align: left; |
97 | 134 | } |
98 | 135 |
|
|
108 | 145 | } |
109 | 146 |
|
110 | 147 | .search-results ul li{ |
111 | | -width:95%; |
| 148 | +width:85%; |
112 | 149 | padding: 4px; |
113 | 150 | font-weight: bolder; |
114 | 151 | padding-top: 3px; |
|
183 | 220 | $(function() { |
184 | 221 | $('#run-annotator').click(runAnnotator); |
185 | 222 | }); |
186 | | - |
| 223 | + |
187 | 224 | /** |
188 | 225 | * Taken from http://www.mustbebuilt.co.uk/2012/04/20/replaceall-function-for-javascript-and-actionscript/ |
189 | 226 | */ |
|
195 | 232 | var myPattern=new RegExp(removeStr,cs); |
196 | 233 | return oldStr.replace(myPattern,replaceStr); |
197 | 234 | } |
198 | | - |
| 235 | + |
199 | 236 | /** |
200 | 237 | * Inserts the term in to the spreadsheet. |
201 | 238 | */ |
202 | 239 | function insertTerm(term_id) { |
203 | 240 | google.script.run |
204 | 241 | .withSuccessHandler( |
205 | 242 | function(result, element) { |
206 | | - |
| 243 | + |
207 | 244 | }).withFailureHandler( |
208 | 245 | function(msg, element) { |
209 | 246 | showError(msg, $('#button-bar')); |
|
212 | 249 | .withUserObject(this) |
213 | 250 | .replaceTermWithSelectedValue(term_id) |
214 | 251 | } |
215 | | - |
| 252 | + |
216 | 253 | function toggle(id) { |
217 | 254 | $("#"+id).toggleClass("hidden"); |
218 | 255 |
|
219 | 256 | var isHidden = $("#" + id).hasClass( "hidden" ); |
220 | | - console.log("Is hidden? " + isHidden); |
| 257 | + console.log("Is hidden? " + isHidden); |
221 | 258 | $("#expand-icon-" + id).removeClass(isHidden ? "entypo-minus" : "entypo-plus"); |
222 | 259 | $("#expand-icon-" + id).addClass(isHidden ? "entypo-plus" : "entypo-minus"); |
223 | 260 | } |
|
228 | 265 | */ |
229 | 266 | function runAnnotator() { |
230 | 267 | this.disabled = true; |
231 | | - $('#search-results').html('<div id="spinner"><img src="http://l4.yimg.com/dh/ap/default/130116/spinner_white_working.gif"/></div>'); |
| 268 | + $('#search-results').html('<div id="spinner"><img src="//s-media-cache-ak0.pinimg.com/originals/0a/59/71/0a59718a5ee79a0558930ca9907c0659.gif" width="60%"/></div>'); |
232 | 269 | $('#error').remove(); |
233 | 270 |
|
234 | 271 | google.script.run |
|
0 commit comments