Skip to content

Instantly share code, notes, and snippets.

View motorcitymobi's full-sized avatar

Cameron Cecchini motorcitymobi

View GitHub Profile
@motorcitymobi
motorcitymobi / Asset.txt
Created January 22, 2013 18:34
// Hide address bar
// Hide address bar on mobile devices (except if #hash present, so we don't mess up deep linking).
if (Modernizr.touch && !window.location.hash) {
$(window).load(function () {
setTimeout(function () {
window.scrollTo(0, 1);
}, 0);
});
}
@motorcitymobi
motorcitymobi / main.js
Created January 22, 2013 18:34
Bootstrap Elements
/*-----------------------------------------------------------------------------------*/
/* Boostrap Elements
/*-----------------------------------------------------------------------------------*/
// carousel demo
$('#myCarousel').carousel()
$('#testimonio').carousel()
// tooltip demo
/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
body {
font-family: @body-font;
color: @text-color;
font-size: 100%;
line-height: @body-font-line-height;
}
// links
a,
<div id="container">
<div class="section">
<h2>Member ROI</h2>
<div class="point_content">
<ul class="point">
<li class="current"><a href="#">Networking <span class="hide">Opportunities</span></a></li>
<li><a href="#"><span class="hide">Business</span> Assistance</a></li>
<li><a href="#">Advertising <span class="hide">Opportunities</span></a></li>
</ul>
<div class="point_box" style="display: block; ">
@motorcitymobi
motorcitymobi / Asset.txt
Created January 22, 2013 18:34
(JS) - Scroll to Top
/*-----------------------------------------------------------------------------------*/
/* Jquery Scroll to top
/*-----------------------------------------------------------------------------------*/
jQuery('.top_scroll a').click(function(){
jQuery(this).stop().animate({opacity: '0'}, 200 ,function(){
jQuery('html, body').animate({scrollTop: '0'} ,600,function(){
jQuery('.top_scroll a').stop().animate({opacity: '1'});
});
});
return false;
@motorcitymobi
motorcitymobi / Asset.css
Created January 22, 2013 18:34
CSS Stacked Paper Effect
body {
background: linear-gradient(#ccc, #fff);
font: 14px sans-serif;
padding: 20px;
}
.letter {
background: #fff;
box-shadow: 0 0 10px rgba(0,0,0,0.3);
margin: 26px auto 0;
max-width: 550px;
@motorcitymobi
motorcitymobi / #swipe.row.html
Created January 22, 2013 18:34
Swipe (MCM v2)
<div class="row" id="swipe">
<div class="wrap clearfix ten columns centered">
<nav class="top"><span id='position'><em class='on'>&bull;</em><em>&bull;</em><em>&bull;</em></span></nav>
<nav class="btm"><a href='#' id="prev" onclick='slider.prev();return false;'><em><i class="general foundicon-left-arrow"></i></em></a><a href='#' id="next" onclick='slider.next();return false;'><em><i class="general foundicon-right-arrow"></i></em></a></nav>
<div id='slider' class="ten columns centered"><div>
<div class="swipebox" style='display:block'><div>
<p class="h4">TopLine Intelligence</p>
<br>
<img src="http://motorcitymobility.com/demo/images/tli.png" class="swipe-img">
<p><a class="round button" href="#">View Project</a></p>
@motorcitymobi
motorcitymobi / Asset.txt
Created January 22, 2013 18:34
.js html
<nav class="nav_menu">
<div class="container">
<ul>
<li class=""><a href="#features">Features</a></li>
<li class=""><a href="#teams">Our Teams</a></li>
<li class=""><a href="#testimonials">Testimonials</a></li>
<li class=""><a href="#contact">Contact Us</a></li>
</ul>
@motorcitymobi
motorcitymobi / Asset.txt
Created January 22, 2013 18:34
Create a Custom Footer with HTML
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'child_footer_html' );
/**
* Custom Footer with HTML.
*
* @author Greg Rickaby
* @since 1.0.0
*/
function child_footer_html() { ?>