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
/* Tabbed Box */
.tabContainer {
display:block;
margin:0;
padding:0;
}
.tabDesc {
display:block;
margin:0;
padding:10px 10px 0 10px;
$(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() {
.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;
/* Date Formatting */
[[+publishedon:strtotime:date=`%a %b %e, %Y`]]
/* phpthumbof image */
[[+tv.mainImage:default=`images/news-blank.gif`:phpthumbof=`w=380&h=165&zc=1`]]
/* 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 */
[[!IfNotInList? &list=`48,51,52,53` &show=`<p>whatever I want</p>`]]
$(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() {
/**
* 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)
*
$('li')
.hover(function(event) {
$(this)[ (event.type == 'mouseenter') ? 'add' : 'remove') + 'Class' ]('test');
});