combine css and js files

This commit is contained in:
XhmikosR 2012-11-29 17:02:25 +02:00 committed by Daniel Marjamäki
parent 1479a50db9
commit ebd5c17b52
12 changed files with 25 additions and 22 deletions

View File

@ -4,8 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Online Demo - Cppcheck</title>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Orbitron&amp;text=Cppcheck" />
<link rel="stylesheet" type="text/css" href="/site/css/all.min.css" />
<link rel="stylesheet" type="text/css" href="/site/css/demo.min.css" />
<link rel="stylesheet" type="text/css" href="/site/css/pack.css" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<script type="text/javascript">
function checkCodeLength() {

View File

@ -63,11 +63,10 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Online Demo Report - Cppcheck</title>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Orbitron&amp;text=Cppcheck" />
<link rel="stylesheet" type="text/css" href="/site/css/all.min.css" />
<link rel="stylesheet" type="text/css" href="/site/css/demo.min.css" />
<link rel="stylesheet" type="text/css" href="/site/css/pack.css" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script src="/site/js/picnet.table.filter.min.pack.js" type="text/javascript"></script>
<script src="/site/js/pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#resultsTable').tableFilter();

View File

@ -4,14 +4,14 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Developer Information - Cppcheck</title>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Orbitron&amp;text=Cppcheck" />
<link rel="stylesheet" type="text/css" href="/site/css/all.min.css" />
<link rel="stylesheet" type="text/css" href="/site/css/pack.css" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="alternate" type="application/atom+xml" title="Recent Commits to cppcheck:master"
href="https://github.com/danmar/cppcheck/commits/master.atom" />
<link rel="alternate" type="application/atom+xml" title="Trac Timeline"
href="http://sourceforge.net/apps/trac/cppcheck/timeline?changeset=on&amp;ticket=on&amp;milestone=on&amp;wiki=on&amp;max=50&amp;daysback=90&amp;format=rss" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script src="/site/js/github.min.js" type="text/javascript"></script>
<script src="/site/js/pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("#github-commits").listCommits("danmar", "cppcheck", "master");

View File

@ -10,7 +10,7 @@ code, errors, bugs, compilers, bounds checking, memory leaks, obsolete functions
uninitialized variables, unused functions" />
<title>Cppcheck - A tool for static C/C++ code analysis</title>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Orbitron&amp;text=Cppcheck" />
<link rel="stylesheet" type="text/css" href="/site/css/all.min.css" />
<link rel="stylesheet" type="text/css" href="/site/css/pack.css" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="Project News"
href="http://sourceforge.net/export/rss2_projnews.php?group_id=195752" />

View File

@ -1 +0,0 @@
.geshicode{padding:.5em;background:#f7f7f7;border:1px solid #e2e2e2}#resultsTable{border-collapse:collapse}#resultsTable th{padding:.25em;text-align:left;background:#e2e2e2;border:1px solid #e2e2e2}#resultsTable td{padding:.25em;background:#f7f7f7;border:1px solid #e2e2e2}#resultsTable .center{text-align:center}.maxChars{margin-left:2em;color:#888;font-size:smaller}.cpp.geshicode .de1,.cpp.geshicode .de2{font:400 normal 1em/1.2em monospace;margin:0;padding:0;background:0;vertical-align:top}.cpp.geshicode{font-family:monospace}.cpp.geshicode .imp{font-weight:700;color:red}.cpp.geshicode li,.cpp.geshicode .li1{font-weight:400;vertical-align:top}.cpp.geshicode .ln{width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;color:#999}.cpp.geshicode .kw1{color:#00f}.cpp.geshicode .kw2{color:#00f}.cpp.geshicode .kw3{color:#00d}.cpp.geshicode .kw4{color:#00f}.cpp.geshicode .co1{color:#666}.cpp.geshicode .co2{color:#390}.cpp.geshicode .coMULTI{color:red;font-style:italic}.cpp.geshicode .es0{color:#009;font-weight:700}.cpp.geshicode .es1{color:#009;font-weight:700}.cpp.geshicode .es2{color:#609;font-weight:700}.cpp.geshicode .es3{color:#609;font-weight:700}.cpp.geshicode .es4{color:#609;font-weight:700}.cpp.geshicode .es5{color:#069;font-weight:700}.cpp.geshicode .br0{color:green}.cpp.geshicode .sy0{color:green}.cpp.geshicode .sy1{color:navy}.cpp.geshicode .sy2{color:#000040}.cpp.geshicode .sy3{color:#000040}.cpp.geshicode .sy4{color:teal}.cpp.geshicode .st0{color:red}.cpp.geshicode .nu0{color:#00d}.cpp.geshicode .nu6{color:#208080}.cpp.geshicode .nu8{color:#208080}.cpp.geshicode .nu12{color:#208080}.cpp.geshicode .nu16{color:purple}.cpp.geshicode .nu17{color:purple}.cpp.geshicode .nu18{color:purple}.cpp.geshicode .nu19{color:purple}.cpp.geshicode .me1{color:#078}.cpp.geshicode .me2{color:#078}.cpp.geshicode span.xtra{display:block}

View File

@ -1 +1 @@
body{margin:0;padding:0;font-family:Calibri,Verdana,sans-serif;color:#000;background:#eee}dt{font-weight:700}a:link,a:visited{color:#036;text-decoration:underline}a:focus{color:#369;text-decoration:none}a:link:hover,a:visited:hover,a:active{color:#369;text-decoration:none}#header{color:#69c;background:#036}#header h1{margin:0;padding:0;font-family:Orbitron,Calibri,Verdana,sans-serif}#header p{margin:0;padding:0;font-size:larger}#tabs{color:#eee;background:#369;border-top:1px solid #000;border-bottom:1px solid #000}#tabs ul{margin:0;padding:0;list-style-type:none;font-size:larger}#tabs ul li{display:inline;margin:0;padding:0 .5em;border-right:1px solid #000}#tabs ul li:first-child{padding-left:0}#tabs ul li:last-child{border:0}#tabs a:link,#tabs a:visited{color:#eee;text-decoration:none}#tabs a:focus,#tabs a:hover,#tabs a:active{color:#fff;text-decoration:underline}#anchors ul{margin:0;padding:.5em 0;list-style-type:none;font-size:smaller}#anchors ul li{display:inline;margin:0;padding:0 .5em}#anchors ul li:first-child{padding-left:0}#anchors .wrap{padding:0}.wrap{width:50em;margin:0 auto;padding:.5em}.rssfeeditems em{margin-left:.5em;color:#888;font-size:smaller}a.downloadnow{display:block;width:12em;margin:0;padding:5px;text-align:center;text-decoration:none;color:#fff;background:#060;border:1px solid #060;border-radius:.5em;-moz-border-radius:.5em;-khtml-border-radius:.5em;-webkit-border-radius:.5em}a.downloadnow:link,a.downloadnow:visited{text-decoration:none;color:#fff}a.downloadnow:focus,a.downloadnow:hover{text-decoration:none;color:#fff;background:#090}a.downloadnow strong{display:block;font-size:larger;font-weight:700}a.downloadnow em{display:block;font-size:smaller;font-style:normal}pre.cmd{padding:.5em;background:#f7f7f7;border:1px solid silver;border-left:10px solid silver}@media print{#header{color:#000;border-bottom:1px solid #000}#tabs{display:none}#resultsTable th{background:#fff;border:1px solid #000}#resultsTable td{background:#fff;border:1px solid #000}}
body{margin:0;padding:0;font-family:Calibri,Verdana,sans-serif;color:#000;background:#eee}dt{font-weight:700}a:link,a:visited{color:#036;text-decoration:underline}a:focus{color:#369;text-decoration:none}a:link:hover,a:visited:hover,a:active{color:#369;text-decoration:none}#header{color:#69c;background:#036}#header h1{margin:0;padding:0;font-family:Orbitron,Calibri,Verdana,sans-serif}#header p{margin:0;padding:0;font-size:larger}#tabs{color:#eee;background:#369;border-top:1px solid #000;border-bottom:1px solid #000}#tabs ul{margin:0;padding:0;list-style-type:none;font-size:larger}#tabs ul li{display:inline;margin:0;padding:0 .5em;border-right:1px solid #000}#tabs ul li:first-child{padding-left:0}#tabs ul li:last-child{border:0}#tabs a:link,#tabs a:visited{color:#eee;text-decoration:none}#tabs a:focus,#tabs a:hover,#tabs a:active{color:#fff;text-decoration:underline}#anchors ul{margin:0;padding:.5em 0;list-style-type:none;font-size:smaller}#anchors ul li{display:inline;margin:0;padding:0 .5em}#anchors ul li:first-child{padding-left:0}#anchors .wrap{padding:0}.wrap{width:50em;margin:0 auto;padding:.5em}.rssfeeditems em{margin-left:.5em;color:#888;font-size:smaller}a.downloadnow{display:block;width:12em;margin:0;padding:5px;text-align:center;text-decoration:none;color:#fff;background:#060;border:1px solid #060;border-radius:.5em;-moz-border-radius:.5em;-khtml-border-radius:.5em;-webkit-border-radius:.5em}a.downloadnow:link,a.downloadnow:visited{text-decoration:none;color:#fff}a.downloadnow:focus,a.downloadnow:hover{text-decoration:none;color:#fff;background:#090}a.downloadnow strong{display:block;font-size:larger;font-weight:700}a.downloadnow em{display:block;font-size:smaller;font-style:normal}pre.cmd{padding:.5em;background:#f7f7f7;border:1px solid silver;border-left:10px solid silver}@media print{#header{color:#000;border-bottom:1px solid #000}#tabs{display:none}#resultsTable th{background:#fff;border:1px solid #000}#resultsTable td{background:#fff;border:1px solid #000}}.geshicode{padding:.5em;background:#f7f7f7;border:1px solid #e2e2e2}#resultsTable{border-collapse:collapse}#resultsTable th{padding:.25em;text-align:left;background:#e2e2e2;border:1px solid #e2e2e2}#resultsTable td{padding:.25em;background:#f7f7f7;border:1px solid #e2e2e2}#resultsTable .center{text-align:center}.maxChars{margin-left:2em;color:#888;font-size:smaller}.cpp.geshicode .de1,.cpp.geshicode .de2{font:400 normal 1em/1.2em monospace;margin:0;padding:0;background:0;vertical-align:top}.cpp.geshicode{font-family:monospace}.cpp.geshicode .imp{font-weight:700;color:red}.cpp.geshicode li,.cpp.geshicode .li1{font-weight:400;vertical-align:top}.cpp.geshicode .ln{width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;color:#999}.cpp.geshicode .kw1{color:#00f}.cpp.geshicode .kw2{color:#00f}.cpp.geshicode .kw3{color:#00d}.cpp.geshicode .kw4{color:#00f}.cpp.geshicode .co1{color:#666}.cpp.geshicode .co2{color:#390}.cpp.geshicode .coMULTI{color:red;font-style:italic}.cpp.geshicode .es0{color:#009;font-weight:700}.cpp.geshicode .es1{color:#009;font-weight:700}.cpp.geshicode .es2{color:#609;font-weight:700}.cpp.geshicode .es3{color:#609;font-weight:700}.cpp.geshicode .es4{color:#609;font-weight:700}.cpp.geshicode .es5{color:#069;font-weight:700}.cpp.geshicode .br0{color:green}.cpp.geshicode .sy0{color:green}.cpp.geshicode .sy1{color:navy}.cpp.geshicode .sy2{color:#000040}.cpp.geshicode .sy3{color:#000040}.cpp.geshicode .sy4{color:teal}.cpp.geshicode .st0{color:red}.cpp.geshicode .nu0{color:#00d}.cpp.geshicode .nu6{color:#208080}.cpp.geshicode .nu8{color:#208080}.cpp.geshicode .nu12{color:#208080}.cpp.geshicode .nu16{color:purple}.cpp.geshicode .nu17{color:purple}.cpp.geshicode .nu18{color:purple}.cpp.geshicode .nu19{color:purple}.cpp.geshicode .me1{color:#078}.cpp.geshicode .me2{color:#078}.cpp.geshicode span.xtra{display:block}

View File

@ -19,7 +19,9 @@ jQuery.fn.listCommits = function(username, repository, branch) {
list.append('<li><a href="' + githubUrl + '">' + shortMessage + '</a> <em>by <strong>' + author + '</strong></em></li>');
if (i == 9) return false;
if (i === 9) {
return false;
}
});
});

View File

@ -1 +0,0 @@
jQuery.fn.listCommits=function(t,i,s){function e(t){var i=t.indexOf("\n");return i>-1?t.slice(0,i):t}this.html("<span>Querying GitHub for recent commits&hellip;</span>");var a=this;$.getJSON("https://api.github.com/repos/"+t+"/"+i+"/commits?sha="+s+"&callback=?",function(s){var n=s.data,m=$('<ul class="rssfeeditems"/>');a.empty().append(m),$(n).each(function(s){var a="https://github.com/"+t+"/"+i+"/commit/"+this.sha,n=e(this.commit.message),o=this.author.login;return""===o&&(o=this.author.name),m.append('<li><a href="'+a+'">'+n+"</a> <em>by <strong>"+o+"</strong></em></li>"),9==s?!1:void 0})})};

2
htdocs/site/js/pack.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,7 @@
#!/bin/bash
cleancss -o css/all.min.css css/all.css
cleancss -o css/demo.min.css css/demo.css
# install node.js and then run:
# npm install -g clean-css
# npm install -g uglify-js
uglifyjs js/github.js -o js/github.min.js -c -m
uglifyjs js/picnet.table.filter.min.js -o js/picnet.table.filter.min.pack.js -c -m
cat css/all.css css/demo.css | cleancss -o css/pack.css
uglifyjs js/github.js js/picnet.table.filter.min.js -o js/pack.js -c -m

View File

@ -1,7 +1,11 @@
@echo off
rem install node.js and then run:
rem npm install -g clean-css
rem npm install -g uglify-js
pushd %~dp0
cmd /c cleancss -o css/all.min.css css/all.css
cmd /c cleancss -o css/demo.min.css css/demo.css
cmd /c uglifyjs js/github.js -o js/github.min.js -c -m
cmd /c uglifyjs js/picnet.table.filter.min.js -o js/picnet.table.filter.min.pack.js -c -m
type css\all.css css\demo.css | cleancss -o css\pack.css
cmd /c uglifyjs js/github.js js/picnet.table.filter.min.js -o js/pack.js -c -m
popd