Skip to content

Latest commit

 

History

History

data-urls

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

data-urls

A Data URLs example which shows how to download client side content as a file.

Description

This subproject defines a simple web page that illustrates the Data URLs feature. Data URLs encode content in a URL which conveniently lets the user download a file containing that content. No server interaction or separate page is necessary!

Instructions

  1. Run a local web server:
    • python3 -m http.server --directory src/
  2. Open the browser
  3. Download the file!
    • Click the download button to download the highlighted "environmental info" content as a file. This is awesome!
    • It will look something like this: Screenshot

Reference