Reduced test case for creating and disposing of video.js players in a (colorbox) overlay box.
A Pen by Andrew Patton on CodePen.
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:
// Take an array of meeting time ranges and return an array of condensed ranges | |
// https://www.interviewcake.com/question/merging-ranges | |
function condense_meeting_times(times) { | |
let timeline = []; | |
times.forEach((time) => { | |
//time[0], time[1] | |
// time is a tuple witih beginning and end | |
if (timeline[time[0]] === undefined) { | |
timeline[time[0]] = time[1]; |
# 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 | |
*/ |
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) { |
(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) { |