| 1234567891011121314151617181920 |
- "use strict";
- function opennamu_thread_blind() {
- let do_true = 0;
- for(let for_a = 0; for_a < document.getElementsByClassName("opennamu_blind_button").length; for_a++) {
- let id = document.getElementsByClassName("opennamu_blind_button")[for_a].id;
- id = id.replace(/^opennamu_blind_/, '');
- id = id.split('_');
- let checked = document.getElementsByClassName("opennamu_blind_button")[for_a].checked;
- if(checked) {
- fetch("/thread/" + id[0] + '/comment/' + id[1] + '/blind', { method : 'GET' });
- do_true = 1;
- }
- }
- if(do_true === 1) {
- history.go(0);
- }
- }
|