mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-05 05:33:55 +01:00
Merge branch 'master' into QUEST4
This commit is contained in:
commit
87a01a6c9c
@ -38,7 +38,7 @@ draft: false
|
|||||||
$("input[type='number'].range").trigger("change")
|
$("input[type='number'].range").trigger("change")
|
||||||
adjustSticky();
|
adjustSticky();
|
||||||
$(window).resize(adjustSticky)
|
$(window).resize(adjustSticky)
|
||||||
const LatexInline = ['\\(', '\\)']
|
|
||||||
var slist = $("#SelectList")
|
var slist = $("#SelectList")
|
||||||
getAllSelect().each(function () {
|
getAllSelect().each(function () {
|
||||||
$("<li/>").text($('label[for="' + $(this).attr('id') + '"]').text()).appendTo(slist)
|
$("<li/>").text($('label[for="' + $(this).attr('id') + '"]').text()).appendTo(slist)
|
||||||
@ -79,7 +79,7 @@ draft: false
|
|||||||
for (const [name, value] of excitationTypes.All) {
|
for (const [name, value] of excitationTypes.All) {
|
||||||
var txt = value.description.string
|
var txt = value.description.string
|
||||||
if (value.description.isLaTeX) {
|
if (value.description.isLaTeX) {
|
||||||
txt = LatexInline[0] + txt + LatexInline[1]
|
txt = MathJaxUtils.getMathJaxString(txt)
|
||||||
}
|
}
|
||||||
$("<li/>").text(txt).appendTo(extl)
|
$("<li/>").text(txt).appendTo(extl)
|
||||||
var cbli = $("<li/>")
|
var cbli = $("<li/>")
|
||||||
@ -385,7 +385,6 @@ draft: false
|
|||||||
}
|
}
|
||||||
doiCache.clear()
|
doiCache.clear()
|
||||||
processingIndicator.isActive = true
|
processingIndicator.isActive = true
|
||||||
const LatexInline = ['\\(', '\\)']
|
|
||||||
window.filtData = window.dats
|
window.filtData = window.dats
|
||||||
$('#form_dat > fieldset > div > select').each(function () {
|
$('#form_dat > fieldset > div > select').each(function () {
|
||||||
const prop = $(this).attr("name")
|
const prop = $(this).attr("name")
|
||||||
@ -518,7 +517,7 @@ draft: false
|
|||||||
if (ex[2].description.string) {
|
if (ex[2].description.string) {
|
||||||
desctex = "(" + ex[2].description.string + ")"
|
desctex = "(" + ex[2].description.string + ")"
|
||||||
}
|
}
|
||||||
$("<th/>", { scope: "rowgroup" }).text(String.raw`${LatexInline[0]}${ex[0].toLaTeX()} \rightarrow ${ex[1].toLaTeX()} ${Vertkindtext} ${desctex} ${LatexInline[1]}`).appendTo(tr)
|
$("<th/>", { scope: "rowgroup" }).text(MathJaxUtils.getMathJaxString(String.raw`${ex[0].toLaTeX()} \rightarrow ${ex[1].toLaTeX()} ${Vertkindtext} ${desctex}`)).appendTo(tr)
|
||||||
var entries = Array.from(exdat.entries())
|
var entries = Array.from(exdat.entries())
|
||||||
for (const method of sortedMethods) {
|
for (const method of sortedMethods) {
|
||||||
td = $("<td/>").addClass("NumberCell")
|
td = $("<td/>").addClass("NumberCell")
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
<link rel="stylesheet" href="https://unpkg.com/tippy.js@5/themes/light.css" />
|
<link rel="stylesheet" href="https://unpkg.com/tippy.js@5/themes/light.css" />
|
||||||
<script src="https://unpkg.com/tippy.js@5"></script>
|
<script src="https://unpkg.com/tippy.js@5"></script>
|
||||||
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
|
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
|
||||||
|
<script src="/js/MathJaxUtils.js"></script>
|
||||||
|
<script src="/js/mathjax-config.js" defer></script>
|
||||||
<script type="text/javascript" id="MathJax-script" async
|
<script type="text/javascript" id="MathJax-script" async
|
||||||
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
|
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
|
||||||
</script>
|
</script>
|
||||||
|
11
static/js/MathJaxUtils.js
Normal file
11
static/js/MathJaxUtils.js
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
class MathJaxUtils {
|
||||||
|
static get start(){
|
||||||
|
return '\\('
|
||||||
|
}
|
||||||
|
static get end(){
|
||||||
|
return '\\)'
|
||||||
|
}
|
||||||
|
static getMathJaxString(string){
|
||||||
|
return MathJaxUtils.start+string+MathJaxUtils.end
|
||||||
|
}
|
||||||
|
}
|
5
static/js/mathjax-config.js
Normal file
5
static/js/mathjax-config.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
MathJax = {
|
||||||
|
tex: {
|
||||||
|
inlineMath: [[MathJaxUtils.start, MathJaxUtils.end]]
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user