Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (51 sloc) 2.22 KB
<!doctype html>
<html>
<head>
<script type="text/javascript" src="/scripts/ga.js"></script>
<script type="text/javascript" src="/bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="/bower_components/underscore/underscore-min.js"></script>
<script type="text/javascript" src="/bower_components/backbone/backbone.js"></script>
<script type="text/javascript" src="/bower_components/handlebars/handlebars.min.js"></script>
<script type="text/javascript" src="/bower_components/moment/min/moment.min.js"></script>
<script type="text/javascript" src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/bower_components/jstorage/jstorage.min.js"></script>
<script type="text/javascript" src="/bower_components/typeahead.js/dist/typeahead.bundle.min.js"></script>
<script type="text/javascript" src="/scripts/emilstabs.js"></script>
<link href="/bower_components/bootstrap/dist/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="/stylesheets/typeahead.js-bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/stylesheets/emilstabs.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function() {
var nav = new stab.nav();
var footer = new stab.footer();
var file = window.location.pathname;
if(file == "/tabs/" || file == "bass/") {
ga('send', 'event', 'tab', 'index');
window.location.replace("/");
} else if (file) {
var file = new stab.tab({uri: file});
var view = new stab.tabView({model: file});
file.fetch();
} else {
// redirect ?
ga('send', 'event', 'tab', 'error', 'noFile');
window.location.replace("/");
}
});
</script>
</head>
<body>
<div id="nav"></div>
<div class="container">
<div class="content">
<div class="row">
<div class="col-sm-12">
<div class="file">
</div>
</div>
</div>
</div>
<footer></footer>
</div>
</body>
</html>