-
Notifications
You must be signed in to change notification settings - Fork 3
/
users_get.html
33 lines (24 loc) · 1.05 KB
/
users_get.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
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Alef|Varela+Round&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body dir="rtl" style="font-family: 'Alef', sans-serif;">
<h1>כרגע באתר</h1>
<div id="demo"></div>
<script>
$(document).ready(function(){
$.get("scripts/users_get.py", function(result){
var users = JSON.parse(result);
var faces = "";
for (x in users) {
sel = users[x];
faces += "<div class='users'><img src='img/face.png' style='width: 50px;' class='users_face'>"+ sel.first_name +"<br>"+ sel.email +"</div>"
$("#demo").html(faces);
}
});
});
</script>
</body>
</html>