This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Add to Homescreen</title> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-title" content="Test name 2"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://codepen.io/Ferie/pen/vQOMmO | |
function is_touch_device() { | |
var prefixes = ' -webkit- -moz- -o- -ms- '.split(' '); | |
var mq = function(query) { | |
return window.matchMedia(query).matches; | |
} | |
if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jQuery hasClass() | |
$('sel').hasClass('classname'); | |
/** | |
* Translating className properties from jQuery to plain JS v1.0 | |
* Created by Christopher Leonard (https://www.atseadesign.com) | |
* Copyright 2018 Christopher Leonard | |
* Licensed under GNU (https://opensource.org/licenses/GPL-3.0) | |
* | |
* Browser support: <https://caniuse.com/#search=classList> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* SOCIAL SHARING TOOL BAR ARIA | |
* @type {[type]} | |
* @see https://dequeuniversity.com/library/aria/content-feedback/sf-social-toolbar | |
*/ | |
var $toolbar = $('#social-toolbar'); | |
var $items = $toolbar.find('li'); | |
$toolbar.on('keydown', '.button', function (e) { | |
var which = e.which; | |
var target = e.target; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Original located at https://github.com/pantheon-systems/pantheon-settings-examples/blob/master/wordpress/wp-debug-expanded.wp-config.php | |
// ASD gist https://gist.github.com/atsea/f14478bd6bf8bf6c83f32a03986f4e7f | |
// All Pantheon Environments. | |
if (defined('PANTHEON_ENVIRONMENT')) { | |
//Wordpress debug settings in development environments. | |
if (!in_array(PANTHEON_ENVIRONMENT, array('test', 'live'))) { | |
// Debugging enabled. | |
if (!defined( 'WP_DEBUG' )) { | |
define( 'WP_DEBUG', true ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JSON-D SCRIPT LOADING | |
// @see https://www.html5rocks.com/en/tutorials/speed/script-loading/ | |
<link rel="subresource" href="//www.timothysofnewark.com/blog/js/tims-jsond.js"> | |
<script type="text/javascript"> | |
document.documentElement.className = 'js'; | |
var scripts = [ | |
'tims-jsond.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* PASS TITLE TO ANOTHER PAGE | |
* | |
* Saves title text from form via localStorage to display on success page. | |
* @type {Object} | |
*/ | |
var m={title:$('.udel--title h1').text()}; | |
localStorage.setItem('udel_frm_title', JSON.stringify(m)); | |
//GET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CHECKBOX GROUP | |
* | |
* Uses .get().join() methods to group values together in email receipt. | |
* @return array | |
*/ | |
function Populate(){ | |
var cbArray = []; | |
vals = $('#cb_type_id input[type="checkbox"]:checked').map(function() { | |
return this.value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$('select[name=problem]').on('change',function() { | |
switch (true) { | |
case $(this).val() == 'Other': | |
$('input:hidden[name=type]').val('Research'); | |
break; | |
case $(this).val() == 'Programming Assistance': | |
$('input:hidden[name=type]').val('Research'); | |
$('input:hidden[name=subtype]').val('Programming Assistance'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link rel="stylesheet" href="https://github.com/jgthms/bulma/blob/master/css/bulma.css" type="text/css" media="screen"> | |
</head> | |
<body> | |
<section class="section"> | |
<div class="container"> | |
<form method="post" action="" id="ud_fdp_form" name="ud_fdp_form"> | |
<div class="field"> |
NewerOlder