Skip to content

Instantly share code, notes, and snippets.

View stirlinghewitt's full-sized avatar

stirlinghewitt

View GitHub Profile
@stirlinghewitt
stirlinghewitt / the html
Created October 11, 2012 20:35
querie bitches
Ok here is the js:
var currentSlide = 0;
var sportsconfig = {
over: function () { $('#sports-subnav').toggle(); },
timeout: 300, // number = milliseconds delay before onMouseOut
out: function () { $('#sports-subnav').toggle(); } // function = onMouseOut callback (REQUIRED)
};
var concertconfig = {
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="/content/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/content/js/jquery.autocomplete.min.js"></script>
<script type="text/javascript" src="/content/js/template.js"></script>
<script type="text/javascript" src="/content/js/event_ajax.js"></script>
<link href="/content/styles/main.css" type="text/css" rel="stylesheet">
{literal}
<script>
$(document).ready(function(){
$('.changeloc').click(function() {
$('#geoloc').toggle();
});
});
</script>
{/literal}
<div id="geoip-container"> {dynamic}
@stirlinghewitt
stirlinghewitt / exampleMarkup.html
Created October 25, 2012 21:05
dead simple js tabs
<div id="tabMenu">
<ul class="tabs">
<li id="mainSeats"><a href="#mainSeatsContent">1</a></li>
<li id="125"><a href="#125Content">1</a></li>
<li id="delivery"><a href="#deliveryContent">1</a></li>
<li id="tickets"><a href="#ticketsContent">1</a></li>
<li id="pricesFees"><a href="#pricesFeesContent">1</a></li>
<li id="other"><a href="#otherContent">1</a></li>
</ul>
<ul class="tabs-content">
@stirlinghewitt
stirlinghewitt / Asset.txt
Created May 22, 2015 17:01
Static Event Lists for TN and TE
ON TE IT IS {load_events City="New York"}
{load_events RecurseCategoryID=
Sports = 1, Concerts=54, Theatre=68
Braves vs Mets:
{atbs_static_event_list Keywords='Braves,Mets' include_js=true}
Braves vs Mets only at Turner Field:
{atbs_static_event_list Keywords='Braves,Mets' Venue='Turner Field' include_js=true}
Braves home games:
@stirlinghewitt
stirlinghewitt / Asset.txt
Created July 31, 2015 15:23
instructions for go live
ADMIN PANEL MESSAGE
-------------------
Hi %filltext:name=Name%,
I have created your sites control panel access for your login
UNTIL your site is live, you can login to your control panel at:
%filltext:name=sitename%/admin
ONCE your site is live, remove the dev domain part .atbspreview so you will login at:
<span id="siteseal"><script type="text/javascript" src="https://seal.starfieldtech.com/getSeal?sealID=adbDK1h6FliicTeoAu5mYonDQXBLKowRnhDnyZzoj2IkoNINuhOo5QleMp3q"></script></span>
@stirlinghewitt
stirlinghewitt / Asset.txt
Created February 19, 2016 23:35
top performer geoip list
{atbs_geoip lookup=location location=geoip}
{atbs_geoip lookup=events ParentCategoryID=2 max=100 location=geoip assign=geolist}
<div id="geoip">
<table style="width:100%;" cellspacing="1" cellpadding="1" id="geoip">
{foreach from=$geolist key=k item=geo}
{atbs_top_for_category ParentCategoryID=2 limit=200 assign=toplist}
{foreach from=$toplist key=k item=top}
{if $geo.Event == $top.Performer }
<tr class="{cycle values="geoodd,geoeven"}">
<td class="geoEvent"><a href="/{$geo.URL}">{$geo.Event} Tickets</a></td>
@stirlinghewitt
stirlinghewitt / Fye Nav HTML-Smarty.txt
Created February 26, 2016 21:23
Fye Nav HTML/Smarty
<div id="nav">
<ul id="menu">
<li class="menuitem" id="homeLink"><a class="menulink" href="/">HOME</a></li>
{atbslist list="Main Menu" assign=hec}
{section name=id loop=$hec}
<li {if $smarty.server.REDIRECT_URL == $hec[id].URL || $smarty.server.REQUEST_URI == $hec[id].URL} class="menuitem current"{else} class="menuitem" {/if}>
<a class="menulink" href="{$hec[id].URL}">{$hec[id].Name}</a>
{if !empty($hec[id].Description)} <div class="submenu" id="subitem{$smarty.section.id.index}">{$hec[id].Description}</div> {/if}
</li>
{/section}
@stirlinghewitt
stirlinghewitt / fye nav CSS with floating header code.txt
Created February 26, 2016 21:23
fye nav CSS with floating header code
/* @group Nav */
#navBack {
background: rgb(13,156,65); /* Old browsers */
background: -moz-linear-gradient(top, rgba(13,156,65,1) 0%, rgba(0,119,53,1) 60%, rgba(0,79,39,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(13,156,65,1)), color-stop(60%,rgba(0,119,53,1)), color-stop(100%,rgba(0,79,39,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(13,156,65,1) 0%,rgba(0,119,53,1) 60%,rgba(0,79,39,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(13,156,65,1) 0%,rgba(0,119,53,1) 60%,rgba(0,79,39,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(13,156,65,1) 0%,rgba(0,119,53,1) 60%,rgba(0,79,39,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(13,156,65,1) 0%,rgba(0,119,53,1) 60%,rgba(0,79,39,1) 100%); /* W3C */
-pie-background: linear-gradient(top, rgba(13,156,65,1) 0%,rgba(0,119,53,1) 60%,rgba(0,79,39,1) 100%); /* IE10+ */