2019-02-21 20:25:45 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2019-06-28 21:24:34 +00:00
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset='utf-8'>
|
|
|
|
<!--Mobile responsive-->
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>
|
|
|
|
Friends
|
|
|
|
</title>
|
|
|
|
<link rel='shortcut icon' type='image/ico' href='/shared/images/favicon.ico'>
|
|
|
|
<link rel='stylesheet' href='/shared/main/bulma.min.css'>
|
|
|
|
<link rel='stylesheet' href='/shared/main/styles-new.css'>
|
|
|
|
<link rel='stylesheet' href='/friends/style.css'>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<nav class="navbar is-dark" role="navigation" aria-label="main navigation">
|
|
|
|
<div class="navbar-brand">
|
|
|
|
<a class="navbar-item idLink" href="/">
|
2019-07-02 22:34:26 +00:00
|
|
|
<img src="/shared/images/favicon.ico" class="navbarLogo"> Onionr
|
2019-06-28 21:24:34 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false"
|
|
|
|
data-target="navbarBasicExample">
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="navbarBasicExample" class="navbar-menu">
|
|
|
|
<div class="navbar-start">
|
|
|
|
<a class="navbar-item idLink" href="/">Home</a>
|
|
|
|
<a class="navbar-item idLink" href="/mail/">Mail</a>
|
|
|
|
<a class="navbar-item idLink" href="/friends/">Friends</a>
|
|
|
|
<a class="navbar-item idLink" href="/board/">Circles</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<!--Hero (Dark Section)-->
|
|
|
|
<section class="hero is-small is-dark">
|
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<h1 class="title">
|
|
|
|
Friends
|
|
|
|
</h1>
|
|
|
|
<h2 class="subtitle">
|
|
|
|
Manage your friend list
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div class="column is-7">
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">Open Site</label>
|
|
|
|
<div class="field has-addons">
|
|
|
|
<p class="control">
|
|
|
|
<a class="button is-static">Identity</a>
|
|
|
|
</p>
|
|
|
|
<p class="control is-expanded">
|
|
|
|
<input id="myPub" class="input myPub" type="text" readonly>
|
|
|
|
</p>
|
|
|
|
<p class="control">
|
|
|
|
<a id="myPubCopy" class="button is-primary">Copy</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<!--Start Content-->
|
|
|
|
<div class="container">
|
|
|
|
<div class="columns">
|
|
|
|
<!--Add Friend-->
|
|
|
|
<div class="column is-one-third">
|
|
|
|
<div class="card">
|
|
|
|
<header class="card-header">
|
|
|
|
<p class="card-header-title">
|
|
|
|
Add Friend
|
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="content">
|
|
|
|
<form id='addFriend' action='/' method='POST'>
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">Friend ID</label>
|
|
|
|
<p class="control is-expanded">
|
|
|
|
<input id="" class="input" type="text" name='addKey' placeholder='Public Key/ID'
|
|
|
|
minlength="56" maxlength="56" required>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">Alias</label>
|
|
|
|
<p class="control is-expanded">
|
|
|
|
<input id="" class="input" type="text" name='data' placeholder='Name'>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<footer class="card-footer">
|
|
|
|
<a class="card-footer-item">
|
|
|
|
<button class="button" type='submit'>Add to list</button>
|
|
|
|
</a>
|
|
|
|
</footer>
|
|
|
|
</div>
|
2019-03-09 06:37:57 +00:00
|
|
|
</div>
|
2019-06-28 21:24:34 +00:00
|
|
|
<!--Friend List-->
|
|
|
|
<div class="column">
|
|
|
|
<div class="card">
|
|
|
|
<header class="card-header">
|
|
|
|
<p class="card-header-title">
|
|
|
|
Friend List
|
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="content">
|
|
|
|
<div id='friendList'>
|
|
|
|
<!--Friend list is appended here-->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!--Template markup for friend list-->
|
|
|
|
<template id="friendTemplate">
|
|
|
|
<div class="box">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-narrow" id='friendName'>
|
|
|
|
Name
|
|
|
|
</div>
|
|
|
|
<div class="column" id='friendPubkey'>
|
|
|
|
Public Key
|
|
|
|
</div>
|
|
|
|
<div class="column is-narrow friendRemove" id='defriend'>
|
|
|
|
<a class="">Delete</a>
|
|
|
|
</div>
|
2019-06-16 20:56:22 +00:00
|
|
|
</div>
|
2019-02-21 20:25:45 +00:00
|
|
|
</div>
|
2019-06-28 21:24:34 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src='/shared/misc.js'></script>
|
|
|
|
<script src='/friends/friends.js'></script>
|
|
|
|
</body>
|
|
|
|
|
2019-02-21 20:25:45 +00:00
|
|
|
</html>
|