polish(geom7 ch1-4): renderMath в psel и boss-cards
Применён тот же defensive фикс, что и в ch5: renderMath
вызывается после buildParaSelector (psel-карточки) и после
вставки boss-cards. Раньше существующая математика в этих
местах оставалась нерендеренной — показывалась как $...$.
Затрагивает:
- ch1: $a \perp b$ в psel
- ch4: $= 180°$, $|a-b| < c < a+b$, $30°$, $= c/2$ в psel +
$30°$ в заголовке босса "\§25-26"
ch5 уже был исправлен ранее (коммит 79aaf27).
This commit is contained in:
@@ -346,6 +346,7 @@ function buildParaSelector(){
|
|||||||
card.addEventListener('click', ()=>goTo(p.id));
|
card.addEventListener('click', ()=>goTo(p.id));
|
||||||
g.appendChild(card);
|
g.appendChild(card);
|
||||||
});
|
});
|
||||||
|
if(window.renderMathInElement) try{ renderMath(g); }catch(e){}
|
||||||
}
|
}
|
||||||
|
|
||||||
const BUILT=new Set();
|
const BUILT=new Set();
|
||||||
@@ -1588,6 +1589,7 @@ function buildFinal1(){
|
|||||||
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
|
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
|
||||||
+'</div>';
|
+'</div>';
|
||||||
}).join('');
|
}).join('');
|
||||||
|
if(window.renderMathInElement) try{ renderMath(cont); }catch(e){}
|
||||||
|
|
||||||
BOSSES.forEach((b,idx)=>{
|
BOSSES.forEach((b,idx)=>{
|
||||||
function show(){
|
function show(){
|
||||||
|
|||||||
@@ -343,6 +343,7 @@ function buildParaSelector(){
|
|||||||
card.addEventListener('click', ()=>goTo(p.id));
|
card.addEventListener('click', ()=>goTo(p.id));
|
||||||
g.appendChild(card);
|
g.appendChild(card);
|
||||||
});
|
});
|
||||||
|
if(window.renderMathInElement) try{ renderMath(g); }catch(e){}
|
||||||
}
|
}
|
||||||
|
|
||||||
const BUILT=new Set();
|
const BUILT=new Set();
|
||||||
@@ -1529,6 +1530,7 @@ function buildFinal2(){
|
|||||||
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
|
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
|
||||||
+'</div>';
|
+'</div>';
|
||||||
}).join('');
|
}).join('');
|
||||||
|
if(window.renderMathInElement) try{ renderMath(cont); }catch(e){}
|
||||||
|
|
||||||
BOSSES.forEach((b,idx)=>{
|
BOSSES.forEach((b,idx)=>{
|
||||||
function show(){
|
function show(){
|
||||||
|
|||||||
@@ -338,6 +338,7 @@ function buildParaSelector(){
|
|||||||
card.addEventListener('click', ()=>goTo(p.id));
|
card.addEventListener('click', ()=>goTo(p.id));
|
||||||
g.appendChild(card);
|
g.appendChild(card);
|
||||||
});
|
});
|
||||||
|
if(window.renderMathInElement) try{ renderMath(g); }catch(e){}
|
||||||
}
|
}
|
||||||
|
|
||||||
const BUILT=new Set();
|
const BUILT=new Set();
|
||||||
@@ -1248,6 +1249,7 @@ function buildFinal3(){
|
|||||||
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
|
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
|
||||||
+'</div>';
|
+'</div>';
|
||||||
}).join('');
|
}).join('');
|
||||||
|
if(window.renderMathInElement) try{ renderMath(cont); }catch(e){}
|
||||||
|
|
||||||
BOSSES.forEach((b,idx)=>{
|
BOSSES.forEach((b,idx)=>{
|
||||||
function show(){
|
function show(){
|
||||||
|
|||||||
@@ -334,6 +334,7 @@ function buildParaSelector(){
|
|||||||
card.addEventListener('click', ()=>goTo(p.id));
|
card.addEventListener('click', ()=>goTo(p.id));
|
||||||
g.appendChild(card);
|
g.appendChild(card);
|
||||||
});
|
});
|
||||||
|
if(window.renderMathInElement) try{ renderMath(g); }catch(e){}
|
||||||
}
|
}
|
||||||
|
|
||||||
const BUILT=new Set();
|
const BUILT=new Set();
|
||||||
@@ -1616,6 +1617,7 @@ function buildFinal4(){
|
|||||||
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
|
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
|
||||||
+'</div>';
|
+'</div>';
|
||||||
}).join('');
|
}).join('');
|
||||||
|
if(window.renderMathInElement) try{ renderMath(cont); }catch(e){}
|
||||||
|
|
||||||
BOSSES.forEach((b,idx)=>{
|
BOSSES.forEach((b,idx)=>{
|
||||||
function show(){
|
function show(){
|
||||||
|
|||||||
Reference in New Issue
Block a user