Skip to content

Commit

Permalink
Trailing spaces removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueAndi committed Dec 4, 2023
1 parent 8900440 commit 5cdc87a
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion data/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h1 class="mt-5">About</h1>
</ul>
</div>
</main>

<!-- Footer -->
<footer class="footer mt-auto py-3">
<div class="container">
Expand Down
8 changes: 4 additions & 4 deletions data/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h1 class="mt-5">Debug</h1>
</div>
</div>
</main>

<!-- Footer -->
<footer class="footer mt-auto py-3">
<div class="container">
Expand Down Expand Up @@ -137,7 +137,7 @@ <h1 class="mt-5">Debug</h1>

function toggleLogLevel(logLevel) {
var index = filter.indexOf(logLevel);

if (0 > index) {
filter.push(logLevel);
} else {
Expand Down Expand Up @@ -186,7 +186,7 @@ <h1 class="mt-5">Debug</h1>
case 5:
color = "#0004FF";
break;

default:
color = "#0EFF00";
break;
Expand Down Expand Up @@ -378,7 +378,7 @@ <h1 class="mt-5">Debug</h1>
/* Enable measurement button too. */
isIperfAvailable = true;
enableUI();

}).catch(function(err) {
if ("undefined" !== typeof err) {
console.error(err);
Expand Down
18 changes: 9 additions & 9 deletions data/display.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h1 class="mt-5">Display</h1>
</p>
</div>
</main>

<!-- Footer -->
<footer class="footer mt-auto py-3">
<div class="container">
Expand Down Expand Up @@ -131,7 +131,7 @@ <h1 class="mt-5">Display</h1>
/* If websocket connection is unexpectedly closed, clean up. */
function wsOnClosed() {
disableUI();

window.clearTimeout(timerId);

if (false === isPageUnload) {
Expand Down Expand Up @@ -244,7 +244,7 @@ <h1 class="mt-5">Display</h1>
}).finally(function() {
});
}

function updateFadeEffect() {
/* Update label accordingly. */
if (1 === currentFadeEffect) {
Expand Down Expand Up @@ -382,7 +382,7 @@ <h1 class="mt-5">Display</h1>
} else {
$divSlot.attr("class", "divSlot sticky");
}

$divSlot.attr("ondragover", "allowDrop(event)");
$divSlot.attr("ondrop", "drop(event)");
} else {
Expand All @@ -395,7 +395,7 @@ <h1 class="mt-5">Display</h1>
}

$divSlot.attr("id", index);

$header = $("<header>");
$header.append("Slot " + index + "<br />");

Expand All @@ -406,7 +406,7 @@ <h1 class="mt-5">Display</h1>
.attr("min", "1")
.attr("max", "3600")
.attr("onchange", "setDuration(" + index + ")");

$header.append($inputDuration);
$header.append("[s]");

Expand Down Expand Up @@ -457,12 +457,12 @@ <h1 class="mt-5">Display</h1>
.attr("ondragover", "allowDrop(event)")
.attr("ondrop", "drop(event)")
.attr("id", "uninstall");

$header = $("<header>")
.text("Uninstall");

$divSlot.append($header);

$divSlots.append($divSlot);
});
}
Expand Down
8 changes: 4 additions & 4 deletions data/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h4 id="fileName" class="text-secondary"></h4>
</div>
<div class="input-group-append" style="padding-left: 10px">
<label for="directory">Directory:</label>
<input type="text" id="directory" name="directory" value="/configuration" size="40" />
<input type="text" id="directory" name="directory" value="/configuration" size="40" />
</div>
<div class="input-group-append">
<button class="btn btn-light" type="button" onclick="upload();">Upload</button>
Expand Down Expand Up @@ -285,7 +285,7 @@ <h2 class="mt-1">Files</h2>
$("#editor").collapse("show");
$("#preview").collapse("hide");
$("#fileName").text(loadedFile);

