Skip to content

Commit

Permalink
Fix optical bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin committed Oct 24, 2022
1 parent b89d310 commit 58033d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src_js/main_logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ function get_visavis_url(request, type, height){

var height_str = height ? ('&visavis_height=' + height) : '';

return wmgui.static_host + '/visavis/#' + wmgui.vis_endpoint + '/' + (type || wmgui.visavis_curtype) + '?q=' + escape(JSON.stringify(request)) + height_str;
return wmgui.static_host + '/visavis/?241022#' + wmgui.vis_endpoint + '/' + (type || wmgui.visavis_curtype) + '?q=' + escape(JSON.stringify(request)) + height_str;
}

function describe_perms(perms){
Expand Down
8 changes: 4 additions & 4 deletions src_js/markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ function register_html(){
<div id="ptable_dtypes_box">
<span><span>&#x1f6c8;</span> Show chemical elements as: </span>
<div>
<input type="radio" name="ptable_dtypes" id="ptable_dtypes_1" value="1" checked><label for="ptable_dtypes_1">phase diagrams</label><br />
<input type="radio" name="ptable_dtypes" id="ptable_dtypes_2" value="2"><label for="ptable_dtypes_2">crystal structure counts</label><br />
<input type="radio" name="ptable_dtypes" id="ptable_dtypes_3" value="3"><label for="ptable_dtypes_3">physical property counts</label><br />
<input type="radio" name="ptable_dtypes" id="ptable_dtypes_0" value="0"><label for="ptable_dtypes_0">empty cells</label>
<input type="radio" name="ptable_dtypes" id="ptable_dtypes_1" value="1" checked><label for="ptable_dtypes_1"> phase diagrams</label><br />
<input type="radio" name="ptable_dtypes" id="ptable_dtypes_2" value="2"><label for="ptable_dtypes_2"> crystal structure counts</label><br />
<input type="radio" name="ptable_dtypes" id="ptable_dtypes_3" value="3"><label for="ptable_dtypes_3"> physical property counts</label><br />
<input type="radio" name="ptable_dtypes" id="ptable_dtypes_0" value="0"><label for="ptable_dtypes_0"> empty cells</label>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src_js/wmsettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ wmgui.dd_addr_tpl = wmgui.api_host + '/download';
wmgui.mydata_addr = wmgui.prod ? 'https://absolidix.com' : 'http://localhost:5000';

// below are resources used in the *iframe*
wmgui.v_player_addr_tpl = '/crystvis/player.html#';
wmgui.v_player_addr = wmgui.v_player_addr_tpl + wmgui.api_host + '/download/s?fmt=cif&q=';
wmgui.v_player_addr_tpl = '/crystvis/player.html';
wmgui.v_player_addr = wmgui.v_player_addr_tpl + '#' + wmgui.api_host + '/download/s?fmt=cif&q=';
wmgui.v_pd_addr = wmgui.static_host + '/pd_stub.html#' + wmgui.api_host + '/download/c?fmt=png&q=';
wmgui.v_pd_addr_anon = wmgui.static_host + '/visavis/?280420#' + wmgui.api_host + '/download/c?fmt=json&q=';
wmgui.v_sd_addr = wmgui.static_host + '/visavis/?280420#' + wmgui.api_host + '/download/p?fmt=json&q=';
wmgui.v_pd_addr_anon = wmgui.static_host + '/visavis/?241022#' + wmgui.api_host + '/download/c?fmt=json&q=';
wmgui.v_sd_addr = wmgui.static_host + '/visavis/?241022#' + wmgui.api_host + '/download/p?fmt=json&q=';
wmgui.v_ab_vis_addr = wmgui.static_host + '/labs/view-phonons/#' + wmgui.api_host + '/download/p?fmt=json&q=';
wmgui.v_pd_3d_addr = wmgui.static_host + '/labs/pd3d/?';

Expand Down

0 comments on commit 58033d5

Please sign in to comment.