(imageToDataURI);
  if (!imgd) {
    console.log("ERROR");
    return;
  }

  const img = new Image();
  img.src = imgd;
  divimg.appendChild(img);

  const set = `${encodeURIComponent(intext.value)},${seltype.value},${seldatatype.value},${seleci.value}`;
  if (set == defaultset) {
    location.hash = '';
  } else {
    location.hash = set;
  }
};
seleci.oninput = () => {
  const set = `${encodeURIComponent(intext.value)},${seltype.value},${seldatatype.value},${seleci.value}`;
  if (set == defaultset) {
   