Skip to content

Instantly share code, notes, and snippets.

View nathancarnes's full-sized avatar

Nathan Carnes nathancarnes

View GitHub Profile
$(document).ready(function(){
$(".video_modalB").fancybox({
'titleShow' : false,
'type': 'iframe',
'width' : 360,
'height': 643,
'margin': 0,
'padding': 0,
'overlayOpacity': .5,
'transitionIn': 'none',
@nathancarnes
nathancarnes / fancyCheckboxes.js
Created June 22, 2012 21:09
Use custom checkboxes instead of wonky browser ones
(function($) {
$.fn.fancyCheckboxes = function() {
return this.each(function() {
var input = this;
$(input).hide();
var fancy_checkbox =
$('<span class="fancy_checkbox"/>')
.addClass(
$(input).attr('checked') ? 'checked' : ''
@nathancarnes
nathancarnes / gist:2681482
Created May 13, 2012 05:00
Actual email I actually got
Nathan Carnes
Web design
Nathan Carnes
Bellingham
Bellingham,SC 80218
Dear Nathan:
I'd like to set up a webinar with you and other appropriate individuals regarding WAPing your website. Have you looked at your website on smart phones such as the iPhone, BlackBerry, Android or Windows Mobile device - or tablets such as the iPad and Android? In our webinar, I will show you how your website currently looks on smartphones and tablets. I will also provide you with a preliminary view of your mobile enabled website (WAP) we have created in anticipation of our call.
.ym-button {
// defined elsewhere, sets up button styles and some such
}
.adrians-button {
.ym-button; // No ampersand, yo
background-color: @purple-as-fuck; // assuming this is a supposed to be a variable?
}
$(document).ready( function(){
$('embed').hide();
$('#video_switcher a').click( function(){
$('.vid:visible').hide();
$( $(this).attr('href') ).show();
return false;
});
});
/*
* Site: Home Federal
* Date: April 2011
* Author: Carnes Media
*/
/* Import reset, utilities, and settings */
@import 'vendor/reset';
@import 'components/utilities';
@import 'components/typography';
/* Home Page */
.home{
header{ background: url('../images/bkgnd_main01t.jpg') no-repeat top center; height: 480px;
#header_content{ height: auto; }
}
.jshowoff{ clear: both; position: relative; top: -15px; }
#masthead{ .container; color: @reverse_font_color; position: relative; height: 320px; clear: both;
.slide{ height: 320px; position: relative; overflow: hidden;
#map_container{ height: 300px; width: 625px; }
<div class="Tags">
<div class="Dropdown">
<a class="button" href="#"><span>Tag</span></a>
<ul class="Menu">
<li><a href="#">Tag 1</a></li>
<li><a href="#">Tag 2</a></li>
<li><a href="#">Tag 3</a></li>
</ul>
</div>
<ul class="CurrentTags">
<div class="InboxActions">
<div class="ItemStandardActions">
<div class="VoteLabel">Vote:</div>
<a href="#" id="4c8a770d3914b7.89148093-27254041544" class="InboxUp"><span class="Icon">&uarr;</span></a>
<a href="#" id="4c8a770d3914b7.89148093-27254041544" class="InboxDown"><span class="Icon">&darr;</span></a>
<a href="#" id="4c8a770d3914b7.89148093-27254041544" class="InboxArchive NoIcon">Archive</a>
<a href="#" class="InboxDelete" id="4c8a770d3914b7.89148093-27254041544"><span class="Icon">&times;</span></a>
</div>
<div class="ItemActionBar">...</div>
</div>
<div class="InboxItem" id="Item-4c8a770d3914b7.89148093-1285278762000">
<div class="InboxIcon"><img src=http://socialinbox.com/images/icons/mini/linkedin.png></div>
<div class="InboxItemContent LinkedInConnectionItem">
<div class="InboxImage">
<img src="http://media.linkedin.com/mpr/mprx/0_zR-8K5tqtcR8G-tYB4i0K6rVrBDrGlCYBp60KFPQftJhjzvOMjGuObFeOJSfTn_tq4rYx8DPiq6K" class="LinkedInPicture" />
</div>
<div class="InboxPerson">
<a href="http://socialinbox.com/linkedin/profilepopup?LinkedInID=7o_6YwzcAn" class="LinkedInUser">Mary Doherty</a> (Owner of RunningWriteAlong, LLC)
</div>
<div class="InboxActionDescription">