zikadonf v2

by Simon Hi

JavaScript

(function() {
  var s = "",
    zkfg, js, cb, xpos = 0,
    btn, svg, iwin;
  var a = [];

  function addCss() {
    var e, s;
    if (e = document.getElementById("zkfgCss")) return;
    s = "";
    s += ".zkfgGlobal{margin:0.25em;font-size:1em;font-family:sans-serif;width:23em;background:#f9f9f9;overflow:hidden;user-select:none;}";
    s += ".zkfgGlobal svg{cursor:pointer;position:relative;display:block;width:228%;height:auto;outline:0;}";
    s += ".zkfgPanel{display:grid;grid-template-columns:57fr 43fr;grid-template-rows:auto auto auto;background:#963;color:#fff;}";
    s += ".zkfgPanel label{display:flex;justify-content:space-between;}";
    s += ".zkfgPanel input[type='checkbox'],";
    s += ".zkfgPanel button{filter:grayscale(1);}";
    s += ".zkfgPanel button{border:0;border-radius:0.25em;background:#fff;padding:0 1em;height:1.5em;line-height:1.5em;}";
    s += ".zkfgPanel input[type='checkbox']:hover,";
    s += ".zkfgPanel button:hover{cursor:pointer;}";
    s += ".zkfgFrettes{grid-column:1;grid-row:1;margin:0.25em;}";
    s += ".zkfgReperes{grid-column:1;grid-row:2;margin:0.25em;}";
    s += ".zkfgNavigation{grid-column:2;grid-row:1 / 3;text-align:center;}";
    s += ".zkfgNavigation span{display:block;margin-bottom:1em;margin:0.25em;}";
    s += ".zkfgNavigation button{margin:0.25em;}";
    s += ".zkfgMakeImage{grid-column:1 / 3;grid-row:3;display:block;background:#000;margin:0;text-align:center;}";
    s += ".zkfgMakeImage>*{display:inline-block;margin:0.5em;}";
    s += ".zkfgGlobal:focus-within{outline:1px dashed #000;}";
    s += "[data-not-done=\"0\"]{opacity:0.5;}";
    e = document.createElement("style");
    e.id = "zkfgCss";
    e.innerHTML = s;
    document.getElementsByTagName("head")[0].appendChild(e);
  }

  function initA() {
    var i, j;
    for (i = 0; i < 25; i++) {
      a[i] = [];
      for (j = 0; j < 7; j++) a[i][j] = false;
    }
  }

  function b64EncodeUnicode(str) {
    return...