Same as the sans jQuery version from which it was forked but with jQuery.
A Pen by Andrew Patton on CodePen.
# Copyright (C) 2010 Shopp | |
# This file is distributed under the same license as the Shopp package. | |
msgid "" | |
msgstr "" | |
"Project-Id-Version: Shopp 1.2dev\n" | |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/shopp\n" | |
"POT-Creation-Date: 2011-06-01 16:14:53+00:00\n" | |
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n" | |
"MIME-Version: 1.0\n" | |
"Content-Type: text/plain; charset=UTF-8\n" |
<?php | |
/** | |
* Filter TinyMCE wysiwig editor to include custom button | |
* | |
* @since MyTheme 1.0 | |
* | |
* @param $buttons TinyMCE button array | |
* @return $buttons TinyMCE button array | |
*/ |
(function(doc) { | |
// Add touch device support for dropdown menu | |
if (('addEventListener' in doc) && ('querySelectorAll' in doc) && (('ontouchstart' in window) || ('onmsgesturechange' in window))) { | |
var menu_item_selector = '.the-menu > div > ul > li', | |
menu_items = doc.querySelectorAll(menu_item_selector), | |
touchStart; | |
// Set up touch start handler | |
touchStart = function() { | |
if (this.className.indexOf(' tapped') > -1) { |
Same as the sans jQuery version from which it was forked but with jQuery.
A Pen by Andrew Patton on CodePen.
hljs.initHighlightingOnLoad(); | |
var WpDebugBar = { | |
element: ['globals', 'profiler', 'database', 'errors'], | |
open: null, | |
switchPanel: function(open) { |
/** | |
* Google analytics include (using "Universal Analytics") | |
* https://gist.github.com/acusti/8718758 | |
*/ | |
/*global define */ | |
define(function(require) { | |
'use strict'; | |
Reduced test case for creating and disposing of video.js players in a (colorbox) overlay box.
A Pen by Andrew Patton on CodePen.
Supporting pen to illustrate ideas from my post of the same name.
UPDATE: I tweaked the styles and optimized for display density, and added functionality to switch between serif and sans-serif font families.
A Pen by Andrew Patton on CodePen.
Building a script to overlay some options, then send current pen’s debug URL to WebPageTest.
Todo: