parent
5a350ce588
commit
a47b44b579
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"applicationId": "js.lemonero.wowtupid",
|
||||||
|
"port": 0,
|
||||||
|
"defaultMode": "window",
|
||||||
|
"enableHTTPServer": true,
|
||||||
|
"enableNativeAPI": true,
|
||||||
|
"url": "/resources/",
|
||||||
|
"nativeBlockList": [],
|
||||||
|
"globalVariables": {
|
||||||
|
"TEST": "Test Value"
|
||||||
|
},
|
||||||
|
"modes": {
|
||||||
|
"window": {
|
||||||
|
"title": "wowtupid",
|
||||||
|
"width": 800,
|
||||||
|
"height": 500,
|
||||||
|
"minWidth": 400,
|
||||||
|
"minHeight": 250,
|
||||||
|
"fullScreen": false,
|
||||||
|
"alwaysOnTop": false,
|
||||||
|
"icon": "/resources/icons/appIcon.png",
|
||||||
|
"enableInspector": true,
|
||||||
|
"borderless": false,
|
||||||
|
"maximize": false
|
||||||
|
},
|
||||||
|
"browser": {},
|
||||||
|
"cloud": {}
|
||||||
|
},
|
||||||
|
"cli": {
|
||||||
|
"binaryName": "wowtupid",
|
||||||
|
"resourcesPath": "/resources/",
|
||||||
|
"clientLibrary": "/resources/js/neutralino.js",
|
||||||
|
"binaryVersion": "2.4.1",
|
||||||
|
"clientVersion": "1.0.0"
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 965 B |
@ -0,0 +1,15 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>NeutralinoJs</title>
|
||||||
|
<link rel="stylesheet" href="styles.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="neutralinoapp">
|
||||||
|
<h1 id="name">wowtupid</h1>
|
||||||
|
</div>
|
||||||
|
<script src="js/neutralino.js"></script>
|
||||||
|
<script src="js/main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,14 @@
|
|||||||
|
let getUsername = async () => {
|
||||||
|
const key = NL_OS == 'Windows' ? 'USERNAME' : 'USER';
|
||||||
|
let value = '';
|
||||||
|
try {
|
||||||
|
value = (await Neutralino.os.getEnvar({ key })).value;
|
||||||
|
}
|
||||||
|
catch(e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
|
//document.getElementById('name').innerText = `Hello ${value}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
Neutralino.init();
|
||||||
|
getUsername();
|
@ -0,0 +1,23 @@
|
|||||||
|
html, body{
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#neutralinoapp {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: #FFD700;
|
||||||
|
}
|
||||||
|
|
||||||
|
#neutralinoapp h1 {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
font-family: Arial;
|
||||||
|
font-size: 48px;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
Loading…
Reference in new issue