-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
94 lines (87 loc) · 3.47 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
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Content editable JS</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<style>
html, body {
min-height: 100%;
}
body {
background-color: #FAACA8;
background-image: linear-gradient(19deg, #FAACA8 0%, #DDD6F3 100%);
padding: 30px 0;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-12">
<div class="card shadow-lg mt-4"
data-group="homepage"
data-group-endpoint="http://127.0.0.1:1080/server.php?group=about"
>
<img src="https://source.unsplash.com/random/1000x200"
alt="Unsplash image"
class="card-image-top"
data-editable="img"
data-editable-type="image"
>
<div class="card-body">
<h4 class="card-title"
data-editable="title"
>Content Editable JS!</h4>
<p data-editable="body"
data-editable-type="html"
>
Content Editable is a JS library useful to interact and update your content in live.
Check out the <a href="https://github.com/MarceauKa/content-editable-js" target="_blank">source code</a> on Github!
</p>
</div>
</div>
<div class="card shadow-lg mt-4"
data-group="documentation"
data-group-endpoint="http://127.0.0.1:1080/server.php?group=documentation"
>
<div class="card-body">
<h4 class="card-title"
data-editable="title"
>Openings</h4>
<p data-editable="description">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. A aperiam at consequuntur corporis distinctio dolores earum eius eos, explicabo.
</p>
<table class="table table-sm table-striped table-bordered"
data-group="openings"
data-group-endpoint="http://127.0.0.1:1080/server.php?group=openings"
>
<tr>
<td data-editable="week-days">Monday to Friday</td>
<td data-editable="week-hours">8am to 8pm</td>
</tr>
<tr>
<td data-editable="weekend-days">Saturday</td>
<td data-editable="weekend-hours">10am to 7pm</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="dist/content-editable.js"></script>
<script type="text/javascript">
let content = contentEditable({
showOnInit: true,
debug: true,
headers: {
'Authorization': 'Bearer your-token',
},
defaultEndpoint: 'http://127.0.0.1:1080/server.php',
});
</script>
</body>
</html>