Skip to content

Instantly share code, notes, and snippets.

@timlindvall
timlindvall / ast.json
Created December 18, 2018 21:28
Outputted AST
{
"type": "Program",
"body": [
{
"type": "MustacheStatement",
"path": {
"type": "PathExpression",
"original": "content-for",
"this": false,
"parts": [
@timlindvall
timlindvall / test.html
Created February 7, 2015 02:35
Sample code to try and reproduce Issue #135
<html>
<head>
<title>Test for issue 135</title>
<link href="../dist/css/hopscotch.min.css" rel="stylesheet"></link>
<link href="teststyles.css" rel="stylesheet"></link>
</head>
<body>
<div id="header">
<h1>Test Issue 135 - Negative margin</h1>
<ul class="nav">
@timlindvall
timlindvall / gist:3dbac8f8a035bd6fe8d4
Created July 17, 2014 21:36
Hopscotch Plugins proposal

Hopscotch Plugins

Purpose

Tour and step callbacks work well for individual tour or step cases, but we'd like to provide a means by which developers and integrators can hook in additional functionality into Hopscotch without adding code or config bloat to the core library.

Good examples of functionality that could leverage a plugin API:

  • PR #76: Add a modal box that highlights what the current step points to.
  • PR #104: Additional event handlers for tours.
@timlindvall
timlindvall / test.hopscotch.js
Last active August 29, 2015 14:02
Hopscotch possible unit test for PR #89
//Starting at line 625
it('Should recover gracefully from loss of sessionStorage', function(){
if(!hasSessionStorage){ return; }
hopscotch.startTour({
id: 'hopscotch-test-tour-sessionStorage',
steps: [
{
target: 'shopping-list',
orientation: 'left',
title: 'Shopping List',