Skip to content

Instantly share code, notes, and snippets.

@goldnuggets24
Created October 14, 2013 17:09
Show Gist options
  • Save goldnuggets24/6978820 to your computer and use it in GitHub Desktop.
Save goldnuggets24/6978820 to your computer and use it in GitHub Desktop.
_social again... lines 36-38 disappear in browser : (
.grid_9
%br
.clear
.grid_7.alpha.omega{:style => "width: 605px;"}
.grid_7.omega
.grid_2
%h1
Almost there ...
.grid_4{:style => "padding-top: 10px;"}
%p
Tell your friends you just signed up for your card! We'll even deposit $ in your HQBank(?)!
.clear
.grid_7
%p
As a bonus, all cardholders are given an HQBank. HQBank dollars are redeemed at any participating businesses with no minimum purchase required. We deposit dollars when friends you’ve referred sign up. Login>MyAccount>HQBank>Choose Gift Certificate to Print
= link_to image_tag('refer/facebook.png'), '#', :class => "toggle-next"
.facebook-referral
%br/
.fb-like{'data-href' => what_is_hqcard_url(:cref => current_user.cref_token), 'data-send' => 'false', 'data-width' => '250', 'data-show-faces' => 'false', 'data-ref' => current_user.cref_token}
= current_user.id
.clear
.grid_2.prefix_1
= link_to "Skip This Step", go_to_disclaimer_card_signups_path, :class => 'go_to_disclaimer button'
%a{ :href => 'http://www.facebook.com/sharer/sharer.php?s=100&p[url]=http://hqchannel.com/card_signups&p[images][0]=http://hqchannel.com/assets/hq-logo-new-920b456f2ba447b630448762efe9cbcb.jpg&p[title]=I%20just%20signed%20up%20for%20an%20HQ%20Card!%20&p[summary]=..yah,%20the%20card%20that%20gets%20you%20access%20to%20local%20deals,%20promotions,%20sometimes%20free%20shoes.%20;D', :id => 'fb_share_link' }
FB Click
.clear
:javascript
$(document).ready(function() {
$("#fb_share_link").click(function() {
$(".go_to_disclaimer").attr('href', $(".go_to_disclaimer").attr('href') + "?shared_user_id=#{current_user.id}")
});
//$("#card_signup_update_area").css("left", "0").css("right", "-4000");
$("#card_signup_update_area").animate({
left: 0
}, 1000, function(){
$("#social_area").css("left", "-4000px").animate({
left: 0
}, 1000);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment