Skip to content

Instantly share code, notes, and snippets.

View themorgantown's full-sized avatar

Daniel themorgantown

View GitHub Profile
<?php
/**
* Template Name: Blank Template
*
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
1
00:00:05,440 --> 00:00:09,279
thank you for joining the webinar
2
00:00:07,359 --> 00:00:12,960
we're going to talk about putting hype
3
00:00:09,279 --> 00:00:16,559
<script>
// place this in the head of your Hype document
// to play audio file:
// this plays p1texte1.mp3
//var snd = hypeDocument.loadSound('p1texte1');
//snd.play();
// this stops all playing audio
.fw100 {
font-weight:100 !important;
}
.fw200 {
font-weight:200 !important;
}
.fw300 {
font-weight:300 !important;
}
.fw400 {
@themorgantown
themorgantown / hypedocument.html
Last active December 2, 2020 04:25
tiniest Hype document possible...
<!DOCTYPE html><html> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge"/><title>My Title</title><style>html{height:100%;}body{background-color:#FFF;margin:0;height:100%;}</style> <meta name="viewport" content="user-scalable=yes, width=600"/> </head> <body> <div id="default_hype_container" class="HYPE_document" style="margin:auto;position:relative;width:600px;height:400px;overflow:hidden;"></div><script type="text/javascript" charset="utf-8">(function(){var g=void 0,j=!0,k=null,m=!1,ca=parseFloat,p=Math,y=window,da=parseInt,ea=encodeURIComponent,fa=navigator,A=document;function ga(Q,J){return Q.width=J}function ja(Q,J){return Q.display=J}function ka(Q,J){return Q.height=J}function na(Q,J){return Q.length=J}function pa(Q,J){return Q.innerHTML=J}function qa(Q,J){return Q.className=J}function ra(Q,J){return Q.zIndex=J}var sa="lastPosition",ta="userAgent",C="push",za="type",Aa="location",Ca="detachEvent",Da="clearTimeout",Ea="add
# quick server for something in a folder called 'document' on your desktop.
# If your computer's hostname is 'Zappa' it will load http://zappa.local
myhost=`hostname` && cd ~/Desktop/document && open http://$myhost && python -m SimpleHTTPServer 80
@themorgantown
themorgantown / hype-runtime.html
Last active August 31, 2020 18:17
Please note this is just an example -- you should re-export so that you have the most recent bundled runtime for the thin.min.js file.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
<title>Default</title>
<style>
html {
height:100%;
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=595,height=842" />
<title>Untitled-1-2</title>
<link href="css/idGeneratedStyles.css" rel="stylesheet" type="text/css" />
<script src="script/idGeneratedScript.js" type="text/javascript"></script>
</head>
// Wait for the SDK to become ready:
if (mraid.getState() === 'loading') {
// If the SDK is still loading, add a listener for the 'ready' event:
mraid.addEventListener('ready', onSdkReady);
} else {
// Otherwise, if the SDK is ready, execute your function:
onSdkReady();
}
// Implement a function that shows the ad when it first renders:
<!-- add just before </body> in footer.php -->
<script>
/*! instant.page v5.1.0 - (C) 2019-2020 Alexandre Dieulot - https://instant.page/license */
let t,e;const n=new Set,o=document.createElement("link"),i=o.relList&&o.relList.supports&&o.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype,s="instantAllowQueryString"in document.body.dataset,a="instantAllowExternalLinks"in document.body.dataset,r="instantWhitelist"in document.body.dataset,c="instantMousedownShortcut"in document.body.dataset,d=1111;let l=65,u=!1,f=!1,m=!1;if("instantIntensity"in document.body.dataset){const t=document.body.dataset.instantIntensity;if("mousedown"==t.substr(0,"mousedown".length))u=!0,"mousedown-only"==t&&(f=!0);else if("viewport"==t.substr(0,"viewport".length))navigator.connection&&(navigator.connection.saveData||navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g"))||("viewport"==t?document.documentElement.clientWidth*document.documen