Commit 50b087198d6d46641fae7c161a5468664631c0a4
- Diff rendering mode:
- inline
- side by side
server/ui.js
(3 / 3)
  | |||
42 | 42 | var para = document.createElement("p"); | |
43 | 43 | var newel = document.createElement("a"); | |
44 | 44 | newel.textContent = menu_list[i]; | |
45 | $(newel).attr("href",config.url+"/?foruri="+a['foruri']+"&lang="+menu_list[i]+"&interactive=1"); | ||
45 | $(newel).attr("href",config.deploy+"/?foruri="+a['foruri']+"&lang="+menu_list[i]+"&interactive=1"); | ||
46 | 46 | para.appendChild(newel); | |
47 | 47 | xyz.appendChild(para); | |
48 | 48 | } | |
… | … | ||
76 | 76 | xhr.send('url='+a['foruri']); | |
77 | 77 | ||
78 | 78 | req = {"about":decodeURIComponent(a['foruri']), "lang":a['lang']}; | |
79 | $.getJSON('http://127.0.0.1:5000/info?', req, function(data) | ||
79 | $.getJSON(config.deploy+'/info?', req, function(data) | ||
80 | 80 | { | |
81 | 81 | a11ypi.responseJSON = data; | |
82 | 82 | }); | |
… | … | ||
939 | 939 | $(event.target).removeClass('highlightElement'); | |
940 | 940 | }, | |
941 | 941 | showInfo: function(data) { | |
942 | infoWindow = window.open('blank','Info page'); | ||
942 | infoWindow = window.open(config.deploy+'/blank','Info page'); | ||
943 | 943 | window.setTimeout(function(){a11ypi.pushInfo(infoWindow.document.getElementById('info_content'),infoWindow,data);},2500); | |
944 | 944 | }, | |
945 | 945 | pushInfo: function(ele, win, data) //ele contains the info_content element from blank.html |