Commit a70335f4e5c03e26298c34e4410c5cbd45d8e613

  • avatar
  • arvind
  • Mon May 14 16:38:05 IST 2012
Pushing before sending a pull request
  
11<!doctype html>
22<html>
3<head>
4<style>
5span
6{color:#0000FF;
7font-weight:bold;
8line-height:1.5em;
9}
10</style>
311<body>
412<div id="info_content">
513</div>
2020var html;
2121for(var i = 0; i < responseJSON.length;i++)
2222{
23html = $('#info_content').html() + '<pre>&lt;alipi&gt;'+
24 '\n\t&lt;xpath&gt;'+responseJSON[i]['xpath']+'&lt;/xpath&gt;'+
25 '\n\t&lt;blog&gt;'+responseJSON[i]['blog']+'&lt;/blog&gt;'+
26 '\n\t&lt;elementType&gt;'+responseJSON[i]['elementtype']+'&lt;/elementType&gt;'+
27 '\n\t&lt;data&gt;'+responseJSON[i]['data']+'&lt;/data&gt;'+
28 '\n&lt;/alipi&gt;</pre>';
23html = $('#info_content').html() + '<pre><span>&lt;alipi&gt;</span>'+
24 '<span>\n\t&lt;xpath&gt;</span>'+responseJSON[i]['xpath']+'<span>&lt;/xpath&gt;</span>'+
25 '<span>\n\t&lt;blog&gt;</span>'+responseJSON[i]['blog']+'<span>&lt;/blog&gt;</span>'+
26 '<span>\n\t&lt;elementType&gt;</span>'+responseJSON[i]['elementtype']+'<span>&lt;/elementType&gt;</span>'+
27 '<span>\n\t&lt;bxpath&gt;</span>'+responseJSON[i]['bxpath']+'<span>&lt;/bxpath&gt;</span>'+
28 '<span>\n\t&lt;data&gt;</span>'+responseJSON[i]['data']+'<span>&lt;/data&gt;<span>'+
29 '<span>\n&lt;/alipi&gt;<span></pre>';
2930$('#info_content').html(html);
3031}
3132}
server/ui.js
(4 / 12)
  
417417 }
418418
419419 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'));
424424 }
425425 },
426426 checkSelect: function()
10101010 showInfo: function() {
10111011 infoWindow = window.open('blank','Info page');
10121012 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 // });
10211013 },
10221014 pushInfo: function(ele, win) //ele contains the info_content element from blank.html
10231015 {
  
7474 store_list.append(temp)
7575 for z in store_list:
7676 collection.insert(z)
77 connection.disconnect()
77 connection.disconnect()
7878 return 'ok'