Skip to content

Commit 81d85c0

Browse files
committed
Work on columns, polish 3d pds
1 parent 330c6dd commit 81d85c0

File tree

5 files changed

+29
-24
lines changed

5 files changed

+29
-24
lines changed

labs/pd3d/3d.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div id="thumbs"></div>
3939
<div id="sim_thumbs"></div>
4040
<div id="legend">Known crystal structures are in red.</div>
41-
<div id="sim_legend">Hover the binary diagrams for more data or <a target="_parent" id="expander">expand view</a>.</div>
41+
<div id="sim_legend">Hover the binary diagrams for more data or <a target="_blank" id="expander">expand view</a>.</div>
4242

4343
<!-- POSSIBILITY TO CLOSE FROM IFRAME -->
4444
<div id="cross" title="Close" class="uielem"></div>
@@ -77,7 +77,7 @@
7777
model_url = (debug ? 'http://localhost:8522' : 'https://labs.mpds.io/services') + '/model?els=' + target,
7878
meta_url = (debug ? 'http://localhost:8522' : 'https://labs.mpds.io/services') + '/modelmeta?els=' + target,
7979
data_server = (window.location.host.indexOf('localhost') === -1) ? 'https://api.mpds.io/v0/search/facet?q=' : 'http://localhost:7070/search/facet?q=',
80-
gui_server = (window.location.host.indexOf('localhost') === -1) ? 'https://mpds.io/#entry/' : 'http://localhost:8070/#entry/',
80+
//gui_server = (window.location.host.indexOf('localhost') === -1) ? 'https://mpds.io/#entry/' : 'http://localhost:8070/#entry/',
8181
req_cache = {}, // [els] => answer array
8282
scale_ratio = 340;
8383

@@ -270,7 +270,7 @@
270270
} catch (err){}
271271
if (cur_entry){
272272
document.getElementById('sim_legend').style.display = 'block';
273-
document.getElementById('expander').setAttribute('href', gui_server + cur_entry);
273+
document.getElementById('expander').setAttribute('href', '/#entry/' + cur_entry);
274274
}
275275
}
276276
else if (xhr.status) console.error('HTTP error ' + xhr.status + ' received during retrieving data from the server');

