summaryrefslogtreecommitdiff
path: root/download-test
diff options
context:
space:
mode:
authors1n <[email protected]>2020-03-04 01:58:07 -0800
committerGitHub <[email protected]>2020-03-04 01:58:07 -0800
commitb1df5a6c1cd87016797a0582875ad6bd315010ff (patch)
treecd3f6aadf7568819a70c7661f4d1d3ad63fe2d07 /download-test
downloadhtml-examples-master.tar.xz
html-examples-master.zip
Diffstat (limited to 'download-test')
-rw-r--r--download-test/README.md45
-rw-r--r--download-test/assets/downloads/Download Test.rarbin0 -> 36122 bytes
-rw-r--r--download-test/index.html12
3 files changed, 57 insertions, 0 deletions
diff --git a/download-test/README.md b/download-test/README.md
new file mode 100644
index 0000000..d9ab8a3
--- /dev/null
+++ b/download-test/README.md
@@ -0,0 +1,45 @@
+<!-- TABLE OF CONTENTS -->
+## Table of Contents
+
+* [Usage](#usage)
+* [License](#license)
+* [Contact](#contact)
+
+
+
+<!-- USAGE EXAMPLES -->
+## Usage
+
+This is the most basic method of creating a downloadable file, <a href="https://8cy.github.io/html-examples/download-test/">demo</a>.
+
+```html
+<a href="/path/to/file/examplefile2.jpg" download>Link text</a>
+```
+<br></br>
+You can also **add text** into the `<a>` tag **to create a button.**
+
+```html
+<a href="/path/to/file/examplefile2.jpg" download>Link text</a>
+```
+<br></br>
+Or you can **rename the downloadable file** using the `download=""` variable.
+
+```html
+<a href="/path/to/file/examplefile2.jpg" download="August 31 2016 Sales Report">Download the report</a>
+```
+
+
+
+<!-- LICENSE -->
+## License
+
+Distributed under the MIT License. See [`LICENSE`](./LICENSE) for more information.
+
+
+
+<!-- CONTACT -->
+## Contact
+
+s1nical - [@9inny](https://twitter.com/9inny) - [email protected]
+
+Project Link: [https://github.com/8cy/html-examples/download-test](https://github.com/8cy/download-test)
diff --git a/download-test/assets/downloads/Download Test.rar b/download-test/assets/downloads/Download Test.rar
new file mode 100644
index 0000000..cba1231
--- /dev/null
+++ b/download-test/assets/downloads/Download Test.rar
Binary files differ
diff --git a/download-test/index.html b/download-test/index.html
new file mode 100644
index 0000000..ab2a32e
--- /dev/null
+++ b/download-test/index.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>s1nical - Download Test</title>
+</head>
+<body>
+ <a href="https://8cy.github.io/html-examples/download-test/assets/downloads/Download Test.rar" download></a>
+</body>
+</html>