scratch – Diff between revs 77 and 84
?pathlinks?
Rev 77 | Rev 84 | |||
---|---|---|---|---|
Line 41... | Line 41... | |||
41 | |
41 | |
|
42 | <ul class="nav nav-tabs"> |
42 | <ul class="nav nav-tabs"> |
|
43 | <li><a href="index.html">Home</a></li> |
43 | <li><a href="index.html">Home</a></li> |
|
44 | <li><a href="file.html">File</a></li> |
44 | <li><a href="file.html">File</a></li> |
|
- | 45 | <li class="active"><a href="#">Text</a></li> |
||
45 | <li class="active"><a href="#">Text</a></li> |
46 | <li><a href="draw.html">Draw</a></li> |
|
Line 46... | Line 47... | |||
46 | </ul> |
47 | </ul> |
|
47 | |
48 | |
|
48 | <div class="panel panel-default"> |
49 | <div id="main-panel" class="panel panel-default"> |
|
49 | <div class="panel-heading"> |
50 | <div class="panel-heading"> |
|
50 | <div class="form-group"> |
51 | <div class="form-group"> |
|
51 | <div class="input-group"> |
52 | <div class="input-group"> |
|
Line 250... | Line 251... | |||
250 | data: formData, |
251 | data: formData, |
|
251 | // cache: false // FF |
252 | // cache: false // FF |
|
252 | processData: false, |
253 | processData: false, |
|
253 | contentType: false |
254 | contentType: false |
|
254 | }).done((data) => { |
255 | }).done((data) => { |
|
- | 256 | // Serialize JSON to object. |
||
- | 257 | data = JSON.parse(data); |
||
- | 258 | |
||
255 | $('#URL') |
259 | $('#URL') |
|
256 | .val( |
260 | .val( |
|
257 | location.protocol |
261 | location.protocol |
|
258 | .concat("//") |
262 | .concat("//") |
|
259 | .concat(window.location.hostname) |
263 | .concat(window.location.hostname) |
|
260 | .concat("/") |
264 | .concat("/") |
|
261 | .concat(data) |
265 | .concat(data.hash) |
|
262 | ); |
266 | ); |
|
263 | $('#trumbowyg').trumbowyg('enable'); |
267 | $('#trumbowyg').trumbowyg('enable'); |
|
264 | }).fail(() => { |
268 | }).fail(() => { |
|
265 | $('#trumbowyg').trumbowyg('enable'); |
269 | $('#trumbowyg').trumbowyg('enable'); |
|
266 | }); |
270 | }); |
|
Line 390... | Line 394... | |||
390 | $('#trumbowyg').trumbowyg('enable'); |
394 | $('#trumbowyg').trumbowyg('enable'); |
|
391 | $('#trumbowyg').show(); |
395 | $('#trumbowyg').show(); |
|
392 | }); |
396 | }); |
|
393 | }); |
397 | }); |
|
394 | }); |
398 | }); |
|
- | 399 | |
||
- | 400 | // Scroll to the panel. |
||
- | 401 | $('html, body').animate({ |
||
- | 402 | scrollTop: $('#main-panel').offset().top |
||
- | 403 | }, 'slow'); |
||
395 | }); |
404 | }); |
|
396 | </script> |
405 | </script> |
|
397 | <!-- Jumbotron parallax effect --> |
406 | <!-- Jumbotron parallax effect --> |
|
398 | <script> |
407 | <script> |
|
399 | var jumboHeight = $('.jumbotron').outerHeight(); |
408 | var jumboHeight = $('.jumbotron').outerHeight(); |