IPost/views/settings.html

76 lines
2.7 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>
<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 Username</h3>
<label for="newUsername">New Username:</label>
<input id="newUsername" placeholder="New Username" type="text">
<br>
<br>
<label for="currentPW_us">Password:</label>
<input id="currentPW_us" placeholder="Current Password" type="password">
<br>
<br>
<button onclick="changeUsername()">Change Username</button>
<br>
<span id="response_us"></span>
</div>
<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 class="bg-light pd-great">
<input type="checkbox" id="ACCR_checkbox" onchange="setAllowCCR()"> Cross-Channel Reply <br>
<br>
</div>
</div>
</main>
<footer>
Are you a developer that wants to work with our API? You can find the documentation &nbsp <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>