HashFrame


This is a simple site that loads an HTML iframe with the contents provided by the URL hash.



Upload a File to Make a Link:


Your Link:


Here's a Demo!



This site is not liable for anything using it to encode or decode content. It only ever sends a static HTML file with zero hosted content. All content is read from the URL hash (the part after the # sign). It never goes through this site, and never can nor will due to how browsers work. Any link shared is equivalent to directly posting the contents of the file.


What HashFrame does contain:

Some simple code:

// when the page loads
window.onload = function() {
  // check if there is content supplied with the URL
  // if there is:
  if (location.hash) {
    // put it into the frame
    frame.src = location.hash.substr(1);
    // show the frame
    frame.style.display = "block";
  }
  // if there is not:
  else {
    // redirect to the help page
    window.location.href = "/help";
  }
};

That is all of the logic contained in the main page.
This page does some work to convert files all within your browser.

View it on GitHub