-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.html
96 lines (83 loc) · 3.43 KB
/
user.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Social Paka - Profil</title>
<link rel="stylesheet" href="bootstrap-3.3.7-dist/css/bootstrap.min.css" />
<link href="https://fonts.googleapis.com/css?family=Rajdhani:300,400,500,600,700" rel="stylesheet" />
<link rel="stylesheet" href="css/basic.css" />
<link rel="stylesheet" href="css/profil.css" />
<link rel="shortcut icon" type="image/x-icon" href="img/logo.png" />
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/profil.js"></script>
<!--<script src="js/vCard.js"></script>-->
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10" id="banner">
<img src="img/banner.png" alt="banner"/>
</div>
</div>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10 middle">
<div class="col-md-1"></div>
<div class="col-md-2" id="profilpic">
<img src="img/standartavatar.png" style="width: 100%;" alt="profilbild"/>
</div>
<div class="col-md-5" style="margin-left: 10px; left: 2.3em;">
<div class="row infocontent" id="add"></div>
<div class="row infocontent">
<ul id="addskills"></ul>
</div>
<button class="btn btn-primary" onclick="vCard()" href="js/demo." id="export">Export vCard</button>
</div><a href="index.html"><button type="button" class="btn btn-default">Zurück zur Startseite</button></a>
</div>
</div>
</div>
<!-- <script>
var myLink = document.getElementById('mylink');
myLink.onclick = function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "Public/Scripts/filename.js.";
document.getElementsByTagName("head")[0].appendChild(script);
return false;
}
</script>
<script>
var requestify = require('requestify');
var vCard = require('vcards-js');
var name = 'demo';
//create a new vCard
vCard = vCard();
requestify.get('http://10.172.3.201:9253/user?name=demo')
.then(function (response) {
console.log(response.getCode()); // Some code between 200-299
})
.fail(function (response) {
console.log(response.getCode()); // Some error code such as, for example, 404
});
requestify.get('http://10.172.3.201:9253/user?name=demo').then(function (response) {
// Get the response body
var Body = response.getBody();
vCard.firstName = Body.fullName.substring(0, Body.fullName.lastIndexOf(" "));
vCard.lastName = Body.fullName.substring(Body.fullName.lastIndexOf(" ") + 1, Body.fullName.length);
//vcardbd = Body.bdy;
//vCard.birthday = new Date (vcardbd.replace("/", "-"));
vCard.email = Body.email;
vCard.workPhone = Body.phone;
//save to file
vCard.saveToFile('demo.vcf');
//get as formatted string
console.log(vCard.getFormattedString());
});
</script>-->
<script>
loadUser();
editbutton()
</script>
</body>
</html>