Convert webbuild.js.inc into canonically include script webbuild-2.js
This commit is contained in:
parent
7b72f0a5d3
commit
0c8fa3d288
@ -54,13 +54,10 @@ print '<link rel="shortcut icon" type="image/x-icon" href="' . get_stylesheet_di
|
||||
print '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory_uri() . '/styles/webbuild.css">' . PHP_EOL;
|
||||
# webbuild
|
||||
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/webbuild/webbuild.js"></script>';
|
||||
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/webbuild/webbuild-2.js"></script>';
|
||||
# distroquery
|
||||
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/distroquery.js"></script>' . PHP_EOL;
|
||||
|
||||
$file = fopen(get_stylesheet_directory() . "/webbuild.js.inc", "r");
|
||||
print fread($file, 20000);
|
||||
fclose($file);
|
||||
|
||||
# webbuild css
|
||||
print '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory_uri() . '/styles/webbuild-post.css"/>';
|
||||
|
||||
|
@ -85,13 +85,9 @@ print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() .
|
||||
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/codemirror/addon/search/searchcursor.js"></script>' . PHP_EOL;
|
||||
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/codemirror/addon/dialog/dialog.js"></script>' . PHP_EOL;
|
||||
print '<link rel="stylesheet" href="' . get_stylesheet_directory_uri() . '/scripts/codemirror/addon/dialog/dialog.css">' . PHP_EOL;
|
||||
# webbuild js
|
||||
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/webbuild/webbuild.js"></script>' . PHP_EOL;
|
||||
|
||||
$file = fopen(get_stylesheet_directory() . "/webbuild.js.inc", "r");
|
||||
print fread($file, 20000);
|
||||
fclose($file);
|
||||
|
||||
|
||||
print '<script type="text/javascript" src="' . get_stylesheet_directory_uri() . '/scripts/webbuild/webbuild-2.js"></script>' . PHP_EOL;
|
||||
# webbuild css
|
||||
print '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory_uri() . '/styles/webbuild-post.css"/>';
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var lastupdate = 0;
|
||||
var reloadtime = 15000;
|
||||
var editor;
|
||||
@ -129,6 +127,7 @@ function ajax_getvalues(request,confirm) {
|
||||
if (to > start) {
|
||||
var customscroll = document.getElementById("matrix").scrollTop <
|
||||
(document.getElementById("matrix").scrollHeight - document.getElementById("matrix").clientHeight);
|
||||
console.log(this.responseText.substring(start,to));
|
||||
document.getElementById("matrix").innerHTML =
|
||||
"<div id=matrixoutput><pre>" + this.responseText.substring(start,to).replace("</pre>","</pre>") + "</pre></div>";
|
||||
currpos = document.getElementById("matrixoutput").innerHTML.length;
|
||||
@ -228,4 +227,3 @@ function webbuild_status_getvalues() {
|
||||
xmlhttp.send(null);
|
||||
setTimeout("webbuild_status_getvalues()", webbuild_status_reloadtime);
|
||||
}
|
||||
</script>
|
@ -160,12 +160,10 @@ function replaceHTML(el, html) {
|
||||
|
||||
function getDownload(request) {
|
||||
if (host != undefined) {
|
||||
webbuildhost=host;
|
||||
var url = "/cgi-bin/webbuild-" + host + ".cgi";
|
||||
} else {
|
||||
alert("ERROR: webbuildhost is undefined!");
|
||||
return;
|
||||
var url = "/cgi-bin/webbuild";
|
||||
}
|
||||
var url = "/cgi-bin/webbuild-" + webbuildhost + ".cgi";
|
||||
|
||||
if (request != "")
|
||||
request=request+"&USER="+user+"&USER_EMAIL="+user_email+"&SECRET="+encodeURIComponent(secret);
|
||||
|
Loading…
Reference in New Issue
Block a user