return dialog.show("Loading file", "<p>Please wait, its loading.</p>")
.then(function() {
return restClient.readFile(filename);
Expand Down Expand Up @@ -398,7 +398,7 @@ <h2 class="mt-1">Files</h2>

$.fn.extend({
treed: function (o) {

//initialize each of the top levels
var tree = $(this);
tree.addClass("tree");
Expand All @@ -415,7 +415,7 @@ <h2 class="mt-1">Files</h2>
});
branch.children().not("i").children().toggle();
});

//fire event from the dynamically added icon
tree.find('.branch .indicator').each(function(){
$(this).on('click', function () {
Expand Down
2 changes: 1 addition & 1 deletion data/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1 class="mt-5">Error</h1>
</div>
</div>
</main>

<!-- Footer -->
<footer class="footer mt-auto py-3">
<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1 class="mt-5">Welcome to</h1>
<p>~SW_BRANCH~</p>
</div>
</main>

<!-- Footer -->
<footer class="footer mt-auto py-3">
<div class="container">
Expand Down
4 changes: 2 additions & 2 deletions data/js/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dialog._show = function(title, message) {
$("#dialogTitle").text(title);
$("#dialogBody").html(message);

$("#modalDialog").on("shown.bs.modal", function() {
$("#modalDialog").on("shown.bs.modal", function() {
$("#modalDialog").off("shown.bs.modal");
resolve();
});
Expand All @@ -18,7 +18,7 @@ dialog._show = function(title, message) {
dialog.hide = function() {
return new Promise(function(resolve, reject) {

$("#modalDialog").on("hidden.bs.modal", function() {
$("#modalDialog").on("hidden.bs.modal", function() {
$("#modalDialog").off("hidden.bs.modal");
resolve();
});
Expand Down
4 changes: 2 additions & 2 deletions data/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ menu._createMenuItem = function(ulId, menuItem) {
.attr("class", "nav-link")
.attr("href", menuItem.hyperRef)
.text(menuItem.title);

if (location.pathname === menuItem.hyperRef) {
$(anchor).addClass("active");
}
Expand Down Expand Up @@ -114,7 +114,7 @@ menu._createSubMenuItem = function($div, subMenuItem) {
.attr("href", subMenuItem.hyperRef)
.text(subMenuItem.title);
var isActive = false;

$($div).append(anchor);

if (location.pathname === subMenuItem.hyperRef) {
Expand Down
4 changes: 2 additions & 2 deletions data/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ utils.makeRequest = function(options) {
xhr.setRequestHeader(key, options.headers[key]);
});
}

if ("function" === typeof options.onProgress) {
xhr.upload.onprogress = options.onProgress;
}

xhr.onload = function() {
var jsonRsp = null;

Expand Down
2 changes: 1 addition & 1 deletion data/js/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pixelix.ws.getLogLevelStr = function(logLevel) {
case 5:
str = "TRACE";
break;

default:
str = "UNKNWON";
break;
Expand Down
4 changes: 2 additions & 2 deletions data/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h1 class="mt-5">Settings</h1>
<p id="settings"></p>
</div>
</main>

<!-- Footer -->
<footer class="footer mt-auto py-3">
<div class="container">
Expand Down Expand Up @@ -129,7 +129,7 @@ <h1 class="mt-5">Settings</h1>
.attr("for", "for-" + index)
.attr("class", "form-label")
.text(data[index].name);

if ("string" === typeof data[index].value) {
inputFieldType = "text"
if ("boolean" === typeof data[index].isSecret) {
Expand Down
10 changes: 5 additions & 5 deletions data/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h1 class="mt-5">Update</h1>
</div>
<div class="progress">
<div id="progressBar" class="progress-bar" role="progressbar" style="width: 0%;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">0%</div>
</div>
</div>
</div>

<div class="tab-pane fade" id="backup" role="tabpanel" aria-labelledby="backup-tab">
Expand All @@ -99,7 +99,7 @@ <h1 class="mt-5">Update</h1>

</div>
</main>

<!-- Footer -->
<footer class="footer mt-auto py-3">
<div class="container">
Expand Down Expand Up @@ -160,7 +160,7 @@ <h1 class="mt-5">Update</h1>
var files = [];
var fileParameters = {};
var fileHeaders = {};

if (2 < fileCnt) {
fileCnt = 2;
}
Expand All @@ -170,7 +170,7 @@ <h1 class="mt-5">Update</h1>

if (("~FIRMWARE_FILENAME~" === file.name) ||
("~FILESYSTEM_FILENAME~" === file.name)) {

files.push(file);
}
}
Expand Down Expand Up @@ -337,7 +337,7 @@ <h1 class="mt-5">Update</h1>
$(document).ready(function() {
menu.addSubMenu(menu.data, "Plugins", pluginSubMenu);
menu.create("menu", menu.data);

$("#inputFile").on("change", function() {
var fileName = $(this).val().split("\\").pop();
$(this).next(".custom-file-label").addClass("selected").html(fileName);
Expand Down

0 comments on commit 5cdc87a

Please sign in to comment.