cnpmjs.org
Version:
Private npm registry and web for Enterprise, base on MySQL and Simple Store Service
101 lines (94 loc) • 3.68 kB
HTML
<html>
<head>
<meta charset="utf-8">
<title><%= locals.title %></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="shortcut icon" href="/favicon.png">
<!-- Bootstrap -->
<link href="//dn-staticfile.qbox.me/twitter-bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/css/main.css" rel="stylesheet" media="screen">
<link href="/css/github.css" rel="stylesheet" media="screen">
<link href="/css/github-markdown.css" rel="stylesheet" media="screen">
<!-- JavaScript plugins (requires jQuery) -->
<script src="//dn-staticfile.qbox.me/jquery/2.0.3/jquery.min.js"></script>
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="CNPM" />
<style>
#tagline{display:inline;}
/*#wrapper{padding:5% 8%;min-width:480px;}*/
#tagline{font:0.8em serif;color:#888;display:inline-block;margin:0.1em 0 1.2em;}
#fork{position:fixed;top:0;right:0;_position:absolute;}
.bottom{text-align: center;}
#content-header {margin: 20px 0 50px 0;}
.user .avatar {
width: 32px;
height: 32px;
margin-bottom: 3px;
}
table.downloads td.count {
text-align: right;
}
.nav-tabs{margin:20px 0;}
.nav-cont{display:none;}
.nav-cont.active{display:block;}
</style>
<script>
$(function () {
$('#search-input').keypress(function (e) {
if(e.keyCode !== 13) {
return;
}
var val = $(this).val().trim();
if (val) {
return location.href = '/browse/keyword/' + val;
}
});
$(".nav-tabs li").each(function (index) {
$(this).data("index", index);
})
.on("click", function (e) {
e.preventDefault();
$(".nav-tabs li.active,.nav-cont.active").removeClass("active");
$(this).addClass("active");
$(".nav-cont").eq($(this).data("index")).addClass("active");
});
});
</script>
</head>
<body>
<div class="container">
<header>
<div class="logo">
<a href="/"><img src="{{logoURL}}"></a>
</div>
<input type="text" id="search-input" class="form-control" placeholder="Search Packages">
</header>
<%- locals.body %>
<div class="bottom">
<hr/>
<p>
{{footer}}
</p>
<a href="https://github.com/cnpm/cnpmjs.org" id="fork" target="_blank">
<img alt="Fork me on GitHub" src="//s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
</a>
</div>
</div>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="//dn-staticfile.qbox.me/twitter-bootstrap/3.2.0/js/bootstrap.min.js"></script>
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
<script src="//dn-staticfile.qbox.me/respond.js/1.2.0/respond.min.js"></script>
<script src="//dn-staticfile.qbox.me/prettify/r298/prettify.min.js"></script>
<!-- Specific to this page -->
<script>
$(function () {
$('pre code').parent().addClass('prettyprint');
prettyPrint();
$('table').addClass('table table-bordered table-striped');
});
</script>
</body>
</html>