[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
committed by
WandererFan
parent
c469601f95
commit
222a2520b1
@@ -26,11 +26,11 @@ function load()
|
||||
|
||||
if (localStorage["notepad"]) {
|
||||
document.getElementById("notepad").value =
|
||||
localStorage["notepad"];// Load notepad from local storage
|
||||
localStorage["notepad"]; // Load notepad from local storage
|
||||
}
|
||||
document.getElementById("notepad").addEventListener("input", function() {
|
||||
localStorage.setItem("notepad",
|
||||
document.getElementById("notepad").value);// Save notepad on type
|
||||
document.getElementById("notepad").value); // Save notepad on type
|
||||
}, false);
|
||||
|
||||
if (allowDownloads == 1) {
|
||||
@@ -39,16 +39,16 @@ function load()
|
||||
ddiv.innerHTML = "Connecting...";
|
||||
var tobj = new JSONscriptRequest(
|
||||
'https://api.github.com/repos/FreeCAD/FreeCAD/commits?callback=printCommits');
|
||||
tobj.buildScriptTag();// Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
tobj.buildScriptTag(); // Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
ddiv.innerHTML = "Downloading latest news...";
|
||||
// load addons list
|
||||
ddiv = document.getElementById("addons");
|
||||
ddiv.innerHTML = "Connecting...";
|
||||
var tobj = new JSONscriptRequest(
|
||||
'https://api.github.com/repos/FreeCAD/FreeCAD-addons/contents?callback=printAddons');
|
||||
tobj.buildScriptTag();// Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
tobj.buildScriptTag(); // Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
ddiv.innerHTML = "Downloading addons list...";
|
||||
if (showForum == 1) {
|
||||
// load forum recent posts
|
||||
@@ -56,8 +56,8 @@ function load()
|
||||
ddiv.innerHTML = "Connecting...";
|
||||
var tobj = new JSONscriptRequest(
|
||||
'https://www.freecad.org/xml-to-json.php?callback=printForum&url=https://forum.freecad.org/feed.php');
|
||||
tobj.buildScriptTag();// Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
tobj.buildScriptTag(); // Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
ddiv.innerHTML = "Downloading addons list...";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user