You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

72 lines
3.7 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cdn.socket.io/4.4.1/socket.io.min.js" type="text/javascript"></script>
<script src="data/lib/socket.io-p2p.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.6.0/p5.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-3.6.4.min.js" type="text/javascript"></script>
<script src="data/scripts/js/main.js" type="text/javascript"></script>
<link href="styles.css" rel="stylesheet">
<link href="data/styles/color_picker.css" rel="stylesheet">
<link href="data/styles/range_input.css" rel="stylesheet">
<link href="data/images/favicon.ico" rel="icon" type="image/x-icon">
<title>Pong remastered online</title>
</head>
<body>
<div id="p5_loading"></div>
<div id="content">
<div class="border-node" id="interface">
<div id="game-controls">
<button class="paused" id="toggle-play" onclick="game.togglePlay(true, false);"></button>
</div>
<div id="setup-controls">
<fieldset class="border-node" id="game-type">
<legend>Type</legend>
<form>
<input id="offline" name="game-type" type="radio" value="offline">
<label for="offline">Offline</label><br>
<input id="online" name="game-type" type="radio" value="online">
<label for="online">Online</label>
</form>
</fieldset>
<div id="game-properties" style="display: none;">
<fieldset class="player-name border-node" id="player-name">
<legend>Your name</legend>
<input class="border-node" type="text"><br>
<span class="error-label"></span>
</fieldset>
<fieldset class="player-actions border-node" id="lobby-code">
<legend>Lobby code</legend>
<input class="border-node" type="text"><br>
<span class="error-label"></span>
</fieldset>
<div class="player-actions">
<button class="setup border-node" onclick="onlineManager.createLobby(this);">Create Lobby</button>
<span>Or</span>
<button class="setup border-node" onclick="onlineManager.joinLobby(this);">Join Lobby</button>
</div>
<button class="player-name start setup border-node" onclick="continueForm(this)">OK</button>
</div>
</div>
<div class="initialize-lobby" id="lobby">
<div class="border-node" id="lobby-members"></div>
<button class="setup border-node" id="start-lobby" onclick="onlineManager.startLobby(this);">Start</button>
<span>Code: </span>
<span></span>
<br>
<span class="error-label"></span>
</div>
</div>
<div class="border-node" id="canvasHolder"></div>
<div class="border-node" id="chat">
<div id="chat-content"></div>
<div id="chat-input">
<input type="text">
<button onclick="onlineManager.sendMessage()">Send</button>
</div>
</div>
<div id="loader"></div>
</div>
</body>
</html>