Skip to content

Instantly share code, notes, and snippets.

View mraichelson's full-sized avatar
💻
clickety clackety...

Michael Raichelson mraichelson

💻
clickety clackety...
View GitHub Profile
<script type="text/javascript">
function doSomething(url){
window.open(url,"width=300,height=300");
return false;
}
</script>
...
<a href="foo.html" onclick="do_something(this.href);">go somewhere</a>
// find embedded links to other tabs and trigger tab behavior when they are clicked.
$j('div.tabContent a').each(function(i){
var theLinkUrl = $j(this).attr('href');
// if the link contains an #
if(theLinkUrl.indexOf('#') != -1){
// check if the # is on the same page (blank in !IE, doc.location in IE)
if( theLinkUrl.split('#')[0] == '' || theLinkUrl.split('#')[0] == document.location ){
// when clicking the link, trigger the link in ul.tabs that links to the same ID
$j(this).bind(
'click',
// initialize slideshows
$j('div.module div.slideshow').each(function(i){
var theSS = 'slideShowMod'+i;
$j(this).attr('id',theSS);
var config = {
fx:'scrollHorz', // animation effect
speed:IIE.vars.animspeed,
timeout:0,
pager:'#'+theSS+' div.ctrl span.slides',
next:'#'+theSS+' a.next',
/**
* CLIENT-NAME.COM CSS Styles
* The layout for the site depends on the 960 Grid System
*
* @author MRaichelson
* @link http://www.navigationarts.com/
* @see http://www.960.gs/
* @media screen, projection
*/
/* !Imports : Open Source */
// find embedded links to other tabs and trigger tab behavior when they are clicked.
$j('div.tabContent a').each(function(i){
var theLinkUrl = $j(this).attr('href');
if(theLinkUrl.indexOf('#') != -1){
if( theLinkUrl.split('#')[0] == '' || theLinkUrl.split('#')[0] == document.location ){
$j(this).bind(
'click',
function(){
if($j('ul.tabs a[href="#'+theLinkUrl.split('#')[1]+'"]').size()>0){
$j('ul.tabs>li a[href="#'+theLinkUrl.split('#')[1]+'"]').trigger('click');
<!-- BEFORE: -->
<div class="tabbed">
<!-- AFTER: -->
<div class="tabbed clearfix">
<!-- OUR PROJECTS -->
<div class="grid_12 clearfix" id="mapFilters">
<div class="grid_12 alpha omega">
<div class="collapseWrap"><a href="#">Collapse map</a></div>
<div class="filterWrap">
<strong>Explore Our Projects By:</strong>
(Select One)
<br />
<!-- [select pulldown here] -->
<span class="divider"></span>
//
// Answers.m
// Answers
//
// Created by Michael Raichelson on 7/21/10.
// Copyright 2010 Pixis Creative. All rights reserved.
//
#import "Answers.h"
##
# THIS IS STILL VERY MUCH A WORK IN PROGRESS -Mike
#
# A Varnish reverse-proxy cache config file meant to hold long-expires copies of
# essentially static content from a Drupal install. The idea being that
# this cache prevents direct access to the Drupal install itself to prevent
# hacking and intrusion attempts.
#
# References:
#