forked from natto1784/yamaf
Compare commits
2 Commits
b346978ddc
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| c866f4c524 | |||
| 31fa66b80c |
3
LISENCE
Normal file
3
LISENCE
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Zomato License (v1.0)
|
||||||
|
You may fork, taste, and remix this code — but don’t serve it without credit.
|
||||||
|
All bugs come with complimentary fries 🍟.
|
||||||
3
lIS2
Normal file
3
lIS2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Zomato License (v1.0)
|
||||||
|
You may fork, taste, and remix this code — but don’t serve it without credit.
|
||||||
|
All bugs come with complimentary fries 🍟.
|
||||||
@@ -2,40 +2,37 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>{{TITLE}}</title>
|
<title>{{TITLE}}</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: system-ui, sans-serif;
|
font-family: sans-serif;
|
||||||
background: #fafafa;
|
|
||||||
color: #222;
|
|
||||||
margin: 2rem auto;
|
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
padding: 1.5rem;
|
margin: 40px auto;
|
||||||
line-height: 1.6;
|
padding: 0 20px;
|
||||||
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: #111;
|
font-size: 1.8rem;
|
||||||
font-size: 2rem;
|
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background: #eee;
|
|
||||||
padding: 0.3rem 0.5rem;
|
|
||||||
border-radius: 4px;
|
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0.5rem 0;
|
background: #f3f3f3;
|
||||||
|
padding: 0.5rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
margin: 0.75rem 0;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
margin-top: 1.5rem;
|
margin-top: 1rem;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
background: #fff;
|
border: 1px solid #ddd;
|
||||||
border-radius: 8px;
|
border-radius: 6px;
|
||||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
|
background: #fafafa;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@@ -44,7 +41,7 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0.6rem 1.2rem;
|
padding: 0.6rem 1.2rem;
|
||||||
border-radius: 6px;
|
border-radius: 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
@@ -53,15 +50,27 @@
|
|||||||
background: #0056b3;
|
background: #0056b3;
|
||||||
}
|
}
|
||||||
|
|
||||||
iframe {
|
#progress-container {
|
||||||
display: block;
|
margin-top: 1rem;
|
||||||
margin: 2rem auto;
|
}
|
||||||
max-width: 100%;
|
|
||||||
|
.video-container {
|
||||||
|
position: relative;
|
||||||
|
padding-bottom: 56.25%;
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
margin-top: 2rem;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#progress-container {
|
.video-container iframe {
|
||||||
margin-top: 1rem;
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -70,21 +79,16 @@
|
|||||||
<h1>{{TITLE}}</h1>
|
<h1>{{TITLE}}</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
You can upload files directly or use <code>curl</code>:
|
Use curl to upload:
|
||||||
|
<code>curl -F file=@"[file]" {{USER_URL}}</code>
|
||||||
|
If key is enabled then a field "key" will be required.
|
||||||
|
<br />
|
||||||
|
Make sure the key is the first field in the multipart before any files.
|
||||||
|
<code>
|
||||||
|
curl -F "key=[key]" -F file=@"[file]" -F file=@"[file2]" {{USER_URL}}
|
||||||
|
</code>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<code>
|
|
||||||
curl -F file=@"[file]" {{USER_URL}}
|
|
||||||
</code>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
If key authentication is enabled, include a <strong>"key"</strong> field before the file(s):
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<code>
|
|
||||||
curl -F "key=[key]" -F file=@"[file]" -F file=@"[file2]" {{USER_URL}}
|
|
||||||
</code>
|
|
||||||
|
|
||||||
<form method="post" enctype="multipart/form-data">
|
<form method="post" enctype="multipart/form-data">
|
||||||
{{KEY_FIELD}}
|
{{KEY_FIELD}}
|
||||||
<input type="file" name="file" multiple />
|
<input type="file" name="file" multiple />
|
||||||
@@ -94,17 +98,14 @@
|
|||||||
|
|
||||||
<div id="progress-container"></div>
|
<div id="progress-container"></div>
|
||||||
|
|
||||||
<!-- 🎥 Embedded YouTube video -->
|
<div class="video-container">
|
||||||
<iframe
|
<iframe
|
||||||
width="560"
|
src="https://www.youtube.com/embed/WjzbSvnQ7SU?autoplay=1&mute=1&loop=1&playlist=WjzbSvnQ7SU"
|
||||||
height="315"
|
title="Brainrot Video"
|
||||||
src="https://www.youtube.com/embed/lgox5KTyzdc?si=nPLAWSf0cx_tjVNH"
|
frameborder="0"
|
||||||
title="YouTube video player"
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||||
frameborder="0"
|
allowfullscreen
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
></iframe>
|
||||||
referrerpolicy="strict-origin-when-cross-origin"
|
</div>
|
||||||
allowfullscreen
|
|
||||||
></iframe>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user