getplacesettings added

This commit is contained in:
Justin 2023-08-16 16:27:49 +08:00 committed by GitHub
parent e6db488aa6
commit 11d7f77b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1884,6 +1884,26 @@ function getJokesSettings(page) {
}
// place settings
function getPlaceSettings(page) {
let title = page.querySelectorAll(".title-select")[0].checked;
let places = getListItems(page.querySelectorAll(".symbol-list")[0]);
let pause_place = page.querySelectorAll(".pause-select")[0].value;
let width = page.getElementById("myRange")[0].value;
settings = {
title: title,
places: places,
pause: pause_place,
width: width,
};
console.log(settings);
return settings;
}
// Join Network
let wifiSsidInput = document.getElementById("wifi-ssid-input");