TenPoisk
commited on
Commit
·
1dc763f
1
Parent(s):
e066216
Update index.html
Browse files- index.html +5 -5
index.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<head>
|
4 |
-
<title>
|
5 |
<p></p>
|
6 |
</head>
|
7 |
<body>
|
8 |
-
<h1>
|
9 |
<label for="long-url">Enter a long link:</label>
|
10 |
<p></p>
|
11 |
-
<input type="text" id="long-url" placeholder="https://
|
12 |
<p></p>
|
13 |
<button id="shorten-button">Shorten</button>
|
14 |
<br>
|
@@ -26,7 +26,7 @@
|
|
26 |
method: "POST",
|
27 |
headers: {
|
28 |
"Content-Type": "application/json",
|
29 |
-
"Authorization": "
|
30 |
},
|
31 |
body: JSON.stringify({
|
32 |
long_url: longUrl
|
@@ -44,6 +44,6 @@
|
|
44 |
});
|
45 |
</script>
|
46 |
<p></p>
|
47 |
-
Link shortener
|
48 |
</body>
|
49 |
</html>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<head>
|
4 |
+
<title>URL.cut</title>
|
5 |
<p></p>
|
6 |
</head>
|
7 |
<body>
|
8 |
+
<h1>URLcut</h1>
|
9 |
<label for="long-url">Enter a long link:</label>
|
10 |
<p></p>
|
11 |
+
<input type="text" id="long-url" placeholder="https://example.com">
|
12 |
<p></p>
|
13 |
<button id="shorten-button">Shorten</button>
|
14 |
<br>
|
|
|
26 |
method: "POST",
|
27 |
headers: {
|
28 |
"Content-Type": "application/json",
|
29 |
+
"Authorization": "YOUR_API_TOKEN_BITLY"
|
30 |
},
|
31 |
body: JSON.stringify({
|
32 |
long_url: longUrl
|
|
|
44 |
});
|
45 |
</script>
|
46 |
<p></p>
|
47 |
+
Link shortener
|
48 |
</body>
|
49 |
</html>
|