js
This commit is contained in:
parent
6e2b0a8b79
commit
cca9b400c0
4 changed files with 5 additions and 5 deletions
|
@ -36,11 +36,11 @@ function markdown(first, second) {
|
|||
input += '<div class="custom-control"><input type="checkbox" class="custom-control-input" id="' + option2 + '"><label class="custom-control-label" for="' + option2 + '">' + option2 + ' - <a>0 votes</a></label></div>';
|
||||
}
|
||||
}
|
||||
var options = Array.from(input.matchAll(/\s*##([^\$\n]+)##\s*/gi))
|
||||
var options = Array.from(input.matchAll(/\s*&&([^\$\n]+)&&\s*/gi))
|
||||
if(options != null){
|
||||
for(i = 0; i < options.length; i++){
|
||||
var option = options[i][0];
|
||||
var option2 = option.replace(/##/g, '').replace(/\n/g, '')
|
||||
var option2 = option.replace(/&&/g, '').replace(/\n/g, '')
|
||||
input = input.replace(option, '');
|
||||
input += '<div class="custom-control"><input type="radio" name="choice" class="custom-control-input" id="' + option2 + '"><label class="custom-control-label" for="' + option2 + '">' + option2 + ' - <a>0 votes</a></label></div>';
|
||||
}
|
||||
|
|
|
@ -873,7 +873,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if v %}
|
||||
<script src="/static/assets/js/marked.js?a=244"></script>
|
||||
<script src="/static/assets/js/marked.js?a=245"></script>
|
||||
<script src="/static/assets/js/comments_v.js?a=261"></script>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -265,7 +265,7 @@
|
|||
checkForRequired()
|
||||
</script>
|
||||
|
||||
<script src="/static/assets/js/marked.js?a=244"></script>
|
||||
<script src="/static/assets/js/marked.js?a=245"></script>
|
||||
<script src="/static/assets/js/formatting.js?a=240"></script>
|
||||
<script src="/static/assets/js/submit.js?a=248"></script>
|
||||
{% include "emoji_modal.html" %}
|
||||
|
|
|
@ -767,7 +767,7 @@
|
|||
</nav>
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/assets/js/marked.js?a=244"></script>
|
||||
<script src="/static/assets/js/marked.js?a=245"></script>
|
||||
|
||||
|
||||
{% if v and v.id != u.id and '/comments' not in request.path %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue