Created
July 3, 2013 10:11
-
-
Save iurevych/5916825 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html lang='en-US' xml:lang='en-US' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns='http://www.w3.org/1999/xhtml'> | |
<head> | |
<meta content='text/html;charset=UTF-8' http-equiv='Content-Type'> | |
<link href='http://plus.google.com/_/favicon?domain=http://bonobos.com/' rel='shortcut icon'> | |
<title>Curebit</title> | |
<link href="/assets/trueandco_theme.css" media="screen" rel="stylesheet" type="text/css" /> | |
<script src="/assets/bootstrap_offers_show.js" type="text/javascript"></script> | |
<script src="https://connect.facebook.net/en_US/all.js" type="text/javascript"></script> | |
<script type='text/javascript'> | |
//<![CDATA[ | |
function getFacebookAppId() { | |
return '175658469159761'; | |
} | |
$(document).ready(function() { | |
FB.init({ | |
appId: getFacebookAppId(), | |
status : true, // check login status | |
cookie : true, // enable cookies to allow the server to access the session | |
xfbml : true, // parse XFBML | |
channelURL : 'http://localhost:3000/facebook_channel.html', | |
oauth : true // enable OAuth 2.0 | |
}); | |
}); | |
//]]> | |
</script> | |
<script> | |
//<![CDATA[ | |
function getFbShareParams() { | |
return { | |
method: 'feed', | |
name: 'Special Offer for Friends', | |
picture: 'http://s3.amazonaws.com/curebit-development/affiliate_campaigns/photos/206/small/offer-page-15_.jpg', | |
caption: 'http://localhost:3000/x/J7Sh0', | |
description: 'Get $15 off your order', | |
link: 'http://localhost:3000/x/J7Sh0', | |
display: 'popup' | |
}; | |
} | |
function getOfferUrl() { | |
return "http://localhost:3000/o/a/ZMOR9/fire_event"; | |
} | |
// Resize headline to fit | |
$(document).ready(function() { | |
fireCurebitEvent("offer_shown", getOfferUrl(), { referrer: "http://localhost:3000/sites/bonobos/affiliate_campaigns/206-special-offer-for-friends" }); | |
sizeToFit('.sizeToFit'); | |
}); | |
//]]> | |
</script> | |
<script type='text/javascript'> | |
//<![CDATA[ | |
function onFacebookShareLinkClicked(link) { | |
window.open($(link).attr('href'), '_blank', 'width=658,height=352,resizable=1'); | |
fireCurebitEvent("share", getOfferUrl(), { url: $(link).attr('href') }); | |
return false; | |
} | |
//]]> | |
</script> | |
</head> | |
<body class='site_bonobos campaign_--7 campaigns theme_trueandco referrer_15-dollars referred_15-dollars coupon locale-en'> | |
<div class='offer-for-customer'> | |
<script type="text/javascript" src="https://api.cloudsponge.com/address_books.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
var csPageOptions = { | |
textarea_id:'email_recipient_list', | |
domain_key:"ZSEYG2LBCCUYWNVMQBWB", | |
include:['email'] | |
}; | |
</script> | |
<script> | |
//<![CDATA[ | |
$(document).ready(function() { | |
// Toggle email form | |
$(".js-email-form-toggle").click(function() { | |
$(".js-email-form").toggleClass("is-shown"); | |
return false; | |
}); | |
}); | |
//]]> | |
</script> | |
<style> | |
/*<![CDATA[*/ | |
body .container { | |
background-color: #fdfdfc; | |
background-image: url('http://s3.amazonaws.com/curebit-development/uploaded_images/images/10/original/offer-background-Trueandco-pinkBG_redBRA_brunette.jpg'); | |
background-position: right bottom; | |
color: #231f20; | |
} | |
body .promo-code, | |
body .share-link, | |
body .button { | |
background-image: url("http://s3.amazonaws.com/curebit-development/uploaded_images/images/9/original/blank.gif"); | |
} | |
/*]]>*/ | |
</style> | |
<script> | |
//<![CDATA[ | |
// Change layout after email share | |
PubSub.subscribe("share_via_email_succeeded", function() { | |
$(".js-show")[0].className = $(".js-show")[0].className.replace(/\bis-*\b/g, ''); | |
$(".js-show").addClass("is-collapsed"); | |
bindClipToCopy(".short_url"); | |
}); | |
//]]> | |
</script> | |
<div class='affiliate_offer container js-show show' id='affiliate_offer_2'> | |
<div class='show-header'> | |
<h1>Get $15, Give $15.<br>Invite your friends to try True&Co.</h1> | |
<h2 class='show-headline'>Start the New Year with the new way to shop for bras.</h2> | |
</div> | |
<div class='show-content'> | |
<div class='show-content-panel'> | |
<h3 class='show-content-title'>Share via e-mail</h3> | |
<div class='show-email-sharing'> | |
<form accept-charset="UTF-8" action="/o/a/ZMOR9/share_via_email" id="email_share_form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /><input name="authenticity_token" type="hidden" value="+sQ3IaSJIB9chFpPC3AClRY3PK0LGyTEpWbTZonDM4Y=" /></div> | |
<div class='form-field'> | |
<label class='form-label'>From: iurevych@gmail.com</label> | |
<span class='form-warning'></span> | |
<div class='form-import-contacts'><a href="#" class="cs_import">Import email contacts</a></div> | |
<textarea class="is-oneline js-email-recipient-list" id="email_recipient_list" name="email_recipient_list" placeholder="Share with multiple friends (separate with commas)" rows="1"> | |
</textarea> | |
</div> | |
<div class='form-field'> | |
<textarea class="is-oneline js-email-subject" id="email_subject" name="email_subject"> | |
Thought you might be interested</textarea> | |
</div> | |
<div class='form-field'> | |
<textarea id="share_message" name="share_message"> | |
I just bought from bonobos and got this deal. Thought you might be interested!</textarea> | |
</div> | |
<div class='form-field'> | |
<div class='form-column is-left form-button-line'> | |
</div> | |
<div class='form-column is-right'> | |
<a class="button" href="#" name="share_email_submit" onclick="submitEmailShare();; return false;"><span>Send e-mail</span></a> | |
</div> | |
</div> | |
<div class='emailShareErrors'></div> | |
<div class='emailShareSuccess'></div> | |
<input id="email_form_submit" name="submit_value" type="hidden" /> | |
</form> | |
</div> | |
</div> | |
<div class='show-content-panel is-last'> | |
<h3 class='show-content-title'>Share via social media</h3> | |
<div class='show-socials'> | |
<div class='copy-link-text'> | |
Email this link to your friends | |
</div> | |
<div class='col1of2'> | |
<a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Flocalhost%3A3000%2Fx%2FJ7Sh0" class="button is-facebook facebook_share_link" target="_blank">Via Facebook</a> | |
</div> | |
<div class='col1of2'> | |
<a href="https://twitter.com/intent/tweet?url=http%3A%2F%2Flocalhost%3A3000%2Fx%2FXogDu&text=Just+bought+at+bonobos+and+got+a+coupon+to+share+with+my+friends" class="button is-twitter twitter_share_link">Via Twitter</a> | |
</div> | |
</div> | |
<div class='short_url show-coupon-link' id='couponLink'> | |
http://localhost:3000/x/IhHcb | |
</div> | |
</div> | |
</div> | |
<div class='show-footer-links'> | |
<a href="https://trueandco.com/terms_and_conditions" target="_blank">Terms & Conditions</a> | |
</div> | |
</div> | |
<div class='clearboth'></div> | |
<div class='email'> | |
<div id='contacts_wrapper'> | |
<div class='share_via_email' id='contacts' style='display: none;'> | |
<div class='manual'> | |
<h4> | |
Enter friends' email addresses: | |
</h4> | |
<form accept-charset="UTF-8" action="/o/a/ZMOR9/share_via_email" data-remote="true" data-success-notice="Success! Sent to your friends." id="email_share_form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /><input name="authenticity_token" type="hidden" value="+sQ3IaSJIB9chFpPC3AClRY3PK0LGyTEpWbTZonDM4Y=" /></div> | |
<div class='emailShareErrors'></div> | |
<div class='emailShareSuccess'></div> | |
<input id="email_form_submit" name="submit_value" type="hidden" /> | |
<input class="email_subject textfield" id="email_subject" name="email_subject" type="hidden" value="Thought you might be interested" /> | |
<input class="share_message textfield" id="share_message" name="share_message" type="hidden" value="I just bought from bonobos and got this deal. Thought you might be interested!" /> | |
<textarea class="textfield" id="email_recipient_list" name="email_recipient_list" placeholder="e.g. friend1@gmail.com, friend2@gmail.com"> | |
</textarea> | |
</form> | |
<div class='pull-right'> | |
<a class="btn btn-mini cancelEmailContacts" href="#" name="share_email_cancel" onclick="cancelEmailContacts(); return false;">Cancel</a> | |
| |
<a class="btn btn-success btn-mini" href="#" name="share_email_submit" onclick="$('#email_form_submit').val('manual'); submitEmailShare();; return false;"><span>Send e-mail</span></a> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div id='loadingDiv' style='display: none;'> | |
<div id='loadingDivInner'> | |
<img alt="Ajax-loader" src="/assets/ajax-loader.gif" /> | |
<div class='loadingMessage'> | |
Sending Email Now | |
</div> | |
<div class='clearboth'></div> | |
</div> | |
</div> | |
<div id='noticeDiv' style='display: none;'> | |
<div id='noticeDivInner'> | |
<div class='noticeMessage'></div> | |
<div class='clearboth'></div> | |
</div> | |
</div> | |
<div id='fb-root'></div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment