@GitOverHere/

Minecraft

HTML, CSS, JS

click the open in new tab button and start multyplayer update in progress

fork
loading
Files
  • index.html
  • buttons.png
  • icon.png
  • minecraft.css
  • minecraft.jpg
  • minecraft.js
  • minecraft.mp4
  • minecraft.svg
  • minecraft.ttf
  • script.js
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
	<title>Minecraft</title>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link rel="stylesheet" href="minecraft.css" />
	<link rel="shortcut icon" href="icon.png"
	 type="image/x-icon" />
	<link rel="icon" href="ico.png"
	 type="image/x-icon" />
</head>

<body translate="no" onpageshow="updateidea();">
		<script src="script.js">
		</script>
		<link rel="stylesheet" type="text/css" href="style.css">
		<img alt="Minecraft" id="logo" src="minecraft.svg"/>
<div id="flashingtext">Bees! bees! bees!</div>
<main>
<button class="button" onclick="play()">Singleplayer</button>
<br>
<button class="button" onclick="playmulti()" id="playmulti">Multiplayer</button> <br>
<button class="button" onclick="alert('Thanks to classic.minecraft.net for the game part')">Credits</button>
<button class="button" onclick="how()">How to play</button>
<audio id="audio">
  <source src="minecraft.mp4">
</audio>
<button id="button" class="button">Play audio</button>
<button class="button button_small left" onclick="options()" style="width: 49%;">Options</button>
<button class="button button_small right" style="width: 49%;" onclick="quit();">Quit Game</button>
<script src="minecraft.js"></script>
<script>
function updateidea() {
  if (!("Notification" in window)) {
    alert("This browser does not support desktop notification");
  }
  else if (Notification.permission === "granted") {
    var notification = new Notification("updates? https://repl.it/talk/share/Minecraft/16676 I am duck1321912");
  }
  else if (Notification.permission !== "denied") {
    Notification.requestPermission().then(function (permission) {
      if (permission === "granted") {
        var notification = new Notification("updates? https://repl.it/talk/share/Minecraft/16676");
      }
    });
  }
}Notification.requestPermission().then(function(result) {
  console.log(result);
});function spawnNotification(body, icon, title) {
  var options = {
      body: body,
      icon: icon
  };
}
var button = document.getElementById("button");
var audio = document.getElementById("audio");

button.addEventListener("click", function(){
  if(audio.paused){
    audio.play();
    button.innerHTML = "Pause audio";
  } else {
    audio.pause();
    button.innerHTML = "Play audio";
  }
});
</script>
</main>
  <!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-144036419-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-144036419-1');
</script>
</body>
</html>
result
console