This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Yannick's lack of interest in the Captain America movie just got him slapped, epic style: | |
$(function(){ | |
$('#adrian').slap(function(){ // initiate slap | |
$("#yannick").face(10000); // slow motion slap | |
return true; // loop that sucka << this may be wrong, but the animation don't gotta stop.... | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I am using a prettyPhoto plugin for a modal | |
//and I want to add a class to only certain modals by using only anchors with the .lower class as the trigger | |
// How do I add a class to say... ('.pic_holder') after I have clicked on the trigger | |
$("a.lower[rel^='prettyPhoto']").prettyPhoto({ | |
default_width: 480, | |
}); | |
// Found a solution, prettyPhoto had some callback functions. Just learning something new: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# I'm trying to add another attribute to this link, but having trouble figuring out how to do it | |
-# For example, I want to add :style => "display: none" to this line | |
%strong= link_to "view this", current_user, :class => "public-on" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
var i = 0; | |
$(".foo:first-child").addClass("post-" + i); | |
$(".foo").each(function(){ | |
$(this).addClass("post-" + i++); | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// So I am attempting to target the parent class name of the .next element and store the number. | |
$(function(){ | |
$(".next").parseInt($(this).parent().attr("class")); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$(".grid_3").each(function(){ | |
// .next finds the next Dom element in this case it would be another grid_3 element | |
var next = $(this).next(); | |
var prev = $(this).prev(); | |
// Store this current element into a var called "that" so that "this" can be used in it's own handler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
// Get first element and find element within and hide | |
$(".grid_3:first").find(".prev").hide(); | |
/// Get last element and find element within and hide | |
$(".grid_3:last").find(".next").hide(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php include('header.php'); ?> | |
<div class="container"> | |
<div class="content row"> | |
<section id="top" class="twelve columns"> | |
<h5>Search for a Physician</h5> | |
<form action="physicians.php" method="get"> | |
<div class="field"> | |
<input type="text" name="q" class="text xwide input" placeholder="Search by: Physician, State or Zipcode"> |
OlderNewer