Skip to content

Instantly share code, notes, and snippets.

View SpencerCooley's full-sized avatar

Spencer Cooley SpencerCooley

View GitHub Profile
<script type=”text/javascript”>
<!–
var curDate = new Date();
if (curDate.getFullYear() == ’2012′ && curDate.getMonth() == ’0′ && curDate.getDate() == ’18′)
{
window.location = ‘http://protestsopa.org/‘;
}
//–>
</script>
<!--Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.-->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=179459922132059";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php include 'custom_variables.php'?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="english">
<div class="listing_wrap">
<h1 class="listing_heading"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<img class="featured_listing" src="<?php print_r($featured_image_property); ?>" alt="">
<p class="listing_address"><?php print_r($property_address); ?></p>
<span class="excerpt"><?php the_excerpt(); ?></span>
<script>
$($('#language.selected li').bind("click", function(){
if ($(this).parent().hasClass('selected')){
$(this).parent().removeClass('selected').addClass('selection')
} else {
$(this).parent().removeClass('selection').addClass('selected');
$(this).siblings('li').removeClass('selected');
$(this).addClass('selected');
var lang = $(this).attr('id');
$.cookie('language', null);
<li>
<div class="featured_style">
<img src="http://dl.dropbox.com/u/25006518/feat-pic2.png">
<span class="cover"></span>
<a href="#" class="add_style" ><img src="images/add_hs.png" alt=""></a>
<a href="#" class="view_style" ><img src="images/view_hs.png" alt=""></a>
<div class="view_info">
<li>
<div class="featured_style">
<img src="http://dl.dropbox.com/u/25006518/feat-pic2.png"><!-- replace with im from db-->
<span class="cover"></span>
<!-- add and view buttons -->
<a href="#" class="add_style" ><img src="images/add_hs.png" alt=""></a>
<a href="#" class="view_style" ><img src="images/view_hs.png" alt=""></a>
<div class="view_info">
<li>
<div class="featured_style">
<img src="http://dl.dropbox.com/u/25006518/feat-pic2.png"><!-- replace with img from db-->
<span class="cover"></span>
<!-- add and view buttons -->
<a href="#" class="add_style" ><img src="images/add_hs.png" alt=""></a>
<a href="#" class="view_style" ><img src="images/view_hs.png" alt=""></a>
<div class="view_info">
<!--this script controls the fade in feature on the hover of hairstyles-->
<script type="text/javascript">
$(document).ready(function(){
$('.featured_style').hover(
function(){
$('.view_info', this).show();
$('.style_info', this).show();
},
$ sudo apt-get install git-core
$ sudo port install git-core