manage

최근에 달린 댓글

카테고리 없음

TEST

<style>.square-55d63 span{position:absolute !important;z-index:250 !important;font-weight:bold;font-size:150%;left:inherit;display:block;color:#fafafa; !important;}</style> {chessboard(rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR)(1. e4 d5 2. exd5 Qxd5)}|width=33;

<script>
function change_board_theme(colour1,colour2,bordercolour){
document.querySelectorAll(`.square-55d63.white-1e1d7`).forEach(function(el0,key0,par0){
    el0.style.background=colour1;
    if (typeof bordercolour == 'string') {
        el0.style.border=`0.5px solid ${bordercolour}`;
    }
});
document.querySelectorAll(`.square-55d63.black-3c85d`).forEach(function(el0,key0,par0){
    el0.style.background=colour2;
    if (typeof bordercolour == 'string') {
        el0.style.border=`0.5px solid ${bordercolour}`;
    }
});
}
function christmas_board(){
change_board_theme(`olive`,`#900325`,`#f0f0f0`);
}
changeboardthemefunc=function(){

document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML='<span>심영</span>'+el0.outerHTML.replace('<span>심영</span>','');
});

}

window.addEventListener("DOMContentLoaded",function(){
document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML=el0.outerHTML.replace('<span>심영</span>','')+'<span>심영</span>';
});

chessboards[0].stop_play=function(delay, speed) {

document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML=el0.outerHTML.replace('<span>심영</span>심영','')+'<span>심영</span>';
});
                        var thisobj0 = this;
                        var newdelay = 1200;
                        if (typeof delay == 'number' && !isNaN(delay)) {
                            newdelay = delay;
                        }
                        var newspeed = 800;
                        if (typeof speed == 'number' && !isNaN(speed)) {
                            newspeed = speed;
                        }
                        if (this.playbool) {
                            this.playbool = false;
                        } else {
                            this.playbool = true; 

document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML=el0.outerHTML.replace('<span>심영</span>','')+'<span>심영</span>';
});
                            window.setTimeout(function() {
                                thisobj0.play(newspeed);
                            }, newdelay);
                        }
                    };

chessboards[0].play=function(speed) {  

document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML=el0.outerHTML.replace('<span>심영</span>','')+'<span>심영</span>';
});
                        var thisobj0 = this;
                        var newspeed = 800;
                        if (typeof speed == 'number' && !isNaN(speed)) {
                            newspeed = speed;
                        }

document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML=el0.outerHTML.replace('<span>심영</span>','')+'<span>심영</span>';
});
                        window.setTimeout(function() {
                            if (thisobj0.playbool) {  

document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML=el0.outerHTML.replace('<span>심영</span>','')+'<span>심영</span>';
});
                                var thismove0 = thisobj0.move();

document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML=el0.outerHTML.replace('<span>심영</span>','')+'<span>심영</span>';
});
                                if (thismove0 == false) {
                                    thisobj0.playbool = false;
                                } else {
                                    thisobj0.play(newspeed);
                                }
                            }
                        }, newspeed);
                        /* 속도를 조절하는 매개변수 안넣고 사용할 시, 0.8초 즉 800밀리초마다 움직임. */
                    }

chessboards[0].move=function() {

document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML=el0.outerHTML.replace('<span>심영</span>','')+'<span>심영</span>';
});
                        this.board.clearNotes();
                        this.board.clearComments();
                        var thisobj0 = this;
                        if (this.thisi <= this.moves.length) {
                            this.thisi++
                            if (this.thisi < -1) {
                                this.thisi++
                            }
                            var rtm = this.game.move(thisobj0.moves[thisobj0.thisi]);
                            
                            var commentnote = 6;

                            this.board.position(thisobj0.game.fen());

document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML=el0.outerHTML.replace('<span>심영</span>','')+'<span>심영</span>';
});
                            if (typeof rtm == 'object' && rtm != null && thisobj0.parsedpgn.notes[thisobj0.thisi] != 6) {
                                this.board.addNote(rtm.to, {
                                    m: pgnreader.notes[thisobj0.parsedpgn.notes[thisobj0.thisi]].m,
                                    t: pgnreader.notes[thisobj0.parsedpgn.notes[thisobj0.thisi]].t
                                });
                                commentnote = pgnreader.notes[thisobj0.parsedpgn.notes[thisobj0.thisi]].m;
                            }
                            if (typeof rtm == 'object' && rtm != null && typeof thisobj0.parsedpgn.comments[thisobj0.thisi] == 'string' && thisobj0.parsedpgn.comments[thisobj0.thisi] != '') {
                                this.board.addComment(rtm.to, {
                                    message: thisobj0.parsedpgn.comments[thisobj0.thisi],
                                    note: commentnote
                                });
                            }
                            return rtm;
                        } else {
                            return false;
                        }
                    }

document.querySelectorAll(`img.piece-417db[data-piece='bQ']`).forEach(function(el0,key0,par0){
    el0.outerHTML='<span>심영</span>'+el0.outerHTML.replace('<span>심영</span>','');
});
});
  var alreadypurple=true;
  var alreadychristmas=false;
function _purple_board(){
if (alreadypurple==false){
  alreadypurple=true;
change_board_theme(`#eeeef0`,`#a005a0`,`grey`);
} else {
change_board_theme(`#f0d9b5`,`#b58863`);
  alreadypurple=false;
}
}
  function _christmas_board(){
    
if (alreadychristmas==false){
christmas_board();
  alreadychristmas=true;
} else {
change_board_theme(`#f0d9b5`,`#b58863`);
  alreadychristmas=false;
}
  }
  
changeboardthemebool=true;
</script>