This repo contains the sources files of a demo that displays the behavior of the download
attribute for hyperlinks.
These files are a component of a Six Revisions guide called HTML5 Download Attribute Guide.
The source files include a download
attribute feature-detection script written in jQuery that will display a responsive modal window with a message warning the user that the browser being used doesn't implement the attribute if it fails to be detected by the script.
/css/stylesheet.css
— page-aesthetic style rules and the required CSS for the responsive modal window/js/script.js
— contains mildly-documented jQuery code that will detect whether or not thedownload
attribute is present in the current browser, as well as the logic for opening and closing the responsive modal window/samp/htmldoc.html
— a sample HTML document for testing purposeshtml5download-demo.html
— the demo page
The source files contained in this repository, excluding any external references and inclusions, is in the public domain under the CC0 1.0 license.
The source files are free of any copyrights: You can use, modify, sell, distribute, and do whatever you want with the source files of this repo with absolutely no obligations (i.e. no need to ask permission from the author, provide attribution, pay a fee, or fulfill any other prerequisite requirements).
Created by @sixrevisions