Skip to content

Instantly share code, notes, and snippets.

@KurtWM
KurtWM / PromotionsViaXSLT.ascx
Created August 21, 2012 15:46 — forked from bzerangue/PromotionsViaXSLT.ascx
Displays Promotions via the configured XSLT
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PromotionsViaXSLT.ascx.cs" Inherits="ArenaWeb.UserControls.Custom.Cccev.Web2.PromotionsViaXSLT" %>
<%@ Register TagPrefix="Arena" Namespace="Arena.Portal.UI" Assembly="Arena.Portal.UI" %>
<asp:ScriptManagerProxy ID="smpScripts" runat="server" />
<Arena:XmlTransform id="xmlTransform" runat="server"></Arena:XmlTransform>
@KurtWM
KurtWM / dabblet.css
Created November 16, 2012 15:14
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@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>
@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 / 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 / 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 / JF-Home-Page-Controls.markdown
Created September 18, 2013 17:37
A Pen by KurtWM.

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.

/*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;
.top-bar-section .right {
display: none;
}
#main .live-prayer {
height: 0;
padding: 0;
overflow: visible;
border: none;
box-shadow: none;