INNER CODE UNIT · JavaScript

value

increpare/flickgame · flickgame_base.js:97

      var value = parseInt(encoded[i+1], 16);
      var ch = (value >= 0 && value < 16) ? value.toString(16) : "0";
      for (var j=0;j<count;j++){
        output+=ch;
      }
    }
    while (output.length < limit) output += "0";
    return output;
}



// Generic getData function that can be used by both player and editor
function getData(options) {
    options = options || {};
    var onSuccess = options.onSuccess || function(code) {};
    var onError = options.onError || console.log;
    var onEmbedded = options.onEmbedded || function(code) {};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…