mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-02-14 17:11:34 +01:00
Improve ReHightlight performance, add create tables and start to restore password system
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<pre class="highlight"><code class='{{ code.lang }} codeto'>{{ code.code }}</code></pre>
|
||||
<pre class="highlight"><code class='{{ code.lang }} codeto toHightlight'>{{ code.code }}</code></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -26,9 +26,10 @@ function ajaxresponse(){
|
||||
}
|
||||
|
||||
function reHightlight(){
|
||||
var codebox = document.getElementsByClassName("codeto");
|
||||
var codebox = document.getElementsByClassName("toHightlight");
|
||||
for(var i=0;i<codebox.length;++i){
|
||||
hljs.highlightBlock(codebox[i]);
|
||||
codebox.classList.remove('toHightlight');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user