Improve ReHightlight performance, add create tables and start to restore password system

This commit is contained in:
JoseluCross
2018-10-16 17:06:35 +02:00
parent 18f58c4be8
commit 000a9be9b7
4 changed files with 126 additions and 6 deletions

View File

@@ -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>

View File

@@ -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');
}
}