INNER CODE UNIT · JavaScript

changeRandomFactor

lucky-sideburn/kubeinvaders · html/js/game_console.js:60

function changeRandomFactor() {
  randomFactor = $("#randomFactorInput").val();
  $("#currentRandomFactor").text(randomFactor);
}

function showSpecialKeys() {
  $('#showSpecialKeysModal').modal('show');
  modal_opened = true;
}

function switchColorMode() {
  let bodyElement = document.getElementById("kinvBody");
  let buttonsLightElement = document.getElementsByClassName("btn-light");
  let textkinv = document.getElementsByClassName("text-kinv");
  let alertkinv = document.getElementsByClassName("alert-kinv");

  if (current_color_mode == "light") {
    bodyElement.style.backgroundColor = "#0a0a0a";

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…