Javascript Experiments

Click a link to load the example into the Code Viewer iframe down below (you might have to scroll down to see it). These examples are best-viewed on a large screen (e.g. desktop or laptop) or, on a tablet in landscape orientation. They may look or function oddly on small screen devices (e.g. a phone)
  1. Loading Multiple Templates Defined in a JSON File
  2. Loading Page Templates Using Hidden iFrames
  3. Data Attributes Interacting with CSS
  4. Pseudo-Random "Return Codes" to Link to Web Content