mirror of
https://github.com/Astatin3/Polyboard.git
synced 2026-06-09 00:28:07 -06:00
Update - still working
This commit is contained in:
@@ -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>
|
||||
@@ -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
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user