Skip to content

Instantly share code, notes, and snippets.

View zurie's full-sized avatar
💭
I may be slow to respond.

Zurie zurie

💭
I may be slow to respond.
View GitHub Profile
/**
* Equal Heights Plugin
* Equalize the heights of elements. Great for columns or any elements
* that need to be the same size (floats, etc).
*
* Version 1.0
* Updated 12/10/2008
*
* Copyright (c) 2008 Rob Glazebrook (cssnewbie.com)
*
$(document).ready(function(){
$("a.switch_thumb").toggle(function(){
$(this).addClass("swap");
$("ul.display").fadeOut("fast", function() {
$(this).fadeIn("fast").addClass("thumb_view");
});
}, function () {
$(this).removeClass("swap");
$("ul.display").fadeOut("fast", function() {
[[!IfNotInList? &list=`48,51,52,53` &show=`<p>whatever I want</p>`]]
/* IfNotInList - Exclude Resources based on ID */
[[!IfNotInList? &list=`48,51,52,53` &show=`<p>whatever I want</p>`]]
/* THE SNIPPET FOR MODX */
<?php
/* IfNotInList snippet */
/* phpthumbof image */
[[+tv.mainImage:default=`images/news-blank.gif`:phpthumbof=`w=380&h=165&zc=1`]]
/* Date Formatting */
[[+publishedon:strtotime:date=`%a %b %e, %Y`]]
.NetworkBar
{
height: 55px;
position: fixed;
width: 100%;
background-position: 0 0;
z-index: 99999;
top: 0;
-webkit-animation: dropin .8s ease;
-moz-animation: dropin .8s ease;
$(document).ready(function() {
//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabbed-content li:first").addClass("active").show(); //Activate first tab
$(".tab_content:first").show(); //Show first tab content
//On Click Event
$("ul.tabbed-content li").click(function() {
/* Tabbed Box */
.tabContainer {
display:block;
margin:0;
padding:0;
}
.tabDesc {
display:block;
margin:0;
padding:10px 10px 0 10px;
[[!getResources? &parents=`2` &tpl=`thumbnail` &includeContent=`1` &showUnpublished=`1` &showHidden=`1` &processTVs=`1` &includeTVs=`1` &tvPrefix=`` &sortdir=`ASC` &sortby=`[[!getResourcesTree? &parents=`2`]]` &limit=`0` &depth=`0`]]