-
Notifications
You must be signed in to change notification settings - Fork 1
/
reg.html
200 lines (184 loc) · 9.01 KB
/
reg.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru-ru" lang="ru-ru" >
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="golos, блог, блокчейн, блоггеры, социальная сеть, апвот, поощрение, лайки, контент, децентрализация" />
<meta name="rights" content="(с) Joopiter.ru и denis-skripnik.name" />
<meta name="description" content="Live blogs space - web-клиент для блокчейна golos, платформы для блоггеров. Его главным преимуществом является то, что он локальный, а также имеет свою экономику распределения вознаграждений (СМ. about.html)" />
<title>Регистрация по инвайт-коду | live blogs space</title>
<link href="favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<link href="css/view.css" rel="stylesheet" type="text/css" />
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
<link href="css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap/bootstrap-social.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap/fileinput.css" rel="stylesheet" type="text/css" />
<link href="css/font-exo-cyrillic.css" rel="stylesheet" type="text/css" />
<link href="css/1vtemplate.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/editormd.min.css" />
<script src="js/lib/jquery.min.js"></script>
<script src="js/lib/jquery-ui.min.js"></script>
<script src="js/lib/sjcl.min.js" type="text/javascript"></script>
<script src="js/lib/bootstrap.min.js"></script>
<script src="js/lib/fileinput.min.js" type="text/javascript"></script>
<script src="js/1vtemplate.js" type="text/javascript"></script>
<script src="https://unpkg.com/golos-js@latest/dist/golos.min.js" type="text/javascript"></script>
<script src="js/marked.js" type="text/javascript"></script>
<script src="js/moment.js" type="text/javascript"></script>
<script src="js/goloshelper.js" type="text/javascript"></script>
<script src="js/view.js" type="text/javascript"></script>
<script src="js/editormd.min.js" type="text/javascript"></script>
</head>
<style type="text/css" media="screen">
#editor {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
</style>
<body class="body">
<header id="header_wrapper" class="mp_header_wrapper">
<nav id="header" class="navbar navbar-default radiusless">
<div class="main_wrapper">
<div class="navbar-header">
<button type="button" id="main-menu_btn" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-menu" aria-expanded="false">
<span class="sr-only">Главное меню</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="main-menu">
</div>
</div>
</nav>
</header>
<div id="principal_wrapper">
<div class="main_wrapper">
<aside id="sidebar_left">
<div id="main_logo_wrapper">
<a href="index.html" id="logo_link"><img src="images/logo.png" class="img-responsive" alt="Live blogs space" title="Live blogs space"/></a>
</div>
<div id="login_div" class="row" style="margin-top: 5px; margin-bottom: 10px; display: none;">
<form action="" method="post" name="adminForm" id="adminForm" class="form-validate col-sm-10 col-sm-offset-1">
<div class="form-group1">
<label for="login" style="color: white;">Логин golos<span style="color: red;">*</span> </label>
<div class="input-group">
<div class="input-group-addon">@</div>
<input type="text" class="form-control required" id="login" name="login" onblur="checkLogin(this.value);" required="required">
</div>
</div>
<div class="form-group1">
<label for="key" style="color: white;">Постинг ключ</label> <span style="color: red;">*</span>
<input type="password" class="form-control required" id="key" name="key" placeholder="Начинается с 5" required="required">
</div>
<br>
<div class="center" style="text-align: center;">
<input type="hidden" name="ok" id="ok" value="false">
<input type="button" class="btn btn-primary" value="Войти" onclick="storeKeyLocally();">
</div>
</form>
</div>
<div id="avatar">
<div id="hello"></div>
<div id="battery"></div>
</div>
</aside>
<div id="main_content_wrapper">
<section id="main_content">
<div id="main_column_wrapper">
<div id="main_column">
<ol itemscope itemtype="https://schema.org/BreadcrumbList" class="breadcrumb">
<li>
Вы здесь:  
</li>
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="active">
<span itemprop="name">
Регистрация по инвайт-коду
</span>
<meta itemprop="position" content="1">
</li>
</ol>
<div id="j_component">
<form action="index.html" method="post" name="postForm" id="postForm" class="form-validate col-sm-10 col-sm-offset-1">
<div class="form-group1">
<label for="newAccountName">Логин нового аккаунта<span style="color: red;">*</span> </label>
<input type="text" class="form-control required" id="new_account_name" name="newAccountName" required="required">
</div>
<div class="form-group1">
<label for="inviteSecret">Инвайт-код:<span style="color: red;">*</span> </label>
<input type="text" class="form-control required" id="invite_secret" name="inviteSecret" required="required" value="">
</div>
<div class="form-group1">
<label for="newAccountKey">Ключ (Будет и owner, и постинг, и активным ключом аккаунта):<span style="color: red;">*</span> </label>
<input type="button" value="Генерировать" onclick="new_private_gen();">
<input type="text" class="form-control required" id="new_account_key" name="newAccountKey" readonly required="required">
<input type="button" id="new_private_copy" value="Скопировать в буфер обмена"
</div>
<div class="form-group1">
<hr>
<p><strong>ВНИМАНИЕ: запишите придуманный ключ в нескольких местах - его нельзя будет восстановить, если потеряете!</strong></p>
<hr>
</div>
<div class="form-group1">
<br>
<input type="button" class="btn btn-primary" value="Регистрировать"
onclick="send_reg_data();">
</div>
</div>
</div>
</div>
</section>
</div>
<div id="footer_buffer"></div>
<footer id="footer_wrapper">
<div id="footer" class="padding_tb20 row">
<div class="col-sm-12">
<div class="footer2">LiveBlogs.Space - <a href="show.html?author=liveblogs&permlink=o-proekte-liveblogsspace-opisanie-czelevaya-auditoriya-obosnovanie-yekonomiki-prilozheniya-1538924510">О проекте</a></div>
</div>
</div>
</footer>
<div class="clearfix"></div>
</div>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
var invite_code = getUrlVars()['invite'];
if (invite_code) {
document.getElementById('invite_secret').value = invite_code;
$('#invite_secret').prop('readonly', true);
}
function new_private_gen() {
$('#new_account_key').val(pass_gen());
}
function send_reg_data() {
var new_account_key_id = $("#new_account_key").val();
var resultWifToPublic = golos.auth.wifToPublic(new_account_key_id);
console.log('wifToPublic', resultWifToPublic);
inviteRegPage(document.getElementById('new_account_name').value, document.getElementById('invite_secret').value, resultWifToPublic, new_account_key_id);
}
//цепляем событие на onclick кнопки
var button = document.getElementById('new_private_copy');
button.addEventListener('click', function () {
//нашли наш контейнер
var ta = document.querySelector('#new_account_key');
ta.focus();
ta.setSelectionRange(0, ta.value.length);
try {
document.execCommand('copy');
} catch(err) {
console.log('Can`t copy, boss');
}
//очистим выделение текста, чтобы пользователь не парился
window.getSelection().removeAllRanges();
});
Init();
mainMenu();
</script>
</body>
</html>