Revert "htdocs: move inline JS to a separate file."

This reverts commit 3a9740b110.

Conflicts:
	htdocs/archive/index.php
	htdocs/demo/index.php
	htdocs/make.js
	htdocs/run-tests.js
	htdocs/site/js/cppcheck.js
	htdocs/site/js/pack.js
This commit is contained in:
XhmikosR 2013-10-12 17:26:57 +03:00
parent cd87699eb1
commit 911e1f9559
7 changed files with 23 additions and 46 deletions

View File

@ -13,6 +13,15 @@
//]]>
</script>
<script src="/site/js/pack.js" type="text/javascript"></script>
<script type="text/javascript">
function checkCodeLength() {
if (document.f.code.value.length > 1024) {
alert("code length exceeded");
return false;
}
return true;
}
</script>
</head>
<body>
<div id="header">

View File

@ -72,6 +72,11 @@
//]]>
</script>
<script src="/site/js/pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#resultsTable").tableFilter();
});
</script>
</head>
<body>
<div id="header">

View File

@ -17,6 +17,11 @@
//]]>
</script>
<script src="/site/js/pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("#github-commits").listCommits("danmar", "cppcheck", "master");
});
</script>
</head>
<body>
<div id="header">

View File

@ -53,8 +53,7 @@
echo();
echo("### Minifying js files...");
var inJs = cat(["site/js/cppcheck.js",
"site/js/github.js",
var inJs = cat(["site/js/github.js",
"site/js/picnet.table.filter.min.js"]);
var minifiedJs = UglifyJS.minify(inJs, {

View File

@ -32,7 +32,7 @@ if (!test("-f", jshintBin)) {
exit(1);
}
if (exec("node" + " " + jshintBin + " " + "make.js run-tests.js site/js/cppcheck.js site/js/github.js").code !== 0) {
if (exec("node" + " " + jshintBin + " " + "make.js run-tests.js site/js/github.js").code !== 0) {
echo("*** JSHint failed! (return code != 0)");
echo();
} else {

View File

@ -1,41 +0,0 @@
/* jshint unused:false, jquery:true, browser:true, devel:true */
"use strict";
function addFile() {
var name = prompt("Name of library/platform/etc", "");
if (name !== null) {
window.location = "http://cppcheck.sourceforge.net/cgi-bin/addfile.cgi?name=" + name;
}
}
function editFile(name, version) {
window.location = "http://cppcheck.sourceforge.net/cgi-bin/edit.cgi?name=" + name + "&version=" + version;
}
function renameFile(name1, version) {
var name2 = prompt("Name", name1);
if (name2 !== null) {
window.location = "http://cppcheck.sourceforge.net/cgi-bin/renamefile.cgi?name1=" + name1 + "&name2=" + name2;
}
}
function deleteFile(name, version) {
window.location = "http://cppcheck.sourceforge.net/cgi-bin/deletefile.cgi?name=" + name + "&version=" + version;
}
function checkCodeLength() {
if (document.f.code.value.length > 1024) {
alert("Code length exceeded.");
return false;
}
return true;
}
$(document).ready(function() {
$("#resultsTable").tableFilter();
});
$(function() {
$("#github-commits").listCommits("danmar", "cppcheck", "master");
});

File diff suppressed because one or more lines are too long