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

132 lines
5.3 KiB
HTML

4 years ago
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
4 years ago
<title>welcome</title>
4 years ago
<link rel="icon" href="imgs/avatars/ball2.gif">
4 years ago
<link rel="stylesheet" href="index.css">
</head>
<body>
4 years ago
<div class="introtext">
4 years ago
<span style="-webkit-padding-start: 15vw;">It</span> looks like you have been summoned by the <span class="special1">oracle (<img src="imgs/avatars/ball1.png" height="60vw">,<img src="imgs/avatars/ball2.gif" height="60vw">,<img src="imgs/avatars/ball4.gif" height="60vw">)</span>
<div class="line"></div> you will be asked to start a journey: throughout it you will be called
4 years ago
<form name="nameForm">
4 years ago
<input id="player_name" type="text" >
</form>
4 years ago
4 years ago
you can decide whether you are going to look like
4 years ago
<form id="avatar_form">
<label class="radio" for="player1" >
<span class="radio__input">
<input class="avatar"type="radio" id="player1" name="player_avatar" value="imgs/avatars/avatar1.gif" checked="checked" >
<span class="radio__control"></span><img id="player_img_1" src="imgs/avatars/avatar1.gif" height="60vw">
</span>
</label>
4 years ago
,
4 years ago
<label class="radio" for="player2" >
<span class="radio__input">
<input class="avatar"type="radio" id="player2" name="player_avatar" value="imgs/avatars/avatar2.gif">
<span class="radio__control"></span><img id="player_img_2" src="imgs/avatars/avatar2.gif" height="60vw">
</span>
</label>
4 years ago
,
4 years ago
<label class="radio" for="player3">
<span class="radio__input">
<input class="avatar"type="radio" id="player3" name="player_avatar" value="imgs/avatars/avatar3.gif">
<span class="radio__control"></span><img id="player_img_3" src="imgs/avatars/avatar3.gif" height="60vw">
</span>
</label>
4 years ago
,
4 years ago
<label class="radio" for="player4">
<span class="radio__input">
<input class="avatar"type="radio" id="player4" name="player_avatar" value="imgs/avatars/avatar4.gif">
<span class="radio__control"></span><img id="player_img_4" src="imgs/avatars/avatar4.gif" height="60vw">
</span>
</label>
4 years ago
,
4 years ago
<label class="radio" for="player5">
<span class="radio__input">
<input class="avatar"type="radio" id="player5" name="player_avatar" value="imgs/avatars/avatar5.gif">
4 years ago
<span class="radio__control"></span><img id="player_img_5" src="imgs/avatars/avatar5.gif" height="70vh">
4 years ago
</span>
</label>
4 years ago
,
4 years ago
<label class="radio" for="player6">
<span class="radio__input">
<input class="avatar"type="radio" id="player6" name="player_avatar" value="imgs/avatars/avatar6.gif">
4 years ago
<span class="radio__control"></span><img id="player_img_6" src="imgs/avatars/avatar6.gif" height="70vh">
4 years ago
</span>
</label>
4 years ago
,
4 years ago
<label class="radio" for="player7">
<span class="radio__input">
<input class="avatar"type="radio" id="player7" name="player_avatar" value="imgs/avatars/avatar7.gif">
4 years ago
<span class="radio__control"></span><img id="player_img_7" src="imgs/avatars/avatar7.gif" height="70vh">
4 years ago
</span>
</label>
4 years ago
,
4 years ago
<label class="radio" for="player8">
<span class="radio__input">
<input class="avatar"type="radio" id="player8" name="player_avatar" value="imgs/avatars/avatar8.gif">
4 years ago
<span class="radio__control"></span><img id="player_img_8" src="imgs/avatars/avatar8.gif" height="70vh">
4 years ago
</span>
</label>
4 years ago
,
4 years ago
<label class="radio" for="player9">
<span class="radio__input">
<input class="avatar"type="radio" id="player9" name="player_avatar" value="imgs/avatars/avatar9.gif">
4 years ago
<span class="radio__control"></span><img id="player_img_9" src="imgs/avatars/avatar9.gif" height="70vh">
4 years ago
</span>
</label>
4 years ago
,
4 years ago
<label class="radio" for="player10">
<span class="radio__input">
<input class="avatar"type="radio" id="player10" name="player_avatar" value="imgs/avatars/avatar10.gif">
4 years ago
<span class="radio__control"></span><img id="player_img_10" src="imgs/avatars/avatar10.gif" height="70vh">
4 years ago
</span>
</label>
4 years ago
,
4 years ago
<label class="radio" for="player11">
<span class="radio__input">
<input class="avatar"type="radio" id="player11" name="player_avatar" value="imgs/avatars/avatar11.gif">
4 years ago
<span class="radio__control"></span><img id="player_img_11" src="imgs/avatars/avatar11.gif" height="70vh">
4 years ago
</span>
</label>
4 years ago
or like
4 years ago
<label class="radio"for="player12">
<span class="radio__input">
<input class="avatar"type="radio" id="player12" name="player_avatar" value="imgs/avatars/avatar12.gif">
4 years ago
<span class="radio__control"></span><img id="player_img_12" src="imgs/avatars/avatar12.gif" height="70vh">
4 years ago
</span>
</label>
</form> <div class="line3"></div>
4 years ago
you can press
<button id="gotostart" onclick="storeName()"><span class="button_text"> start </span></button>
when you are ready
4 years ago
</div>
4 years ago
4 years ago
<script>
4 years ago
4 years ago
//clear local storage when back on the landing page
4 years ago
/*
4 years ago
window.onload = function() {
window.localStorage.clear();
4 years ago
}*/
document.addEventListener("DOMContentLoaded", function () {
window.localStorage.clear();
console.log("loaded");
updateAvatar();
});
4 years ago
</script>
4 years ago
<script src="jquery.min.js"></script>
<script type="text/javascript" src="index.js" ></script>
</body>