Инструменты пользователя

Инструменты сайта


money

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
money [1] – создано novikmoney [1] (текущий) – удалено novik
Строка 1: Строка 1:
-<html> 
-<script> 
-alert("Правила: копите деньги и прокачиваетесь, в минус можно уходить до -100, далее вы проиграете!") 
-var score = 0; 
-updating = 1; 
-function clickBtn() { 
-  score = score + updating; 
-  document.getElementsByTagName("h1")[0].firstChild.data = score + "$"; 
-} 
-function update() { 
-  score = score - 100; 
-  document.getElementsByTagName("h1")[0].firstChild.data = score + "$"; 
-  if1(); 
-  updating += 1; 
-} 
-function update1() { 
-  score = score - 150; 
-  document.getElementsByTagName("h1")[0].firstChild.data = score + "$"; 
-  if1(); 
-  updating += 2; 
-} 
-function update2() { 
-  score = score - 250; 
-  document.getElementsByTagName("h1")[0].firstChild.data = score + "$"; 
-  if1(); 
-  updating += 3; 
-} 
-function update3() { 
-  score = score - 500; 
-  document.getElementsByTagName("h1")[0].firstChild.data = score + "$"; 
-  if1(); 
-  updating += 10; 
-} 
-function auto() { 
-  score = score - 10000; 
-  document.getElementsByTagName("h1")[0].firstChild.data = score + "$"; 
-  if1(); 
-  setTimeout("plusauto()", 1000); 
-} 
-function if1 () { 
-  if (score < -100) { 
-    document.write("Вы проиграли, так-как вы превысили лимит кредита"); 
-  } 
-} 
-function plusauto () { 
-  score += updating; 
-  document.getElementsByTagName("h1")[0].firstChild.data = score + "$"; 
-  setTimeout("auto1()", 1000); 
-} 
-function auto1 () { 
-  score += updating; 
-  setTimeout("plusauto()", 1000); 
-  document.getElementsByTagName("h1")[0].firstChild.data = score + "$"; 
-} 
-function pashalka () { 
-  score += 10000; 
-  document.getElementsByTagName("h1")[0].firstChild.data = score + "$"; 
-} 
-function reboot () { 
-  alert("Ваш уровень прокачки " + updating + ". Ваш баланс " + score + " ."); 
-} 
  
- 
-</script> 
-<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> 
-<body> 
-  <main> 
-    <h2>Игра кликер</h2> 
-    <h1 id ="score">0$<img src="img/coins.png"></h1> 
-    <button id="clickbtn" onclick="clickBtn()">+$</button> 
-    <br><input type="button" value="Прокачать на 1 уровень|-100$" onclick="update()"> 
-    <br><input type="button" value="Прокачать на 2 уровня|-150$" onclick="update1()"> 
-    <br><input type="button" value="Прокачать на 3 уровня|-250$" onclick="update2()"> 
-    <br><input type="button" value="Прокачать на 10 уровней|-500$" onclick="update3()"> 
-    <br><input type="button" value="Автокликер|-10000$" onclick="auto()"> 
-    <br><input type="button" value="Подробнее" onclick="reboot()"> 
-    <img src="img/profit.png" class="img" onclick="pashalka()"> 
-  </main> 
-</body> 
- 
-</html> 
money.1725541784.txt.gz · Последнее изменение: novik