72 lines
2.6 KiB
HTML
72 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>IPost | User settings</title>
|
|
<link rel="stylesheet" href="/css/style.css">
|
|
<link rel="stylesheet" href="/css/global.css">
|
|
<script src="/js/addnavbar.js" charset="utf-8"></script>
|
|
<script src="/js/warn_message.js" charset="utf-8"></script>
|
|
<script src="/js/httppost.js" charset="utf-8"></script>
|
|
<script src="/js/settings.js" charset="utf-8"></script>
|
|
</head>
|
|
<body onload="setuser()" class="bg-dark">
|
|
<header>
|
|
<h1>Welcome Back!</h1>
|
|
</header>
|
|
<main class="bg-dark no-bg-img">
|
|
<div class="bg-light pd-great">
|
|
<h2 id="user">User: USER</h2>
|
|
<br>
|
|
<img id="avatarimg" width=100 height=100>
|
|
<br>
|
|
<input name="avatar" class="avatar" id="avatarUpl" type="file" accept="image/png, image/jpeg">
|
|
<br>
|
|
<button type="submit" style="display:none;" id="avatarUplButton">Save avatar</button>
|
|
<br>
|
|
<br>
|
|
<span class="bio">Bio: <input type="text" id="bio" disabled placeholder="wow such empty"></span>
|
|
<button id="changeBio" onclick="bioChanger()">Change Bio</button>
|
|
<br>
|
|
<div>
|
|
<h3>Change your password</h3>
|
|
<label for="currentPW_pw">Current Password:</label>
|
|
<input id="currentPW_pw" placeholder="Current Password" type="password">
|
|
<br>
|
|
<br>
|
|
<label for="newPW">New Password:</label>
|
|
<input id="newPW" placeholder="New Password" type="password">
|
|
<br>
|
|
<br>
|
|
<button onclick="changePW()">Change Password</button>
|
|
<br>
|
|
<span id="response_pw"></span>
|
|
</div>
|
|
<div>
|
|
<h3>Change your Username</h3>
|
|
<br>
|
|
<label for="currentPW_us">Password:</label>
|
|
<input id="currentPW_us" placeholder="Current Password" type="password">
|
|
<br>
|
|
<br>
|
|
<label for="newUsername">New Username:</label>
|
|
<input id="newUsername" placeholder="New Username" type="text">
|
|
<br>
|
|
<br>
|
|
<button onclick="changeUsername()">Change Username</button>
|
|
<br>
|
|
<span id="response_us"></span>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<footer>
|
|
Are you a developer that wants to work with our API? You can find the documentation   <a href="/api/documentation/">here</a> <br>
|
|
<a href="/PrivacyPolicy">Our PrivacyPolicy</a> <br>
|
|
<a href="/ToS">Our Terms of Service</a> <br>
|
|
</footer>
|
|
<style media="screen" id="userstyle"></style>
|
|
</body>
|
|
</html>
|