MC-XOBAHCK,
if(~this.className.indexOf('pair')){
const that=this;
const className=/pair\S+/.exec(this.className)[0];
side.filter(function(node){
return node.classList.contains(className) && node!==that;
}).forEach(function(node){
node.value=that.value;
});
};