Update - still working

This commit is contained in:
Astatin3
2024-02-09 18:52:05 -07:00
parent 0ea56990de
commit ef75228361
22 changed files with 461 additions and 85 deletions
+11
View File
@@ -0,0 +1,11 @@
<h4>This is a very simple example module!</h4>
<button id="testButton" onclick="testFunc()">test!</button>
<script>
function getel(el) {return document.getElementById(el)}
function testFunc() {
window.sendRaw('test1', {
data: 'test!'
})
}
</script>
+12
View File
@@ -0,0 +1,12 @@
mm = None
def test(ac, data):
mm.sendPopupColor(ac.rawClient, 'test!', 'test!', '#600060', True)
def init(moduleMaster):
global mm
mm = moduleMaster
mm.addAuthEventListener('exampleTest', test)
def main():
pass
+20
View File
@@ -0,0 +1,20 @@
{
"name": "example",
"creators": ["ASTATIN3"],
"version": "1.0",
"entrypoint": "modules/example/main.py",
"tabs": [
{
"name": "example",
"defaultPage": "example",
"pages": [
{
"type": "page",
"name": "example",
"requiredPermGroup": "",
"location": "modules/example/example.html"
}
]
}
]
}