This file contains hidden or 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
| $(".row.related-item").hover(function() { | |
| el = $(this); | |
| itemDesc = $(this).find('p.related-item-content'); | |
| timeoutId = setTimeout(function() { | |
| itemDesc.stop().slideToggle('fast', 'swing'); | |
| }, 900); | |
| }, function(){ | |
| clearTimeout(timeoutId); | |
| itemDesc.stop().slideToggle('fast', 'swing'); | |
| }); |
This file contains hidden or 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
| // FADEOUT THE LOADING GRAPHIC AFTER WAITING 1 SEC | |
| function fadeSpinner(){ | |
| $('.delay-spinner').delay(1000).fadeToggle(500, 'easeOutQuart'); | |
| } | |
| // FADEIN THE CONTENT | |
| function fadeInContent(type){ | |
| $('.ps-item-content .'+type+'').fadeToggle(700, 'easeInQuart'); | |
| } | |
| switch (contentType) | |
| { |
This file contains hidden or 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
| <script> | |
| FB.init({appId: "252314034891861", status: true, cookie: true}); | |
| function addToPage() { | |
| // calling the API ... | |
| FB.ui( | |
| { | |
| method: 'pagetab' | |
| }, |
This file contains hidden or 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
| jQuery('.shelf li img').mouseover(function(){ | |
| jQuery(this).stop().animate({"width": "130px", "height": "168", "left":"-25px"}, 200); | |
| }).mouseout(function(){ | |
| jQuery(this).stop().animate({"width": "100px", "height": "129px", "left":"0px"}, 200); | |
| });; | |
| jQuery(".shelf li img").live("mouseover", function () { PaperShare.Shelf.ShowDetail(this) }); | |
| var parent = document.getElementById("shelf-detail"); | |
| if (!parent.addEventListener) { | |
| parent.attachEvent("onmouseout", PaperShare.Shelf.HideDetail(parent), true); |
This file contains hidden or 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
| class PricePredicate | |
| def initialize(&block) | |
| @predicate = block | |
| end | |
| def evaluate(subject) #would I pass the lead object in here? | |
| @predicate.call(subject) #and here | |
| end | |
This file contains hidden or 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
| <% content_for :javascripts do %> | |
| <script> | |
| $(function() { | |
| $( "#add_photo" ).sortable(); | |
| $( "#add_photo" ).disableSelection(); | |
| }); | |
| </script> | |
| <% end %> |
This file contains hidden or 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 | |
| $featured_query = new WP_Query( | |
| array( | |
| 'post_type' => 'artist', | |
| 'post_per_page' => '3', | |
| 'meta_key' => 'featured', | |
| 'orderby' => 'meta_value', | |
| 'order' => 'DESC', | |
| 'meta_query' => array( |
This file contains hidden or 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
| <% content_for :javascripts do %> | |
| <script> | |
| $(function() { | |
| $( "#add_photo" ).sortable(); | |
| $( "#add_photo" ).disableSelection(); | |
| }); | |
| </script> | |
| <% end %> |
This file contains hidden or 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
| error_reporting(E_ALL); | |
| ini_set("display_errors", 1); | |
| require_once( get_template_directory(). '/class.gaparse.php' ); | |
| $aux = new GA_Parse($_COOKIE); | |
| echo "Campaign source: ".$aux->campaign_source."<br />"; | |
| echo "Campaign name: ".$aux->campaign_name."<br />"; |
This file contains hidden or 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
| def associate_correct_user | |
| new_user = User.find_or_create_by_email self.email do |u| | |
| user = Email.find_by_email(self.email) | |
| u.first_name = user.first_name | |
| u.last_name = user.last_name | |
| u.invite! | |
| end |