1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/_layouts/default.html
Matt Brictson de195ee374 "No thanks" should apply to entire site
This fixes a bug where dismissing the modal with "no thanks" would hide it for
the current page, but the modal would then reappear when navigating to another
page.
2016-02-29 10:49:18 -08:00

66 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }}</title>
<link href='http://fonts.googleapis.com/css?family=Enriqueta' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="//use.typekit.net/itm5ubu.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<link rel="stylesheet" href="/css/foundation.css" />
<link rel="stylesheet" href="/css/capistrano.css">
<link rel="stylesheet" href="/css/social_foundicons.css" />
<link rel="stylesheet" href="/css/okaidia.css">
<link rel="stylesheet" href="/css/syntax.css">
<script src="/js/vendor/custom.modernizr.js"></script>
</head>
<body>
{% include metrics.html %}
{% include header.html %}
<div class="row">
<div class="large-4 columns">
{% include navigation.html %}
</div>
<div class="large-8 column">
<div class="content">
<h2>{{ page.title }}</h2>
{{ content }}
</div>
</div>
</div>
{% include footer.html %}
<script src="/js/jquery-1.7.min.js"></script>
<script src="/js/jquery.cookie.js"></script>
<script type="text/javascript">
$(function(){
if ($.cookie('harrowBanner__dismissed') != '1') {
$('.harrowBanner').css('display', 'block');
ga('send', 'event', 'harrowBanner', 'shown');
} else {
ga('send', 'event', 'harrowBanner', 'alreadydismissed');
}
$(".harrowBanner__ctaButton").on('click', function (e) {
ga('send', 'event', 'harrowBanner', 'clickthrough');
});
$(".harrowBanner__dismissLink").on('click', function (e) {
$.cookie('harrowBanner__dismissed', '1', { path: "/", expires: 10 });
$('.harrowBanner').hide();
ga('send', 'event', 'harrowBanner', 'dismiss');
});
});
</script>
<script src="/js/jquery.githubRepoWidget.min.js"></script>
<script src="/js/prism.js"></script>
<script src="/js/prism.ruby.js"></script>
<a href="https://github.com/capistrano/capistrano"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub"></a>
{% include google_tag_manager.html %}
</body>
</html>