Skip to content

Instantly share code, notes, and snippets.

@jdorfman
Last active December 19, 2015 04:38
Show Gist options
  • Save jdorfman/5898304 to your computer and use it in GitHub Desktop.
Save jdorfman/5898304 to your computer and use it in GitHub Desktop.
jdorfman@air:~/github/www.gittip.com/www/assets/%version/gittip$ cat *.js >> gittip-combined.js
<!DOCTYPE html>
<html lang="en">
<head>
<title>{% if 'title' in globals() %}{{ title }} - {% end %}Gittip</title>
<meta http-equiv="content-language" content="en"/>
<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" />
{% 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">
Distributed Genius Grants
</td></tr></table>
{% if user.ANON %}
<div class="sign-in">
{% include sign-in-using.html %}
</div>
{% else %}
<div class="you-are">
<a href="/{{ user.username }}/">{{ user.username }}</a> &ndash;
<a href="/sign-out.html">sign out</a>
<div class="quick-stats">
Giving: <a href="/{{ user.username }}/giving/">${{ user.get_dollars_giving() }}/wk</a><br />
Receiving: <b>${{ user.get_dollars_receiving() }}/wk</b>
</div>
</div>
{% end %}
</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 class="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="https://github.com/gittip/www.gittip.com">Source</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>
<!-- 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>
<!-- Used on the profile edit page for the community chooser. -->
<script src="/assets/chosen/chosen.jquery.min.js"></script>
<style>@import url("/assets/chosen/chosen.css");</style>
<script src="/assets/{{ __version__ }}/utils.js"></script>
<script src="/assets/{{ __version__ }}/gittip.js"></script>
<script src="/assets/{{ __version__ }}/gittip/gittip-combined.js"></script>
<script>$(document).ready(Gittip.init);</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 -->
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment