Skip to content

Instantly share code, notes, and snippets.

View stirlinghewitt's full-sized avatar

stirlinghewitt

View GitHub Profile
@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">
{literal}
<script>
$(document).ready(function(){
$('.changeloc').click(function() {
$('#geoloc').toggle();
});
});
</script>
{/literal}
<div id="geoip-container"> {dynamic}
<!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">
@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 = {