Skip to content

Instantly share code, notes, and snippets.

View jansepar's full-sized avatar

Shawn Jansepar jansepar

View GitHub Profile
@jansepar
jansepar / newslider.js
Created July 19, 2012 17:30
New slider
var Mobify = window.Mobify = window.Mobify || {};
$ = Mobify.$ = $ || Mobify.$ || window.Zepto || jQuery;
Mobify.UI = Mobify.UI || {};
(function($, document) {
$.support = $.support || {};
$.extend($.support, {
'touch': 'ontouchend' in document
@jansepar
jansepar / gist:7375182
Created November 8, 2013 18:13
Minimal testcase that causes anchor tags to behave in non-standard ways in Firefox when recreating the document using document.open/document.write.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Link href minimal testcase</title>
</head>
<body class="foo">
<script>
setTimeout(function(){
document.open();
document.write('<html><head></head><body><a href="#">Click me! I should\'t cause a reload...</a></body></html>');