mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-17 22:00:57 +00:00
715db59b5c
This funnel has three events: Opt In, Explicitly Tip, and Add Credit Card. The first is fired server-side immediately after an alias is performed (see comments inline). The other two are fired client-side, and any new events should be fired client-side as well.
135 lines
5.6 KiB
HTML
135 lines
5.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>{% if 'title' in globals() %}{{ title }} - {% end %}Gittip</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="stylesheet" href="/assets/reset.css"
|
|
type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="/assets/{{ __version__ }}/gittip.css"
|
|
type="text/css" charset="utf-8" />
|
|
|
|
<!-- http://css-tricks.com/snippets/jquery/fallback-for-cdn-hosted-jquery/ -->
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
|
|
<script>
|
|
if (typeof jQuery === 'undefined')
|
|
document.write(unescape("%3Cscript src='/assets/jquery-1.8.3.min.js'%3E%3C/script%3E"));
|
|
</script>
|
|
|
|
<script src="/assets/{{ __version__ }}/gittip.js"></script>
|
|
<script>$(document).ready(Gittip.initCSRF);</script>
|
|
|
|
<!-- start Mixpanel -->
|
|
<script type="text/javascript">
|
|
(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===e.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f);b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!== typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.increment people.append people.track_charge people.clear_charges people.delete_user".split(" ");for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a, e,d])};b.__SV=1.2}})(document,window.mixpanel||[]);
|
|
mixpanel.init("{{ website.mixpanel_token }}");
|
|
{% if not user.ANON %}mixpanel.alias("{{ user.id }}");
|
|
mixpanel.identify("{{ user.id }}");{% end %}
|
|
</script>
|
|
<!-- end Mixpanel -->
|
|
|
|
{% block head %}{% end %}
|
|
{% block head2 %}{% end %}
|
|
|
|
</head>
|
|
<body>
|
|
<div class="main-padding"><div id="header">
|
|
<table><tr><td class="logo">
|
|
<h1>
|
|
<a href="/">
|
|
<img src="/assets/{{ __version__}}/logo.png" alt="Gittip" />
|
|
</a>
|
|
</h1>
|
|
</td><td class="motto luxury">
|
|
Inspiring Generosity
|
|
</td></tr></table>
|
|
<div class="login">
|
|
{% if user.ANON %}
|
|
<div id="you-are">
|
|
<span class="nowrap">Sign in using</span>
|
|
<span class="nowrap">
|
|
<a href="{{ twitter.oauth_url(website, u'opt-in', path.decoded) }}">Twitter</a>
|
|
<span class="luxury">or
|
|
<a href="{{ github.oauth_url(website, u'opt-in', path.decoded) }}">GitHub</a>
|
|
or
|
|
<a href="{{ bitbucket.oauth_url(website, u'opt-in', path.decoded) }}">Bitbucket</a>
|
|
</span>
|
|
</div>
|
|
{% else %}
|
|
<div id="you-are">
|
|
You are <a href="/{{ user.username }}/">{{ user.username }}</a>.
|
|
<a href="/sign-out.html">Sign out</a>.
|
|
</div>
|
|
{% end %}
|
|
</div>
|
|
</div></div>
|
|
|
|
<div id="hero">
|
|
<div class="main-padding">
|
|
{% block heading %}
|
|
{% if 'title' in globals() %}
|
|
<h2 class="top"><span>{{ title }}</span></h2>
|
|
{% end %}
|
|
{% end %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="main-padding"><div id="box-page">
|
|
{% block killbox %}
|
|
<div id="box">
|
|
{% block box %}{% end %}
|
|
</div>
|
|
{% end %}
|
|
<div id="page" class="group">
|
|
{% block page %}{% end %}
|
|
</div>
|
|
</div></div>
|
|
|
|
<div class="main-padding"><div id="footer">
|
|
<div class="social">
|
|
<a href="https://twitter.com/gittip"><img src="/assets/icons/twitter.16.png" /></a>
|
|
</div>
|
|
<a href='http://blog.gittip.com/'>Blog</a> |
|
|
<a href="/about/">About</a> |
|
|
<a href='/about/faq.html'>FAQ</a> |
|
|
<a href='/about/stats.html'>Stats</a> |
|
|
<a href='/about/charts.html'>Charts</a> |
|
|
<a href="/about/terms/">Terms</a> |
|
|
<a href="/about/privacy/">Privacy</a> |
|
|
<a href='/about/fraud/'>Fraud</a> |
|
|
<a href='/security.txt'>Security</a>
|
|
</div></div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-247427-33']);
|
|
_gaq.push(['_setDomainName', '.gittip.com']);
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
(function() {
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
})();
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
var _gauges = _gauges || [];
|
|
(function() {
|
|
var t = document.createElement('script');
|
|
t.type = 'text/javascript';
|
|
t.async = true;
|
|
t.id = 'gauges-tracker';
|
|
t.setAttribute('data-site-id', '5162d97cf5a1f55905000083');
|
|
t.src = '//secure.gaug.es/track.js';
|
|
var s = document.getElementsByTagName('script')[0];
|
|
s.parentNode.insertBefore(t, s);
|
|
})();
|
|
</script>
|
|
|
|
</div></body>
|
|
</html>
|