Skip to content

Instantly share code, notes, and snippets.

View adardesign's full-sized avatar
🎯
Focusing

Eliazer Braun adardesign

🎯
Focusing
View GitHub Profile
@adardesign
adardesign / gist:457396
Created June 29, 2010 15:50
Fix IE7 z-index bug fix, depencies:jquery
$(function() {
var zIndexNumber = 1000;
if ($.browser.msie && $.browser.version < 8){
$('div').each(function() {
if($(this).css("position") =="relative" || $(this).css("position") =="absolute" ){
$(this).css('zIndex', zIndexNumber);
zIndexNumber -= 10;
}
});
}
<div id="map"></div>
<div id="map-side-bar">
<div class="map-location" data="{id: 1, point: {lng: -122.2678847, lat: 37.8574888}, category: 'market'}">
<a href="#" class="map-link">Berkeley Bowl</a>
<div class="info-box">
<p>A great place to get all your groceries, especially fresh fruits and vegetables.</p>
</div>
</div>
<div class="map-location" data="{id: 2, point: {lng: -122.4391131, lat: 37.7729943}, category: 'restaurant'}">
// hoverTip, Version 2.1
// Copyright (c) April 12, 2010 adardesign.com
// hoverTip is freely distributable under the terms of an MIT-style license
// This means you are free to use the code, but please leave this copyright notice intact
// everything inside the "defaults" is configurable.
// Code passes jsLint.com Code Quality Tool!!! (with some common jQuery errors!).
//Cleaned up alot.......
//changing to delegate.....
//http://jsfiddle.net/adardesign/8uUMH/
(function ($) {
// bannerSlider, Version 1
// Copyright (c) July 30, 2011 adardesign.com
// bannerSlider is freely distributable under the terms of an MIT-style license
// This means you are free to use the code, but please leave this copyright notice intact
// Added relToSrc performance....
(function ($) {
$.fn.bannerSlider = function (options) {
var defaults = {
buildNav: function (count) {
var i = 0,
@adardesign
adardesign / bannerSlider 2
Created July 6, 2011 14:25
bannerSlider with more options
// bannerSlider, Version 1
// Copyright (c) July 30, 2011 adardesign.com
// bannerSlider is freely distributable under the terms of an MIT-style license
// This means you are free to use the code, but please leave this copyright notice intact
// Added relToSrc performance....
(function ($) {
$.fn.bannerSlider = function (options) {
var defaults = {
buildNav: function (count) {
var i = 0,
@adardesign
adardesign / Lpnotifications.js
Created August 2, 2011 14:30
Lp notifications
var LPnotifications = {
defaults: {
location: {
top: 0,
left: 0
},
centerTop: true,
autoFadeOut: true,
fadesAfter: 5000,
fadeInSpeed: 300,
@adardesign
adardesign / bookPricing.css
Created August 4, 2011 14:47
books pricing tab styles
.hoverTipCont.bookDimenstions { max-width: 370px; max-height: 170px; height: 150px; padding: 3px; background: #fff; margin-left: -20px; }
.booksNPriceList .tableWrapper #pricelist { width: 100%; margin-bottom: 35px; border-bottom: 1px solid #ccc !important; border-collapse: separate; }
.booksNPriceList .tableWrapper #pricelist td { padding: 5px 0; vertical-align: middle; }
.booksNPriceList #pricelist td.size { width: 120px; }
.booksNPriceList .tableWrapper #pricelist td:last-child { border-right: 1px solid #ccc !important; }
.booksNPriceList .tableWrapper #pricelist td:first-child { width: 100px; border-left: 1px solid #ccc !important; }
.booksNPriceList .tableWrapper #pricelist tr:first-child td:first-child { border-left: none !important; }
.booksNPriceList #pricelist td.topOfTableL { border-top: 1px solid #ccc; border-left: 1px solid #ccc; padding: 5px 3px; }
.booksNPriceList #pricelist td.price span { font-weight: normal; }
.booksNPriceList #pricelist td.price em { opacity: .2; filter:alpha(opacity=20) p
@adardesign
adardesign / priceListTab.html
Created August 4, 2011 15:04
priceList tab
<div class="booksNPriceList" style="display:none;">
<div class="tableWrapper">
<h3>Hard cover Photo books
<p>This isn't a book that's cranked out on a machine with a thousand others, Your book
is hand-crafted with the painstaking attention to detail you've come to expect from
AdoramaPix. </p>
</h3>
<table id="pricelist" class="booksPricing" cellpadding="0" cellspacing="0">
<tbody>
<tr>
@adardesign
adardesign / bannerSlider
Created September 4, 2011 18:02
bannerSlider
// bannerSlider, Version 1
// Copyright (c) July 30, 2011 adardesign.com
// bannerSlider is freely distributable under the terms of an MIT-style license
// This means you are free to use the code, but please leave this copyright notice intact
// Added relToSrc performance....
// global Variable (i am sorry but sometimes its neede.)
var isPlaying = false;
function videoIsReady() {
#holidayTopBannersWrapper {
height:48px;
overflow:hidden;
clear:both;
list-style:none;
margin:0;
padding:4px;
}
#holidayTopBannersWrapper li {