rules,about,tos markdown
This commit is contained in:
@@ -4,15 +4,15 @@
|
||||
<div class="rules">
|
||||
@if(terms_text)
|
||||
<div class="dynamic-page-content" id="terms-dynamic-content"></div>
|
||||
<textarea id="terms-raw-data" hidden>{!! terms_text !!}</textarea>
|
||||
<script id="terms-raw-data" type="application/json">{{ terms_text_b64 }}</script>
|
||||
<script>
|
||||
(function() {
|
||||
var raw = document.getElementById('terms-raw-data');
|
||||
var el = document.getElementById('terms-dynamic-content');
|
||||
function render() {
|
||||
if (raw && el && typeof marked !== 'undefined') {
|
||||
el.innerHTML = marked.parse(raw.value || '', { gfm: true, breaks: true });
|
||||
raw.remove();
|
||||
var text = atob(raw.textContent.trim());
|
||||
el.innerHTML = marked.parse(text, { gfm: true, breaks: true });
|
||||
}
|
||||
}
|
||||
if (typeof marked !== 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user