Skip to content

Instantly share code, notes, and snippets.

View DESIGNfromWITHIN's full-sized avatar

Menno Pietersen DESIGNfromWITHIN

View GitHub Profile
@DESIGNfromWITHIN
DESIGNfromWITHIN / index.html
Created October 29, 2012 10:09
A CodePen by Menno Pietersen.
<div id="responsive_div">
<h1>This is a responsive div</h1>
</div>
@DESIGNfromWITHIN
DESIGNfromWITHIN / optimized.html
Created September 18, 2012 19:22 — forked from opengeek/optimized.html
Example of optimizing conditional filters using a Chunk wrapper
[[[[*page-image:notempty=`$wrapImgThumb? &src=`*page-image` &alt=`[[*pagetitle]]` &thumbOpts=`w=480&h=320``]]]]
$.fn.setAllToMaxHeight = function(){
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) );
}
// usage: $(‘div.unevenheights’).setAllToMaxHeight();
@DESIGNfromWITHIN
DESIGNfromWITHIN / index.html
Created July 5, 2012 14:42
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Nice CTA button without images &middot; CodePen</title>
<style>