src_js/markup.js

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function register_html(){
292292
293293
<!-- PERIODIC TABLE DATATYPES CONTROL -->
294294
<div id="ptable_dtypes_box">
295-
<span><span>&#9432;</span> Show chemical elements as: </span>
295+
<span>Show periodic table as: </span>
296296
<div>
297297
<input type="radio" name="ptable_dtypes" id="ptable_dtypes_1" value="1" checked /><label for="ptable_dtypes_1"> phase diagrams</label><br />
298298
<input type="radio" name="ptable_dtypes" id="ptable_dtypes_2" value="2" /><label for="ptable_dtypes_2"> crystal structure counts</label><br />
@@ -680,7 +680,7 @@ function register_html(){
680680
<li rev="usr_tab_account" class="working">account</li>
681681
<li rev="usr_tab_perms">data access</li>
682682
<li rev="usr_tab_api_key" class="only_regular">API key</li>
683-
<li rev="usr_tab_columns">tables</li>
683+
<!-- li rev="usr_tab_clmns">entries table</li -->
684684
<li rev="usr_tab_absolidix" class="only_regular only_mpds">my data</li>
685685
<li rev="usr_tab_ctrl" style="display:none;" class="admin">management</li>
686686
</ul>
@@ -739,23 +739,26 @@ function register_html(){
739739
</div>
740740
</div>
741741
742-
<div id="usr_tab_columns" class="menu_tabs" style="display:none;">
742+
<!-- div id="usr_tab_clmns" class="menu_tabs" style="display:none;">
743743
<div class="cross close_user_dialogue" style="margin-top:25px;"></div>
744744
<div style="clear:both;"></div>
745745
<div class="divider"></div>
746746
747-
<div class="columns"><input type="checkbox" checked />&nbsp;<label>Formula</label></div>
748-
<div class="columns"><input type="checkbox" />&nbsp;<label>Anonymous formula</label></div>
749-
<div class="columns"><input type="checkbox" />&nbsp;<label>Prototype</label></div>
750-
<div class="columns"><input type="checkbox" />&nbsp;<label>Distinct phase</label></div>
751-
<div class="columns"><input type="checkbox" checked />&nbsp;<label>Property</label></div>
752-
<div class="columns"><input type="checkbox" />&nbsp;<label>Temperature</label></div>
753-
<div class="columns"><input type="checkbox" />&nbsp;<label>Space group</label></div>
754-
<div class="columns"><input type="checkbox" />&nbsp;<label>Conditions</label></div>
755-
<div class="columns"><input type="checkbox" checked />&nbsp;<label>J. code</label></div>
756-
<div class="columns"><input type="checkbox" checked />&nbsp;<label>Year</label></div>
757-
<div class="columns"><input type="checkbox" checked />&nbsp;<label>Ref.</label></div>
758-
</div>
747+
<div class="clmns"><input type="checkbox" id="clmns_entry" />&nbsp;<label for="clmns_entry">ID</label></div>
748+
<div class="clmns"><input type="checkbox" id="clmns_formula" />&nbsp;<label for="clmns_formula">Formula</label></div>
749+
<div class="clmns"><input type="checkbox" id="clmns_anon" />&nbsp;<label for="clmns_anon">Anonymous formula</label></div>
750+
<div class="clmns"><input type="checkbox" id="clmns_proto" />&nbsp;<label for="clmns_proto">Prototype</label></div>
751+
<div class="clmns"><input type="checkbox" id="clmns_phase" />&nbsp;<label for="clmns_phase">Distinct phase</label></div>
752+
<div class="clmns"><input type="checkbox" id="clmns_prop" />&nbsp;<label for="clmns_prop">Property</label></div>
753+
<div class="clmns"><input type="checkbox" id="clmns_value" />&nbsp;<label for="clmns_value">Value</label></div>
754+
<div class="clmns"><input type="checkbox" id="clmns_t" />&nbsp;<label for="clmns_t">Temperature</label></div>
755+
<div class="clmns"><input type="checkbox" id="clmns_spg" />&nbsp;<label for="clmns_spg">Space group</label></div>
756+
<div class="clmns"><input type="checkbox" id="clmns_cond" />&nbsp;<label for="clmns_cond">Conditions</label></div>
757+
<div class="clmns"><input type="checkbox" id="clmns_rank" />&nbsp;<label for="clmns_rank">Entry rank</label></div>
758+
<div class="clmns"><input type="checkbox" id="clmns_coden" />&nbsp;<label for="clmns_coden">J. code</label></div>
759+
<div class="clmns"><input type="checkbox" id="clmns_year" />&nbsp;<label for="clmns_year">Year</label></div>
760+
<div class="clmns"><input type="checkbox" id="clmns_bid" />&nbsp;<label for="clmns_bid">Ref.</label></div>
761+
</div -->
759762
760763
<div id="usr_tab_absolidix" class="menu_tabs" style="display:none;">
761764
<br /><br /><br /><br />Redirecting...<br /><br /><br /><br />

src_js/ptable.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"use strict";
22

3+
var wmgui = window.wmgui || {};
4+
35
wmgui.ptable = {};
46
wmgui.ptable.update_selectize = false;
57
wmgui.ptable.active_ajax = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");

src_js/wmsettings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ wmgui.numerics = {
111111
wmgui.gui_host = window.location.protocol + '//' + window.location.host;
112112
wmgui.api_host = wmgui.prod ? 'https://api.mpds.io/v0' : 'http://localhost:7070';
113113
wmgui.static_host = 'https://mpds.io';
114+
//wmgui.static_host = 'http://localhost:8070';
114115

115116
// below are the main MPDS API endpoints
116117
wmgui.login_endpoint = wmgui.api_host + '/users/login';

webassets/ermac.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ div.opened div.gallery_img:after{content:"";position:absolute;top:0;right:0;bott
227227

228228
div.col_title{width:100%;height:40px;font-size:0.9em;letter-spacing:1.5px;text-align:center;line-height:40px;margin-bottom:6px;color:#333;background:#fafafa;overflow:hidden;text-transform:uppercase;}
229229
div.col_title a{text-decoration:none;color:#000;border-bottom:1px solid #000;}
230-
div.columns{height:46px;text-align:left;}
231-
div.columns > input{display:inline-block;width:40px !important;vertical-align:top;}
232-
div.columns > label{display:inline-block;vertical-align:top;margin-top:4px;}
230+
div.clmns{height:42px;text-align:left;}
231+
div.clmns > input{display:inline-block;width:40px !important;vertical-align:top;}
232+
div.clmns > label{display:inline-block;vertical-align:top;margin-top:4px;}
233233

234234
#ctx_col{display:none;position:fixed;top:62px;left:0;width:13.5%;height:90%;z-index:56;background:#fff;border-top:1px solid #888;}
235235
#ctx_col > ul{margin:0;padding:0;}
@@ -353,9 +353,9 @@ span.href, div.notice > a{cursor:pointer;text-decoration:none;color:#3e3f95;bord
353353
#account_pass_hint{width:90%;height:auto;position:relative;margin:2vh auto;font-size:0.95em;line-height:2.5vh;background:#ffd;padding:15px;}
354354
#account_pass_hint:after{content:'';position:absolute;bottom:0;left:50%;width:0;height:0;border:22px solid transparent;border-top-color:#ffc;border-bottom:0;margin-left:-22px;margin-bottom:-22px;}
355355

356-
#tab_links{color:#333;margin:-55px 0 0 0;padding:0;}
356+
#tab_links{color:#333;margin:-56px 0 0 0;padding:0;}
357357
#tab_links:after{display:block;clear:both;content:'';}
358-
#tab_links li{margin:0 2px;cursor:pointer;user-select:none;float:left;padding:5px 8px;list-style:none;line-height:20px;font-size:0.9em;background:#ddd;border-radius:4px 4px 0 0;border-top:1px solid #999;border-right:1px solid #999;border-left:1px solid #999;}
358+
#tab_links li{margin:2px 2px 0;cursor:pointer;user-select:none;float:left;padding:5px 8px;list-style:none;line-height:20px;font-size:0.9em;background:#ddd;border-radius:4px 4px 0 0;border-top:1px solid #999;border-right:1px solid #999;border-left:1px solid #999;}
359359
#tab_links li:hover{background:#fff;}
360360
#tab_links li.working{background:#fff;}
361361

@@ -528,7 +528,6 @@ div.sops_col{letter-spacing:1px;}
528528
#ptable_dtypes_box{display:none;position:fixed;z-index:2;width:460px;height:auto;top:294px;left:50%;margin-left:-297px;color:#333;letter-spacing:0.3px;user-select:none;}
529529
#ptable_dtypes_box.resulted{display:block;top:94px;}
530530
#ptable_dtypes_box > span{display:inline-block;font-size:0.9em;background:#fbfbfb;vertical-align:top;line-height:32px;}
531-
#ptable_dtypes_box > span > span{font-size:26px;color:#ccc;}
532531
#ptable_dtypes_box > div{display:inline-block;padding-top:3px;line-height:32px;}
533532
#ptable_dtypes_box > div > label{font-size:0.9em;background:#fbfbfb;}
534533

0 commit comments

Comments
 (0)