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
Barba.Dispatcher.on('newPageReady', function(currentStatus, oldStatus, container, newPageRawHTML) { | |
// html head parser borrowed from jquery pjax | |
var $newPageHead = $( '<head />' ).html( | |
$.parseHTML( | |
newPageRawHTML.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0] | |
, document | |
, true | |
) | |
); | |
var headTags = [ |
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
/// Helper for EQCSS Element Queries `@element` | |
/// | |
/// @author Jason Featheringham | |
/// @link https://gist.github.com/thejase/d2107285b6e10315dd6bc055115647fe Code source | |
/// @link http://elementqueries.com/ Plugin to parse EQCSS | |
/// @link https://gist.github.com/tomhodgins/6237039fa07c2e4b7acd1c8b0f9549a9 EQCSS syntax | |
/// | |
/// @param {String} $scope (&) - Optional scope. Defaults to current context | |
/// @param {List} $conditions (()) - 1+ of Maps of EQCSS conditions | |
/// @content rules to enclose in element query |
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
<form action="." method="post"> | |
<noscript>You must <a href="http://www.enable-javascript.com" target="_blank">enable JavaScript</a> in your web browser in order to pay via Stripe.</noscript> | |
<input | |
type="submit" | |
value="Pay with Card" | |
data-key="PUBLISHABLE STRIPE KEY" | |
data-amount="500" | |
data-currency="cad" | |
data-name="Example Company Inc" |