// jQuery
$(document).ready(function() {
// code
})
This file contains hidden or 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
<div class="geo-card weather"> | |
<p class="report" id="weatherReport"></p> | |
<div class="image"> | |
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWQAAAFuCAYAAAC2gGJGAAAgAElEQVR4nOy9WZskx3EteMzcIyIza+tGryCxi4Sgq0vOULqSZubpzv/XkzQj6SNFUiJBESRIAN21ZEaEm9k8mHlEVHX1hoXs+00YWejurMzIWNyPHzu2OLDaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222mqrrbbaaqutttpqq6222p/Z6M99Ai+yf/zHfwQz4+zsDPfv38fx8TH6vsdvfvMb/PznP8fTp08BACklEF2/FDO79ufN36kqSinIOePBgwf45JNP8ODBAwxjwdOn5zg/f4q+HwAY6qHVFCICGNA2DU5PT3F8fITdbothGPDLX/wCv/j5z3F5foGmaZCaBgbADLDFcYjo+p0nwNSg6n+KKIgY77//Lv7mJ3+DzXaDq8MVfv/5H3H+9BzjWADz81cVnJyd4eGjRzg7OYGK4tNPf4t/+Zd/xa9//Z/Y769wfHSEu3fvpKOjXSZCLqUkguXcpMSJkogkVc2ZMx9td2m32SQz48u |
This file contains hidden or 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
var items = Array.prototype.slice.call( | |
document.querySelectorAll('*') | |
).map(function(element) { | |
var listeners = getEventListeners(element); | |
return { | |
element: element, | |
listeners: Object.keys(listeners).map(function(k) { | |
return { event: k, listeners: listeners[k] }; | |
}) | |
}; |
This file contains hidden or 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
// Check that jQuery is | |
// loaded with an upper limit | |
// for the number of calls. | |
function checkjQuery(upper) { | |
if (typeof jQuery != 'undefined') { | |
jQuery(document).ready(function () { | |
// jQuery dependant function | |
}); | |
} else { |
This file contains hidden or 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 getGeocodingRegion() { | |
return PropertiesService.getDocumentProperties().getProperty('GEOCODING_REGION') || 'au'; | |
} | |
function addressToPosition() { | |
// Select a cell with an address and two blank spaces after it | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var cells = sheet.getActiveRange(); | |
var addressColumn = 1; |
This file contains hidden or 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 | |
/** | |
* Gravity Forms Shuffle fields on current page. | |
* To impliment add this to your functions.php file | |
* adding the form id will isolate the filter e.g. add_filter( 'gform_pre_render_5', 'randomize_field_order'); | |
*/ | |
add_filter( 'gform_pre_render', 'randomize_field_order'); |
This file contains hidden or 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
// This function will return css text of a supplied css selector (must match exactly) or | |
// it will return the property defined in the second argument. Properties are individual | |
// properties not combined properties. | |
// | |
// propertyFromStylesheet('some selector', 'some property'); | |
// | |
// modified from http://stackoverflow.com/a/16779622 |