Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22397100
wyszukiwanie.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
wyszukiwanie.html
View Options
<!DOCTYPE html>
<
html
>
<
head
>
<
script
src
=
"/jquery.js"
></
script
>
<
meta
charset
=
"utf-8"
>
<
title
>
Wyszukiwanie
</
title
>
<
style
>
html
{
background-color
:
gray
;
}
body
{
padding
:
20
px
;
background-color
:
white
;
font-family
:
sans-serif
;
max-width
:
50
rem
;
margin
:
0
auto
;
}
.
email
{
color
:
gray
;
font-size
:
0.8
em
;
}
</
style
>
</
head
>
<
body
>
<
center
><
h1
>
Wyszukiwanie
</
h1
></
center
>
<
ul
id
=
"wyszukiwanie"
>
</
ul
>
<
input
type
=
"text"
placeholder
=
"Treść"
id
=
"search_string"
>
<
button
id
=
"confirm"
onclick
=
"searchQuery()"
>
Szukaj
</
button
>
</
body
>
<
script
>
function
readContactList
(){
$
(
"#Wyszukiwanie"
).
html
(
""
);
$
.
get
(
"/api/v1/chat/contacts"
,
function
(
data
)
{
console
.
log
(
data
);
for
(
var
i
in
data
)
{
var
entry
=
data
[
i
];
var
node
=
$
(
"<li>"
+
entry
.
name
+
" <span class='email'>"
+
entry
.
email
+
"</span> <button onclick='deleteContact("
+
entry
.
id
+
")'>Usuń</button></li>"
);
$
(
"#Wyszukiwanie"
).
append
(
node
);
}
});
}
function
searchQuery
(){
var
name
=
$
(
"#username"
).
val
();
var
email
=
$
(
"#email"
).
val
();
$
.
post
(
"/api/v1/chat/contacts"
,
{
name
:
name
,
email
:
email
},
function
()
{
readContactList
();
});
}
readContactList
();
</
script
>
</
html
>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Fri, Nov 27, 17:06 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1227334
Default Alt Text
wyszukiwanie.html (1 KB)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline