Skip to content

Instantly share code, notes, and snippets.

View joshcoast's full-sized avatar
:octocat:
yep

Josh Coast joshcoast

:octocat:
yep
View GitHub Profile
@joshcoast
joshcoast / gist:7125899
Created October 23, 2013 20:15
player.html
<!DOCTYPE html>
<html ng-app="r360">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>MadGeniusRadio Beta</title>
<meta name="description" content="">
@joshcoast
joshcoast / HTML-Meta.html
Created August 19, 2014 20:48
MODX Meta Tags
[[if?
&subject=`[[*titleTag]]`
&operator=`!empty`
&then=`<title>[[*titleTag]]</title>`
&else=`<title>[[*pagetitle]], [[++site_name]]</title>`
]]
[[if?
&subject=`[[*descriptionTag]]`
@joshcoast
joshcoast / drupal-behaviors
Created August 23, 2014 14:52
So, what's the Drupal.behaviors doing?
Drupal.behaviors.addActiveClassToParentMenuIfSubnavPresent = {
attach: function (context, settings) {
$("#block-menu-block-1").each(function(){$("a[href='/products-equipment']").addClass("active").parent().addClass("active");});
}
};