Skip to content

Instantly share code, notes, and snippets.

var accelFilter = function ( x, y, z ) {
//ramp-speed - play with this value until satisfied (value is a float number)
var kFilteringFactor = 0.1,
//last result storage - keep definition outside of this function, eg. in wrapping object (values are floats)
accel[3],
highPassFilter = function () {
//acceleration.x,.y,.z is the input from the sensor
var customButtonsCreated = false,
addInfoLinks = function () {
"use strict";
};
$(document).ajaxComplete(function (event, xhr, settings) {
"use strict";
console.log("document.ajaxComplete has fired: " + event + "; " + xhr + "; " + settings.url)
// If the main XMLHttpRequest has completed, update the window.
.top-bar-section .right {
display: none;
}
#main .live-prayer {
height: 0;
padding: 0;
overflow: visible;
border: none;
box-shadow: none;
/*properties
addClass, after, ajaxComplete, appendTo, attr, children, css, filter, find,
first, prev, remove, removeAttr, removeClass, test, url
*/
var customButtonsCreated = false,
// Douglas Crockford's short method for determining object types.
typeOf = function (value) {
"use strict";
var s = typeof value;

JQuery PanZoom - Custom controls

This is a test implementation of the JQuery PanZoom plugin. The idea is to have SVG floor plans that can be cleanly scaled and panned.

This version does not have the slider zoom-indicator.

A Pen by KurtWM on CodePen.

License.

@KurtWM
KurtWM / JF-Home-Page-Controls.markdown
Created September 18, 2013 17:37
A Pen by KurtWM.
@KurtWM
KurtWM / index.html
Created September 17, 2013 13:28
A Pen by KurtWM.
<div id="container">
<img id="polar-bear-image" src="http://www.johnsonferry.org/portals/0/assets/newsevents/images/polarBearRunners_transpLeft_tinypng.png" alt="Polar Bear Run 2014" style="display: none;" />
<h3>Header Goes Here</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas laoreet orci vel dui luctus accumsan. Fusce malesuada tristique orci, sit amet luctus neque placerat et. Aliquam consequat tellus auctor massa auctor, vel condimentum elit congue.</p>
<img id="polar-bear-image" class="sample" src="http://www.johnsonferry.org/portals/0/assets/newsevents/images/polarBearRunners_transpLeft_tinypng.png" />
<p><strong>Here is the actual PNG image used in the loop. The left side provides transparency to allow the image to seamlessly overlap itself. </strong></p>
</div>
@KurtWM
KurtWM / index.html
Created August 16, 2013 18:37
A CodePen by KurtWM. JQuery PanZoom plugin with JF floor plan
<div id="msg"><span id="wheeldelta"></span><span id="panzoompan"></span></div>
<section id="panzoom-parent">
<div class="panzoom">
<img class="element" src="http://www.johnsonferry.org/portals/0/assets/common/images/JohnsonFerry_floorPlan_drawing_0.svg" />
</div>
</section>
<section class="buttons">
<button class="zoom-in">Zoom In</button>
<button class="zoom-out">Zoom Out</button>
<input type="range" class="zoom-range" min="1" max="5" step="0.05"/>
@KurtWM
KurtWM / dabblet.css
Created June 12, 2013 14:03 — forked from chriscoyier/dabblet.css
Untitled
body {
font-family: sans-serif;
}
ul {
list-style: none
}
li {
background: slategrey;
@KurtWM
KurtWM / Rich Snippet - Event | Example
Last active December 11, 2015 02:28
An example of Rich Snippet, taken from Google Webmaster Tools (https://support.google.com/webmasters/bin/answer.py?hl=en&answer=164506) Here's how this sample works: On the first line, <itemscope itemtype="http://data-vocabulary.org/Event"> indicates that the HTML enclosed in the <div> represents an Event. itemscope indicates that the content of…
<div itemscope itemtype="http://data-vocabulary.org/Event">
​<a href="http://www.example.com/events/spinaltap" itemprop="url" >
<span itemprop="summary">Spinal Tap</span>
</a>
<img itemprop="photo" src="spinal_tap.jpg" />
<span itemprop="description">After their highly-publicized search for a new drummer,
Spinal Tap kicks off their latest comeback tour with a San
Francisco show.</span>