Commit a70335f4e5c03e26298c34e4410c5cbd45d8e613
- Diff rendering mode:
- inline
- side by side
server/templates/blank.html
(15 / 6)
  | |||
1 | 1 | <!doctype html> | |
2 | 2 | <html> | |
3 | <head> | ||
4 | <style> | ||
5 | span | ||
6 | {color:#0000FF; | ||
7 | font-weight:bold; | ||
8 | line-height:1.5em; | ||
9 | } | ||
10 | </style> | ||
3 | 11 | <body> | |
4 | 12 | <div id="info_content"> | |
5 | 13 | </div> | |
… | … | ||
20 | 20 | var html; | |
21 | 21 | for(var i = 0; i < responseJSON.length;i++) | |
22 | 22 | { | |
23 | html = $('#info_content').html() + '<pre><alipi>'+ | ||
24 | '\n\t<xpath>'+responseJSON[i]['xpath']+'</xpath>'+ | ||
25 | '\n\t<blog>'+responseJSON[i]['blog']+'</blog>'+ | ||
26 | '\n\t<elementType>'+responseJSON[i]['elementtype']+'</elementType>'+ | ||
27 | '\n\t<data>'+responseJSON[i]['data']+'</data>'+ | ||
28 | '\n</alipi></pre>'; | ||
23 | html = $('#info_content').html() + '<pre><span><alipi></span>'+ | ||
24 | '<span>\n\t<xpath></span>'+responseJSON[i]['xpath']+'<span></xpath></span>'+ | ||
25 | '<span>\n\t<blog></span>'+responseJSON[i]['blog']+'<span></blog></span>'+ | ||
26 | '<span>\n\t<elementType></span>'+responseJSON[i]['elementtype']+'<span></elementType></span>'+ | ||
27 | '<span>\n\t<bxpath></span>'+responseJSON[i]['bxpath']+'<span></bxpath></span>'+ | ||
28 | '<span>\n\t<data></span>'+responseJSON[i]['data']+'<span></data><span>'+ | ||
29 | '<span>\n</alipi><span></pre>'; | ||
29 | 30 | $('#info_content').html(html); | |
30 | 31 | } | |
31 | 32 | } |
server/ui.js
(4 / 12)
  | |||
417 | 417 | } | |
418 | 418 | ||
419 | 419 | if($('#orig-button').text() == 'Original Page') { | |
420 | $('#renarrated_overlay').append($('#share')); $('#share').show(); | ||
421 | $('#renarrated_overlay').append($('#info')); $('#info').show(); | ||
422 | $('#renarrated_overlay').append($('#orig-button')); $('#orig-button').show(); | ||
423 | $('#share-box').append($('#fb-like')); $('#share-box').append($('#tweet-root')); | ||
420 | $('#share').insertAfter($('#go')); $('#share').show(); | ||
421 | $('#info').insertAfter($('#go')); $('#info').show(); | ||
422 | $('#orig-button').insertAfter($('#go')); $('#orig-button').show(); | ||
423 | $('#share-box').append($('#fb-like')); $('#share-box').append($('#tweet-root')); | ||
424 | 424 | } | |
425 | 425 | }, | |
426 | 426 | checkSelect: function() | |
… | … | ||
1010 | 1010 | showInfo: function() { | |
1011 | 1011 | infoWindow = window.open('blank','Info page'); | |
1012 | 1012 | window.setTimeout(function(){a11ypi.pushInfo(infoWindow.document.getElementById('info_content'),infoWindow);},2000); | |
1013 | // $('#infoDiv').dialog({ | ||
1014 | // height:500, | ||
1015 | // width:500, | ||
1016 | // modal: true, | ||
1017 | // close: function(){ | ||
1018 | // $('#infoDiv').close(); | ||
1019 | // } | ||
1020 | // }); | ||
1021 | 1013 | }, | |
1022 | 1014 | pushInfo: function(ele, win) //ele contains the info_content element from blank.html | |
1023 | 1015 | { |
wsgi/alipiUtils.py
(1 / 1)
  | |||
74 | 74 | store_list.append(temp) | |
75 | 75 | for z in store_list: | |
76 | 76 | collection.insert(z) | |
77 | connection.disconnect() | ||
77 | connection.disconnect() | ||
78 | 78 | return 'ok' |