Skip to content

Instantly share code, notes, and snippets.

@geomaedr
geomaedr / footer.html
Created March 22, 2023 22:02
templates/partials/footer.html Update for POWER V28
@geomaedr
geomaedr / base.html
Last active March 22, 2023 22:03
templates/layouts/base.html Update for POWER V28
<!--
templateType: "none"
isAvailableForNewContent: false
-->
{% import './base_font.html' as base_font %}
{% import './base_pwr.html' as base_pwr %}
<!doctype html>
<html lang="{{ html_lang }}" {{ html_lang_dir }}>
<head>
@geomaedr
geomaedr / lazyload_iframe.html
Created March 22, 2023 21:24
Lazyloading iFrames Example
<iframe class="lazyload" data-src="path/to/content"></iframe>
@geomaedr
geomaedr / base.html
Last active December 7, 2022 22:24
base.html Update for POWER V26
<!--
templateType: "none"
isAvailableForNewContent: false
-->
{% import './base_font.html' as base_font %}
{% import './base_pwr.html' as base_pwr %}
<!doctype html>
<html lang="{{ html_lang }}" {{ html_lang_dir }}>
<head>
@geomaedr
geomaedr / rAF.js
Last active August 29, 2015 14:09 — forked from paulirish/rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@geomaedr
geomaedr / Gruntfile.js
Last active August 29, 2015 14:07 — forked from markgoodyear/01-gulpfile.js
gruntfile.js
/*!
* Grunt
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev
*/
module.exports = function(grunt) {
grunt.initConfig({
// Sass
@geomaedr
geomaedr / gulpfile.js
Last active August 29, 2015 14:07 — forked from markgoodyear/01-gulpfile.js
gulpfile.js
/*!
* gulp
* $ npm install gulp-ruby-sass gulp-autoprefixer gulp-minify-css gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del --save-dev
*/
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
@geomaedr
geomaedr / gist:1926562ab9b051552a4c
Last active August 29, 2015 14:04 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}