Cleanup
This commit is contained in:
parent
6cc07e5048
commit
c848a1ea92
1886
pkgs/plt-services/meta/pkg-index/official/static/gumby.css
Normal file
1886
pkgs/plt-services/meta/pkg-index/official/static/gumby.css
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -14,24 +14,29 @@
|
|||
<link rel="icon" type="image/ico" />
|
||||
<link rel="shortcut icon" type="image/x-icon" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
|
||||
<link rel="stylesheet" href="http://racket-lang.org/gumby.css" />
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="stylesheet" href="/gumby.css"></link>
|
||||
<link rel="stylesheet" href="/style.css"></link>
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar gumby-content" gumby-fixed="top" id="nav1"><div class="row">
|
||||
<a class="five columns logo" href="http://racket-lang.org/"><img class="logo" src="http://racket-lang.org/logo-and-text.png" width="198" height="60" alt="Racket" /></a>
|
||||
<ul class="five columns"><li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li></ul></div></div>
|
||||
|
||||
<div class="navbar gumby-content" style="position: fixed;" gumby-fixed="top" id="nav1"><div class="row"><a class="toggle" gumby-trigger="#nav1 > .row > ul" href="#"><i class="icon-menu"></i></a>
|
||||
<a class="four columns logo" href="http://www.racket-lang.org/"><img class="logo" src="/logo-and-text.png" width="198" height="60" alt="Racket"></a>
|
||||
<span class="one colums"></span> <ul class="five columns"><li><a href="http://pkgs.racket-lang.org/">Packages</a></li>
|
||||
<li><a href="http://docs.racket-lang.org/">Documentation</a></li>
|
||||
<li><a href="http://blog.racket-lang.org/">Blog</a></li>
|
||||
<li><div class="medium metro info btn icon-left entypo
|
||||
icon-install"><a href="http://download.racket-lang.org/">Download</a></div></li></ul></div></div>
|
||||
<div style="height: 60px;"></div>
|
||||
|
||||
<div class="bodycontent">
|
||||
<div class="breadcrumb">
|
||||
<span><a href="/">Packages</a></span>
|
||||
<span><a href="/"> </a></span>
|
||||
<span id="logout"></span>
|
||||
</div>
|
||||
<div id="server_notice">
|
||||
</div>
|
||||
<div>
|
||||
<p id="search_help">Package search filters are
|
||||
<p id="search_help">Search filters are
|
||||
below. <span style="font-weight: bold;">Bold</span> filters are
|
||||
used to select packages and <span style="font-weight: bold;
|
||||
text-decoration: line-through;">strike-through</span> tags are
|
||||
|
|
|
@ -22,6 +22,7 @@ $( document ).ready(function() {
|
|||
function dynamic_send ( u, o ) {
|
||||
o['email'] = localStorage['email'];
|
||||
o['passwd'] = localStorage['passwd'];
|
||||
// xxx do a poll
|
||||
$.getJSON( dynamic_url(u), o, function (r) { return; } ); }
|
||||
|
||||
function dynamic_pkgsend ( u, o ) {
|
||||
|
@ -299,10 +300,13 @@ $( document ).ready(function() {
|
|||
else {
|
||||
h = ""; } } }
|
||||
|
||||
function init_search_terms() {
|
||||
search_terms["!main-tests"] = true;
|
||||
search_terms["!main-distribution"] = true; }
|
||||
|
||||
{ var h = window.location.hash;
|
||||
if ( h == "" ) {
|
||||
search_terms["!main-tests"] = true;
|
||||
search_terms["!main-distribution"] = true; }
|
||||
init_search_terms(); }
|
||||
else {
|
||||
h = h.substring(1);
|
||||
parse_hash(h); } }
|
||||
|
@ -342,6 +346,12 @@ $( document ).ready(function() {
|
|||
delete search_terms[term];
|
||||
search_terms["!" + term] = true;
|
||||
evaluate_search(); } ); };
|
||||
function resetfilterlink() {
|
||||
return jslink("[reset all filters]",
|
||||
function () {
|
||||
search_terms = {};
|
||||
init_search_terms();
|
||||
evaluate_search(); } ).addClass("resetlink"); }
|
||||
|
||||
function evaluate_search () {
|
||||
var shown_terms = {};
|
||||
|
@ -395,7 +405,8 @@ $( document ).ready(function() {
|
|||
else if ( shown_terms[term] == 0 ) {
|
||||
return [ term, " " ]; }
|
||||
else {
|
||||
return addfilterlink ( term, term, "possible" ); } } ) );
|
||||
return addfilterlink ( term, term, "possible" ); } } ) )
|
||||
.append( resetfilterlink() );
|
||||
change_hash( new_h );
|
||||
|
||||
$("#packages_table tr:visible:even").removeClass("even");
|
||||
|
@ -494,8 +505,21 @@ $( document ).ready(function() {
|
|||
return addfilterlink ( tag, tag, "possible" ); } ) )),
|
||||
bstatus ); }
|
||||
|
||||
function pollNotice(){
|
||||
$.getJSON( "/notice.json", function( resp ) {
|
||||
$("#server_notice").html(resp);
|
||||
// If there is no notice, update every 5 minutes
|
||||
if ( resp == "" ) {
|
||||
$("#server_notice").hide();
|
||||
setTimeout(pollNotice, 1000*60*5); }
|
||||
// Otherwise, update every 5 seconds
|
||||
else {
|
||||
$("#server_notice").show();
|
||||
setTimeout(pollNotice, 1000*5); } }); }
|
||||
pollNotice();
|
||||
|
||||
var pkgdb = {};
|
||||
$.getJSON( "/pkgs-all.json.gz", function( resp ) {
|
||||
$.getJSON( "/pkgs-all.json", function( resp ) {
|
||||
pkgdb = resp;
|
||||
|
||||
var names = object_keys(pkgdb);
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
|
@ -42,6 +42,15 @@ body {
|
|||
margin: 1em;
|
||||
}
|
||||
|
||||
#server_notice {
|
||||
text-align: center;
|
||||
background: #ffffcc;
|
||||
padding-bottom: 0.5em;
|
||||
color: black;
|
||||
font-size: 150%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#logout {
|
||||
float: right;
|
||||
}
|
||||
|
@ -74,6 +83,7 @@ table.packages tbody tr.even {
|
|||
|
||||
#search_help {
|
||||
text-align: center;
|
||||
font-size: 80%;
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
#search_menu {
|
||||
|
@ -84,6 +94,11 @@ table.packages tbody tr.even {
|
|||
margin-top: 0em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
a.resetlink {
|
||||
font-weight: bold;
|
||||
font-size: 80%;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.menu_option {
|
||||
margin-right: 4em;
|
||||
|
|
Loading…
Reference in New Issue
Block a user