From 926a4479db0a556e46eaee87f2efde6c8dcea116 Mon Sep 17 00:00:00 2001 From: blokhin Date: Wed, 15 Jan 2025 20:21:44 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20mpds-io/?= =?UTF-8?q?ermac@0e6895cd041422369b93511fa787c93805532cba=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ermac.min.js | 8 ++++---- webassets/iframe_cifplayer.html | 1 + webassets/visavis.js | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ermac.min.js b/ermac.min.js index 2961cc8..fa7c76e 100644 --- a/ermac.min.js +++ b/ermac.min.js @@ -241,9 +241,9 @@ wmgui.entries_messages={C900500:"This system is stable (dashed metastable)",C904 C904330:"This system is metastable (dashed stable)",C904331:"This system is metastable (dashed stable)",C904332:"This system is stable",C904343:"This system is stable",C904344:"This system is stable",C904345:"This system is stable (dashed metastable)",C904354:"This system is metastable (dashed stable)",C904366:"This system is metastable",C904376:"This system is metastable (dashed stable)",C904437:"This system is stable",C904478:"This system is stable",C905006:"This system is metastable",C905621:"This system is metastable", C905635:"This system is stable (dashed metastable)",C905636:"This system is stable",C905637:"This system is stable (dashed metastable)",C905638:"This system is stable (dashed metastable)",C905985:"This system is metastable (dashed stable)",C906635:"This system is stable",C906931:"This system is stable",C908341:"This system is stable; p = 8.0 GPa",C908342:"This system is metastable",C908343:"This system is metastable",C979860:"This system is stable",C979861:"This system is stable",C979862:"This system is stable", C979863:"This system is metastable",C979864:"This system is stable",C979865:"This system is stable",C102059:"This system is metastable",C103150:"This system is stable",C104069:"This system is metastable",C105034:"This system is metastable",C105035:"This system is metastable"};wmgui.poly_limits={1:"isopolyhedral",2:"dipolyhedral",3:"tripolyhedral"};wmgui.mpdsgui={};wmgui.mpdsgui.view=function(){};wmgui.mpdsgui.ptable_activate=function(){};wmgui.mpdsgui.ptable_deactivate=function(){}; -if(!OptimadeNLP)throw Error("Failed to load OptimadeNLP");var wmutils=OptimadeNLP(),wmgui=window.wmgui||{};Array.prototype.extend=function(b){b.forEach(function(a){this.push(a)},this)};String.prototype.startswith=function(b){return 0===this.indexOf(b)};Number.prototype.count_decimals=function(){if(isFinite(this)&&Math.floor(this)===this)return 0;var b=this.toString();return-1==b.indexOf(".")?0:b.split(".")[1].length||0};wmgui.clean=function(b){b=$((b||"").bold());b.find("script").remove();return b.html()}; -wmgui.cancel_event=function(b){b=b||window.event;b.cancelBubble?b.cancelBubble=!0:(b.stopPropagation&&b.stopPropagation(),b.preventDefault&&b.preventDefault())};wmgui.debounce=function(b,a,e){var d;return function(){var l=this,m=arguments,k=e&&!d;clearTimeout(d);d=setTimeout(function(){d=null;e||b.apply(l,m)},a);k&&b.apply(l,m)}};wmgui.is_inview=function(b){var a=$(window).scrollTop(),e=a+$(window).height(),d=$(b).offset().top;b=d+$(b).height();return d<=e&&b>=a};wmgui.show_preloader=function(){$("#preloader").show()}; -wmgui.hide_preloader=function(){$("#preloader").hide()}; +if(!OptimadeNLP)throw Error("Failed to load OptimadeNLP");var wmutils=OptimadeNLP(),wmgui=window.wmgui||{};$.ajaxSetup({xhrFields:{withCredentials:!0}});Array.prototype.extend=function(b){b.forEach(function(a){this.push(a)},this)};String.prototype.startswith=function(b){return 0===this.indexOf(b)};Number.prototype.count_decimals=function(){if(isFinite(this)&&Math.floor(this)===this)return 0;var b=this.toString();return-1==b.indexOf(".")?0:b.split(".")[1].length||0}; +wmgui.clean=function(b){b=$((b||"").bold());b.find("script").remove();return b.html()};wmgui.cancel_event=function(b){b=b||window.event;b.cancelBubble?b.cancelBubble=!0:(b.stopPropagation&&b.stopPropagation(),b.preventDefault&&b.preventDefault())};wmgui.debounce=function(b,a,e){var d;return function(){var l=this,m=arguments,k=e&&!d;clearTimeout(d);d=setTimeout(function(){d=null;e||b.apply(l,m)},a);k&&b.apply(l,m)}}; +wmgui.is_inview=function(b){var a=$(window).scrollTop(),e=a+$(window).height(),d=$(b).offset().top;b=d+$(b).height();return d<=e&&b>=a};wmgui.show_preloader=function(){$("#preloader").show()};wmgui.hide_preloader=function(){$("#preloader").hide()}; wmgui.loadCSS=function(b,a,e,d){function l(n){if(document.body)return n();setTimeout(function(){l(n)})}function m(){k.addEventListener&&k.removeEventListener("load",m);k.media=e||"all"}var k=document.createElement("link");if(a)var f=a;else{var c=(document.body||document.getElementsByTagName("head")[0]).childNodes;f=c[c.length-1]}var p=document.styleSheets;if(d)for(var h in d)d.hasOwnProperty(h)&&k.setAttribute(h,d[h]);k.rel="stylesheet";k.href=b;k.media="only x";l(function(){f.parentNode.insertBefore(k, a?f:f.nextSibling)});var g=function(n){for(var q=k.href,r=p.length;r--;)if(p[r].href===q)return n();setTimeout(function(){g(n)})};k.addEventListener&&k.addEventListener("load",m);k.onloadcssdefined=g;g(m);return k};wmgui.most_frequent_els="O Si Al Fe Ca Na Mg K Ti H Cl S Br C".split(" ");wmgui.probable_els=wmutils.periodic_elements_cased.slice(0,55);wmgui.probable_els.splice(53,1);wmgui.probable_els.splice(42,1);wmgui.probable_els.splice(35,1);wmgui.probable_els.splice(17,1); wmgui.probable_els.splice(9,1);wmgui.probable_els.splice(1,1);wmgui.classes_groups="transitional;chalcogen;rare earth;lanthanoid;metalloid;alkaline;halogen;pnictogen;alkali;actinoid".split(";");wmgui.classes_families="metal;intermetallic;oxide;conductor;nonmetal;antiferromagnet;ferromagnet;semiconductor;intermediate valence;superconductor;close-packed;perovskite;scheelite;high-tc superconductor;silicide;diamagnetic;cuprate;ferrimagnet;sulfide;spin glass;rocksalt;ferroelectric;frank-kasper;selenide;adamantane;paramagnet;friauf-laves;boride;semimetal;pauli paramagnet;fluoride;telluride;hydrate;carbide;ionic conductor;chloride;spinel;intercalation;fluorite;hard magnet;arsenide;ferroelastic;orthophosphate;phosphide;nitride;piezoelectric;antiferroelectric;hydroxide;silicate;organic;hydride;iodide;bromide;charge-density wave state;spin-density wave state;ruddlesden-popper;sulfate;superionic conductor;pyrochlore;orthosilicate;borocarbide;molybdate;borate;garnet;cyanide;thermoelectric;helimagnet;vanadate;zeolite;birefringent;deuteride;orthoborate;van vleck paramagnet;mictomagnet;carbonate;phosphate;chevrel;gamma-brass;polaron conductor;nasicon;luminescent;tungstate;arsenate;nitrate;radioactive".split(";"); @@ -278,7 +278,7 @@ function refresh_ptable_results(a,b,c){if(1===wmgui.view_mode)if(c=[a,b,c].filte wmgui.ptable.vis_fixed=!0):3==wmgui.ptable.dtypes?(d=wmgui.engines_addrs.visavis,wmgui.ptable.vis_fixed=!0):document.getElementById("ptable_vis").innerHTML="":2==c.length?(b=800,1==wmgui.ptable.dtypes?(c={search_type:0,classes:wmutils.arity_keys[c.length],elements:c.join("-"),props:"phase diagram"},ajax_download(null,wmgui.search_endpoint+"?q="+JSON.stringify(c),render_right)):2==wmgui.ptable.dtypes?(d=wmgui.engines_addrs.cifplayer,wmgui.ptable.vis_fixed=!0):3==wmgui.ptable.dtypes?(d=wmgui.engines_addrs.visavis, wmgui.ptable.vis_fixed=!0):document.getElementById("ptable_vis").innerHTML=""):(wmgui.ptable.subphases_set(1),b=window.innerHeight-200,wmgui.ptable.vis_fixed=!0,1==wmgui.ptable.dtypes?d=wmgui.v_pd_3d_addr+c.join("-"):2==wmgui.ptable.dtypes?d=wmgui.engines_addrs.cifplayer:3==wmgui.ptable.dtypes?d=wmgui.engines_addrs.visavis:document.getElementById("ptable_vis").innerHTML="");ajax_download(wmgui.ptable.active_ajax,wmgui.search_endpoint+"?q="+JSON.stringify(a)+"&strict=1",render_left);d&&(document.getElementById("ptable_vis").innerHTML= '');wmgui.ptable.activate()}else clear_results_area()} -function ajax_download(a,b,c){wmgui.show_preloader();const d=a?a:window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");d.onreadystatechange=function(){4==d.readyState&&(wmgui.hide_preloader(),200==d.status?c(d.responseText):console.error("Error: HTTP "+d.status+" status received during data retrieval from the server"))};d.open("GET",b);d.send(1)} +function ajax_download(a,b,c){wmgui.show_preloader();const d=a?a:window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");d.onreadystatechange=function(){4==d.readyState&&(wmgui.hide_preloader(),200==d.status?c(d.responseText):console.error("Error: HTTP "+d.status+" status received during data retrieval from the server"))};d.open("GET",b);d.withCredentials=!0;d.send(1)} function render_left(a){a=JSON.parse(a);if(a.error)return wmgui.notify(a.error);var b="

Reported phases of "+wmgui.ptable.query.classes+" "+wmgui.ptable.query.elements+(-1==wmgui.ptable.query.elements.indexOf("-")?"":" system")+"

";const c=document.getElementById("ptable_previews");c.className="";c.classList.add("ptable_dtype_"+wmgui.ptable.dtypes);c.innerHTML=b+(a.out.length?build_thumbs_ph(a.out):"

No results

")+wmgui.ptable.subphases_button;10>a.out.length&&(wmgui.ptable.vis_fixed= !1);2==wmgui.ptable.dtypes?(a=document.querySelectorAll("#ptable_results div.gallery_img.renderable"),a.length?(b=Math.floor(Math.random()*a.length),a[b].parentNode.classList.add("active"),b=a[b].getAttribute("rel"),a=document.querySelector("#ptable_vis > iframe"),b="#"+wmgui.phase_endpoint+"?phid="+b+"&struct=1",a?a.contentWindow.location.hash=b:document.getElementById("ptable_vis").innerHTML=''): document.getElementById("ptable_vis").innerHTML=""):3==wmgui.ptable.dtypes&&(a=document.querySelectorAll("#ptable_results div.gallery_img.renderable"),a.length?(b=Math.floor(Math.random()*a.length),a[b].parentNode.classList.add("active"),b=a[b].getAttribute("rel"),a=document.querySelector("#ptable_vis > iframe"),b=get_visavis_url({phid:b},"graph",window.innerHeight-50),a?a.contentWindow.location.replace(b):document.getElementById("ptable_vis").innerHTML='