more styling

This commit is contained in:
2017-11-03 02:00:12 +00:00
parent f3508ce42b
commit 740e37c509
8 changed files with 229 additions and 167 deletions

View File

@@ -73,7 +73,7 @@ var $ = function(selector){
return $(this.parentElement);
}
}
// indicates that this element is a $ function
element.is$ = function(){
return true;

View File

@@ -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',