1 |
wakaba |
1.1 |
<!DOCTYPE HTML>
|
2 |
|
|
<html lang=en class=account-user-misc>
|
3 |
|
|
<meta charset=utf-8>
|
4 |
|
|
<title>新しい利用者アカウントの作成</title>
|
5 |
|
|
<link rel=stylesheet href="/admin/style/common">
|
6 |
|
|
<h1>新しい利用者アカウントの作成</h1>
|
7 |
|
|
|
8 |
|
|
<form action=new-user accept-charset=utf-8 method=post>
|
9 |
|
|
|
10 |
|
|
<p><strong>利用者識別子</strong>: <input type=text name=user-id
|
11 |
|
|
maxlength=20 size=10 required pattern="[0-9a-z-]{4,20}"> (文字「a」〜「z」、「0」〜「9」、「-」を使って 4〜10 文字の文字列を指定してください。)<p><strong>合言葉</strong>: <input type=password name=user-pass
|
12 |
|
|
size=10 required pattern=".{4,}"> (最低4文字入力してください。)<p><strong>合言葉</strong> (もう一度): <input type=password
|
13 |
|
|
name=user-pass2 size=10 required pattern=".{4,}">
|
14 |
|
|
|
15 |
|
|
<p><input type=submit value="作成" class=create></form>
|
16 |
|
|
|
17 |
|
|
<section>
|
18 |
|
|
<!DOCTYPE HTML>
|
19 |
|
|
<html lang=en class=account-user-info>
|
20 |
|
|
<title>さん</title>
|
21 |
|
|
<link rel=stylesheet href="/admin/style/common">
|
22 |
|
|
<h1>さん</h1><section id=groups><h2>グループ</h2><section id="groups-joined"><h3>参加中のグループ</h3><ul><li><form action="group.admin-groups" accept-charset=utf-8 method=post><a href="../../groups/admin-groups/">admin-groups</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.admin-users" accept-charset=utf-8 method=post><a href="../../groups/admin-users/">admin-users</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.helo" accept-charset=utf-8 method=post><a href="../../groups/helo/">helo</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.helo-admin" accept-charset=utf-8 method=post><a href="../../groups/helo-admin/">helo-admin</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.schema-db" accept-charset=utf-8 method=post><a href="../../groups/schema-db/">schema-db</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.spec-ja" accept-charset=utf-8 method=post><a href="../../groups/spec-ja/">spec-ja</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.spec-ja-admin" accept-charset=utf-8 method=post><a href="../../groups/spec-ja-admin/">spec-ja-admin</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.suikawiki" accept-charset=utf-8 method=post><a href="../../groups/suikawiki/">suikawiki</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.test-results" accept-charset=utf-8 method=post><a href="../../groups/test-results/">test-results</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form></ul></section><section id="groups-requested"><h3>参加申請中 (未許可) のグループ</h3><ul><li><form action="" accept-charset=utf-8 method=post><a href="../../groups//"></a> <input type=hidden name=action value=leave><input type=submit value="申請取消"></form></ul></section></section><section id=props><h2>特性</h2><p><em>これらの特性は管理者のみが見ることができますが、秘密の情報は記述しないことをお勧めします。</em><form action="prop" accept-charset=utf-8 method=post><input type=hidden name=name value="full_name"><p><label><strong>名前</strong>: <input type="text" name="value" value=""></label> <input type=submit value="保存"></form><form action="prop" accept-charset=utf-8 method=post><input type=hidden name=name value="mail_addr"><p><label><strong>メイル・アドレス</strong>: <input type="email" name="value" value=""></label> <input type=submit value="保存"></form><form action="prop" accept-charset=utf-8 method=post><input type=hidden name=name value="home_url"><p><label><strong>Web サイト URL</strong>: <input type="url" name="value" value=""></label> <input type=submit value="保存"></form></section><section id=password><h2>合言葉</h2>
|
23 |
|
|
|
24 |
|
|
<form action=password method=post accept-charset=utf-8>
|
25 |
|
|
|
26 |
|
|
<p>合言葉を変更できます。<p><strong>新しい合言葉</strong>: <input type=password name=user-pass
|
27 |
|
|
size=10 required pattern=".{4,}"> (最低4文字入力してください。) <p><strong>新しい合言葉</strong> (もう一度): <input type=password
|
28 |
|
|
name=user-pass2 size=10 required pattern=".{4,}">
|
29 |
|
|
|
30 |
|
|
<p><input type=submit value="変更">
|
31 |
|
|
|
32 |
|
|
</form>
|
33 |
|
|
</section>
|
34 |
|
|
|
35 |
|
|
<section id=disable-account><h2>アカウントの無効化</h2>
|
36 |
|
|
|
37 |
|
|
<form action=disabled method=post accept-charset=utf-8>
|
38 |
|
|
|
39 |
|
|
<p><label><input type=checkbox name=action value=enable checked> このアカウントを有効にする</label>
|
40 |
|
|
|
41 |
|
|
<p><strong>警告!</strong> 自分のアカウントを無効にすると、自分で再度有効にすることはできません。<p><input type=submit value="変更"></form></section></section>
|
42 |
|
|
|
43 |
|
|
<style>
|
44 |
|
|
|
45 |
|
|
.balloon {
|
46 |
|
|
display: block;
|
47 |
|
|
position: absolute;
|
48 |
|
|
}
|
49 |
|
|
.container {
|
50 |
|
|
display: block;
|
51 |
|
|
position: relative;
|
52 |
|
|
left: 49px;
|
53 |
|
|
top: -22px /* -(10px + 34px) / 2 */;
|
54 |
|
|
min-height: 54px /* 10px + 34px + 10px */;
|
55 |
|
|
width: 20em;
|
56 |
|
|
padding: 1em;
|
57 |
|
|
background-color: rgb(128, 255, 255);
|
58 |
|
|
color: black;
|
59 |
|
|
-moz-border-radius: 16px;
|
60 |
|
|
-webkit-border-radius: 16px;
|
61 |
|
|
}
|
62 |
|
|
.pointer {
|
63 |
|
|
display: block;
|
64 |
|
|
position: absolute;
|
65 |
|
|
left: -49px;
|
66 |
|
|
top: 10px;
|
67 |
|
|
width: 49px;
|
68 |
|
|
height: 34px;
|
69 |
|
|
background-image: url(test.png) /* 49x34 */;
|
70 |
|
|
}
|
71 |
|
|
|
72 |
|
|
.selected {
|
73 |
|
|
outline: 2px blue dotted !important;
|
74 |
|
|
}
|
75 |
|
|
</style>
|
76 |
|
|
|
77 |
|
|
<script type="text/javascript" src="uupaa-detect.mini.js"></script>
|
78 |
|
|
<script type="text/javascript" src="uupaa-selector.js"></script>
|
79 |
|
|
<script type="text/javascript" src="uupaa-selector+.js"></script>
|
80 |
|
|
|
81 |
|
|
<script id="uupaa.js" type="text/javascript" src="uupaa/uupaa.js"></script>
|
82 |
|
|
|
83 |
|
|
<script src=tutorial.js></script>
|
84 |
|
|
|
85 |
|
|
<script>
|
86 |
|
|
|
87 |
|
|
window.onload = function () {
|
88 |
|
|
window.loaded = true;
|
89 |
|
|
};
|
90 |
|
|
|
91 |
|
|
function showElement (elements) {
|
92 |
|
|
if (!window.loaded) {
|
93 |
|
|
new JSTE.Observer ('load', window, function () {
|
94 |
|
|
showElement (elements);
|
95 |
|
|
});
|
96 |
|
|
return;
|
97 |
|
|
}
|
98 |
|
|
|
99 |
|
|
var top = Infinity;
|
100 |
|
|
var left = Infinity;
|
101 |
|
|
var topEl;
|
102 |
|
|
var leftEl;
|
103 |
|
|
elements.forEach (function (el) {
|
104 |
|
|
var rect = uu.element.rect (el);
|
105 |
|
|
if (rect.y < top) {
|
106 |
|
|
top = rect.y;
|
107 |
|
|
topEl = el;
|
108 |
|
|
}
|
109 |
|
|
if (rect.x < left) {
|
110 |
|
|
left = rect.x;
|
111 |
|
|
leftEl = el;
|
112 |
|
|
}
|
113 |
|
|
});
|
114 |
|
|
|
115 |
|
|
var rect = uu.viewport.rect ();
|
116 |
|
|
if (rect.sh <= top && top <= rect.sh + rect.h) {
|
117 |
|
|
top = rect.sh;
|
118 |
|
|
}
|
119 |
|
|
if (rect.sw <= left && left <= rect.sw + rect.w) {
|
120 |
|
|
left = rect.sw;
|
121 |
|
|
}
|
122 |
|
|
|
123 |
|
|
if (leftEl || topEl) {
|
124 |
|
|
var od = (leftEl || topEl).ownerDocument;
|
125 |
|
|
var point = od.createElement ('span');
|
126 |
|
|
point.style.display = 'block';
|
127 |
|
|
point.style.position = 'absolute';
|
128 |
|
|
point.style.top = top + 'px';
|
129 |
|
|
point.style.left = left + 'px';
|
130 |
|
|
point.style.width = 0;
|
131 |
|
|
point.style.height = 0;
|
132 |
|
|
od.documentElement.appendChild (point);
|
133 |
|
|
point.scrollIntoView (true);
|
134 |
|
|
point.parentNode.removeChild (point);
|
135 |
|
|
}
|
136 |
|
|
}
|
137 |
|
|
|
138 |
|
|
var SimpleBalloon = new JSTE.Class (function (messageContainer, refElement) {
|
139 |
|
|
this.element = document.createElement ('article');
|
140 |
|
|
this.element.className = 'balloon';
|
141 |
|
|
this.element.appendChild (messageContainer);
|
142 |
|
|
document.documentElement.appendChild (this.element);
|
143 |
|
|
|
144 |
|
|
if (refElement) {
|
145 |
|
|
var rect = uu.element.rect (refElement);
|
146 |
|
|
|
147 |
|
|
var left = rect.x + rect.ow;
|
148 |
|
|
var top = rect.y + rect.oh / 2;
|
149 |
|
|
|
150 |
|
|
this.element.style.top = top + 'px';
|
151 |
|
|
this.element.style.left = left + 'px';
|
152 |
|
|
|
153 |
|
|
this.refElement = refElement;
|
154 |
|
|
JSTE.Element.addClassName (refElement, 'selected');
|
155 |
|
|
}
|
156 |
|
|
|
157 |
|
|
var self = this;
|
158 |
|
|
//setTimeout (function () {
|
159 |
|
|
showElement (new JSTE.List ([refElement]).onlyNonNull ());
|
160 |
|
|
//}, 2000);
|
161 |
|
|
}, {
|
162 |
|
|
remove: function () {
|
163 |
|
|
if (this.refElement) {
|
164 |
|
|
JSTE.Element.deleteClassName (this.refElement, 'selected');
|
165 |
|
|
}
|
166 |
|
|
} // remove
|
167 |
|
|
});
|
168 |
|
|
|
169 |
|
|
var MyMessage = new JSTE.Subclass (function () {
|
170 |
|
|
return this._super.apply (this, arguments);
|
171 |
|
|
}, JSTE.Message, {
|
172 |
|
|
_render: function (msgContainer, buttonContainer) {
|
173 |
|
|
var doc = this._targetDocument;
|
174 |
|
|
|
175 |
|
|
var container = doc.createElement ('section');
|
176 |
|
|
container.className = 'container';
|
177 |
|
|
var style = doc.createElement ('style');
|
178 |
|
|
style.textContent = this.select + ' { outline: red 2px solid }';
|
179 |
|
|
container.appendChild (style);
|
180 |
|
|
|
181 |
|
|
container.appendChild (msgContainer);
|
182 |
|
|
container.appendChild (buttonContainer);
|
183 |
|
|
|
184 |
|
|
var refElement = JSTE.Node.querySelector (document, this.select);
|
185 |
|
|
|
186 |
|
|
if (refElement) {
|
187 |
|
|
var pointer = doc.createElement ('span');
|
188 |
|
|
pointer.className = 'pointer';
|
189 |
|
|
container.appendChild (pointer);
|
190 |
|
|
}
|
191 |
|
|
|
192 |
|
|
this._simpleBalloon = new SimpleBalloon (container, refElement);
|
193 |
|
|
|
194 |
|
|
return this._simpleBalloon.element;
|
195 |
|
|
}, // _render
|
196 |
|
|
_remove: function () {
|
197 |
|
|
this._simpleBalloon.remove ();
|
198 |
|
|
} // _remove
|
199 |
|
|
});
|
200 |
|
|
|
201 |
|
|
var xhr = new XMLHttpRequest ();
|
202 |
|
|
xhr.open ('GET', 'test.xml', false);
|
203 |
|
|
xhr.send (null);
|
204 |
|
|
|
205 |
|
|
|
206 |
|
|
document.a =
|
207 |
|
|
JSTE.Course.createFromDocument (xhr.responseXML, document);
|
208 |
|
|
|
209 |
|
|
document.b =
|
210 |
|
|
new JSTE.Tutorial (document, document.a, {messageClass: MyMessage});
|
211 |
|
|
|
212 |
|
|
|
213 |
|
|
</script>
|
214 |
|
|
|
215 |
wakaba |
1.3 |
<!--
|
216 |
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
217 |
|
|
* Copyright 2008-2009 Wakaba <w@suika.fam.cx>. All rights reserved.
|
218 |
|
|
*
|
219 |
|
|
* This program is free software; you can redistribute it and/or
|
220 |
|
|
* modify it under the same terms as Perl itself.
|
221 |
|
|
*
|
222 |
|
|
* Alternatively, the contents of this file may be used
|
223 |
|
|
* under the following terms (the "MPL/GPL/LGPL"),
|
224 |
|
|
* in which case the provisions of the MPL/GPL/LGPL are applicable instead
|
225 |
|
|
* of those above. If you wish to allow use of your version of this file only
|
226 |
|
|
* under the terms of the MPL/GPL/LGPL, and not to allow others to
|
227 |
|
|
* use your version of this file under the terms of the Perl, indicate your
|
228 |
|
|
* decision by deleting the provisions above and replace them with the notice
|
229 |
|
|
* and other provisions required by the MPL/GPL/LGPL. If you do not delete
|
230 |
|
|
* the provisions above, a recipient may use your version of this file under
|
231 |
|
|
* the terms of any one of the Perl or the MPL/GPL/LGPL.
|
232 |
|
|
*
|
233 |
|
|
* "MPL/GPL/LGPL":
|
234 |
|
|
*
|
235 |
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
236 |
|
|
*
|
237 |
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
238 |
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
239 |
|
|
* the License. You may obtain a copy of the License at
|
240 |
|
|
* <http://www.mozilla.org/MPL/>
|
241 |
|
|
*
|
242 |
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
243 |
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
244 |
|
|
* for the specific language governing rights and limitations under the
|
245 |
|
|
* License.
|
246 |
|
|
*
|
247 |
|
|
* The Original Code is JSTE code.
|
248 |
|
|
*
|
249 |
|
|
* The Initial Developer of the Original Code is Wakaba.
|
250 |
|
|
* Portions created by the Initial Developer are Copyright (C) 2008
|
251 |
|
|
* the Initial Developer. All Rights Reserved.
|
252 |
|
|
*
|
253 |
|
|
* Contributor(s):
|
254 |
|
|
* Wakaba <w@suika.fam.cx>
|
255 |
|
|
*
|
256 |
|
|
* Alternatively, the contents of this file may be used under the terms of
|
257 |
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
258 |
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
259 |
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
260 |
|
|
* of those above. If you wish to allow use of your version of this file only
|
261 |
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
262 |
|
|
* use your version of this file under the terms of the MPL, indicate your
|
263 |
|
|
* decision by deleting the provisions above and replace them with the notice
|
264 |
|
|
* and other provisions required by the LGPL or the GPL. If you do not delete
|
265 |
|
|
* the provisions above, a recipient may use your version of this file under
|
266 |
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
267 |
|
|
*
|
268 |
|
|
* ***** END LICENSE BLOCK ***** */
|
269 |
|
|
-->
|