Skip to content

Instantly share code, notes, and snippets.

View themorgantown's full-sized avatar

Daniel themorgantown

View GitHub Profile
@themorgantown
themorgantown / web-app.html
Created December 7, 2012 01:07 — forked from tfausak/ios-8-web-app.html
iOS web app icons & startup images
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<title></title>
<!-- iPhone -->
<link href="http://taylor.fausak.me/static/images/apple-touch-icon-57x57.png"
<a class="twitter-timeline" href="https://twitter.com/hypeapp" data-widget-id="276087715232104448">Tweets by @hypeapp</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="http://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<script type="text/javascript" src="AppleClasses/AppleWidget.js"> </script>
<script>
function myCallback(hypeDocument, element, event) {
function widgetIsReady() {
widget.notifyContentIsReady();
}
@themorgantown
themorgantown / Info.plist
Created January 19, 2013 01:31
For iBooks author -- if the widget's html file is index.wdgt.html
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AllowNetworkAccess</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>WooGrit23</string>
<script type = "text/javascript">
// make sure the browser does not do any scrolling (avoids iOS6 timer bug)
document.ontouchmove = function(event) {
event.preventDefault();
}
function documentLoaded(hypeDocument, element, event) {
var documentName = hypeDocument.documentName();
var mainContainerID = "#" + documentName + "_hype_container";
// This Javascript gets the current hour of day,
// and sets a timeline based on that hour.
var d = new Date();
var time = d.getHours();
if (time < 12)
{
hypeDocument.startTimelineNamed('Nine');
}
@themorgantown
themorgantown / htaccess.txt
Last active June 23, 2023 03:14
This htacess file resolves issues often encountered when loading Tumult Hype documents from Apache servers. ### Using this File ###This file needs to be renamed to .htaccess after uploading to your web server. If should be uploaded in the directory containing your files.
# File adapted from: https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess
# ------------------------------------------------------------------------------
# | File Types |
# ------------------------------------------------------------------------------
# Allow access from all domains for web fonts
<IfModule mod_headers.c>
<FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
@themorgantown
themorgantown / widget.html
Created February 25, 2013 22:22
Flowplayer - Flow Player Video Demo, suitable for embedding within an HTML Widget. Example document: http://cl.ly/160l1R2e1r0j
<!doctype html>
<head>
<!-- player skin -->
<link rel="stylesheet" type="text/css" href="${resourcesFolderName}/minimalist.css" />
<!-- site specific styling -->
<style>
body { font: 12px "Myriad Pro", "Lucida Grande", sans-serif; text-align: center; padding-top: 5%; }
@themorgantown
themorgantown / web.config
Created February 28, 2013 23:06
Web.config sample for HTML5 support. This can be replaced with the current content of a web.config file in IIS environments.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
</configSections>
<connectionStrings />
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
@themorgantown
themorgantown / fingerpaiting.html
Created March 11, 2013 21:03
Fingerpainting example embedded in Tumult Hype. File here: http://cl.ly/0a0d1Y0m360p
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Finger Painting</title>
<script src="${resourcesFolderName}/modernizr-1.6.min.js"></script>
<script src="${resourcesFolderName}/finger_painting.js"></script>
</head>
<body>
<div>