-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunique_url_slug.html
41 lines (41 loc) · 1.43 KB
/
unique_url_slug.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Unique URL Slug</title>
<!-- Include jQuery library -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>
<!-- Include the Custom Elements API-->
<script src="https://app.kontent.ai/js-api/custom-element.js"></script>
<!-- Custom element CSS styles -->
<link rel="stylesheet" href="./custom-element.css" />
</head>
<body>
<div class="text-field text-field--has-button" id="element">
<div class="text-field__input u-transparent-border u-no-left-padding">
<div
id="unique"
class="notranslate public-DraftEditor-content"
contenteditable="true"
placeholder="Enter slug here..."
role="textbox"
spellcheck="false"
style="outline: none; user-select: text; overflow-wrap: break-word"
></div>
</div>
<div id="regenerate" class="text-field__button-pane">
<div class="text-field__button">
<div class="text-field__button-icon">
<i
class="icon-autogenerate"
id="autogenerate"
title="Autogenerate"
></i>
</div>
</div>
</div>
</div>
<div id="unique-status" class="status-checking item-status">checking</div>
<script src="./index.js"></script>
</body>
</html>