forked from skinkie/openkvk-migratie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (82 loc) · 3.68 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>openkvk</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<img src="img/openkvk.png" alt="openkvk" id="logo"/>
<div class="panel panel-default">
<div class="panel-heading">Zoekformulier</div>
<div class="panel-body">
<div class="input-group">
<label class="sr-only" for="companyname">Naam</label>
<input type="text" class="zipcode form-control" id="companyname" placeholder="Een handelsnaam, straat of postcode..."/>
<span class="input-group-btn">
<input type="submit" class="btn btn-primary dropdown-toggle" value="Zoek" id="search"/>
</span>
</div>
<div class="openkvk-loading progress" style="display: none">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
<span class="sr-only">Loading please wait...</span>
</div>
</div>
</div>
</div>
<ul id="kvkResults" class="list-group"></ul>
<div id="push"></div>
</div>
<div id="footer" class="container footer">
de openkvk <a href="http://github.com/skinkie/openkvk-migratie">migratiepagina</a> is mogelijk gemaakt door <a href="https://sslcertificaten.nl/">sslcertificaten.nl</a> en het javascript voorbeeld van <a href="https://twitter.com/Boekkooi">@boekkooi</a>.
</div>
<div class="modal fade" id="company-dialog" tabindex="-1" role="dialog" aria-labelledby="companyDialog"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">Close</span></button>
<h4 class="modal-title" id="companyDialog"></h4>
</div>
<div class="modal-body">
<pre></pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.openkvk.js"></script>
<script>
$(document).ready(function () {
$('#kvkResults').openkvk({
onSelection: function (data) {
$('#company-dialog .modal-title').text(data.rechtspersoon);
$('#company-dialog .modal-body pre').text(JSON.stringify(data, null, "\t"));
$('#company-dialog').modal('show');
}
});
$('#search').click(function () {
$('#kvkResults').openkvk('search');
});
});
</script>
</body>
</html>