Skip to content

HTML5 Download Attribute Demo: Exploring the behavior of the HTML5 download attribute for hyperlinks

License

Notifications You must be signed in to change notification settings

sixrevisions/html5-download-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML5 Download Attribute Demo

HTML5 Download Attribute Demo

Overview

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.

Details

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 the download 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 purposes
  • html5download-demo.html — the demo page

Demo

HTML5 Download Attribute Demo

License: Public Domain Dedication

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).

Author

Created by @sixrevisions

About

HTML5 Download Attribute Demo: Exploring the behavior of the HTML5 download attribute for hyperlinks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published