Skip to content

Instantly share code, notes, and snippets.

@jsuar
jsuar / d3 Packing Example
Created February 1, 2013 17:01
d3 packing example with squares and text.
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<style>
circle, rect {
stroke: #000;
fill-opacity: .1;
}
if ( !post_password_required() ) {
// Display your product
} else {
echo get_the_password_form();
}
// via https://wordpress.org/support/topic/protect-a-product-by-password
function password_visibility(){
$post = get_post();