mirror of
https://github.com/0x1d/esp8266-laser.git
synced 2025-12-17 02:46:39 +01:00
more styling
This commit is contained in:
@@ -73,7 +73,7 @@ var $ = function(selector){
|
||||
return $(this.parentElement);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// indicates that this element is a $ function
|
||||
element.is$ = function(){
|
||||
return true;
|
||||
|
||||
@@ -2,6 +2,12 @@ Sui.ready(() => {
|
||||
let debugResponse = (data) => {
|
||||
$('#response').html(data);
|
||||
};
|
||||
Sui.select('.collapsible').forEach((container) => {
|
||||
container.querySelector('.heading').addEventListener('click', (item) => {
|
||||
console.log(container);
|
||||
container.classList.toggle('open');
|
||||
});
|
||||
});
|
||||
[{
|
||||
api: 'MOTOR',
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user