From ce10af9732cd89125d274457218098be60c83e26 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Thu, 2 Mar 2023 18:03:51 +0100 Subject: [PATCH] format --- ui/index.html | 341 +++++++++++++++++++++++++++----------------------- ui/main.js | 97 +++++++------- ui/style.css | 15 +-- 3 files changed, 236 insertions(+), 217 deletions(-) diff --git a/ui/index.html b/ui/index.html index c891d1e..fd7b2c6 100644 --- a/ui/index.html +++ b/ui/index.html @@ -1,178 +1,201 @@ - - - - - - + + + + + UI - - - - + + + +
-
- - - - - - - - -
+ +

+ + + + + + + + + + + +
- - - - - - - - \ No newline at end of file + + + diff --git a/ui/main.js b/ui/main.js index b624b37..3a4c12b 100644 --- a/ui/main.js +++ b/ui/main.js @@ -1,63 +1,68 @@ -const { app, BrowserWindow, ipcMain } = require('electron'); -const { globalShortcut } = require('electron'); +const { app, BrowserWindow, ipcMain } = require('electron') +const { globalShortcut } = require('electron') const createWindow = () => { - ipcMain.on("number",(event,data)=>{ //Reads number var from index - Execounter = 0; + ipcMain.on('number', (event, data) => { + //Reads number var from index + Execounter = 0 console.warn(data) - Execounter = data; + Execounter = data console.warn(Execounter) - }) + }) // Create the browser window. - mainWindow = new BrowserWindow({ - width: 800, - height: 600, - webPreferences: { - nodeIntegration: true, - contextIsolation: false, - enableRemoteModule: true - }, - autoHideMenuBar: true - }); - mainWindow.loadFile("index.html") //loads index.html - - - - -}; - + mainWindow = new BrowserWindow({ + width: 800, + height: 600, + webPreferences: { + nodeIntegration: true, + contextIsolation: false, + enableRemoteModule: true, + }, + autoHideMenuBar: true, + }) + mainWindow.loadFile('index.html') //loads index.html +} app.whenReady().then(() => { - createWindow(); - - const { ExitKey1, ExitKey2, GameExe1, GameExe2, GameExe3, GameExe4, GameExe5, GameExe6 } = require("./Vars.js") //imports exitkeys from vars.js - const { execFile, exec, spawn } = require('child_process'); - console.log(ExitKey1 + " + " + ExitKey2); - - - const ret = globalShortcut.register(ExitKey1 + " + " + ExitKey2, () => { //makes globalshortcut from vars in vars.js + createWindow() + + const { + ExitKey1, + ExitKey2, + GameExe1, + GameExe2, + GameExe3, + GameExe4, + GameExe5, + GameExe6, + } = require('./Vars.js') //imports exitkeys from vars.js + const { execFile, exec, spawn } = require('child_process') + console.log(ExitKey1 + ' + ' + ExitKey2) + + const ret = globalShortcut.register(ExitKey1 + ' + ' + ExitKey2, () => { + //makes globalshortcut from vars in vars.js console.log('CommandOrControl+X is pressed') //On shortcut kills game exe - switch(Execounter){ + switch (Execounter) { case 1: - exec("taskkill /im " + GameExe1); - break; + exec('taskkill /im ' + GameExe1) + break case 2: - exec("taskkill /im " + GameExe2); - break; + exec('taskkill /im ' + GameExe2) + break case 3: - exec("taskkill /im " + GameExe3); - break; + exec('taskkill /im ' + GameExe3) + break case 4: - exec("taskkill /im " + GameExe4); - break; + exec('taskkill /im ' + GameExe4) + break case 5: - exec("taskkill /im " + GameExe5); - break; + exec('taskkill /im ' + GameExe5) + break case 6: - exec("taskkill /im " + GameExe6); - break; + exec('taskkill /im ' + GameExe6) + break default: - break; + break } }) - }); +}) diff --git a/ui/style.css b/ui/style.css index e14e98c..e460ab0 100644 --- a/ui/style.css +++ b/ui/style.css @@ -9,15 +9,11 @@ padding: 2rem; margin: 0 auto; /*background-color: rgb(56, 55, 55, 1);*/ - - } body { - margin: 0; overflow: hidden; - } * { @@ -36,8 +32,6 @@ body { border-radius: 15px; position: relative; border-radius: 15px; - - } .move img { @@ -55,7 +49,6 @@ body { } .sex { - opacity: 0; bottom: 110px; z-index: 1; @@ -64,8 +57,6 @@ body { /* color: rgb(15, 12, 12, 0.88); */ font-family: Verdana, Geneva, Tahoma, sans-serif; font-weight: bolder; - - } @keyframes blik { @@ -92,7 +83,7 @@ body { .move:focus h1 { transition: opacity 1s, bottom 0.8s; z-index: 1; - opacity: 0.90; + opacity: 0.9; bottom: 80px; position: relative; @@ -101,7 +92,7 @@ body { .move:focus img { transition: opacity 0.6s, filter 1s; opacity: 0.68; - filter: blur(2.2px); + filter: blur(2.2px); } .move img { @@ -113,4 +104,4 @@ body { aspect-ratio: 3/4; background-image: url("JPGS/BACKGROUND GOOD.png"); background-size: cover; -} \ No newline at end of file +}