-
-
-
-
-
-
-
-
-
-
-
-
-
-
test pushed id
-
cancel
-
save and exit
-
+
+
+
+
+
+
Configuration
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/electron/src/config.js b/electron/src/config.js
index b057829..83d0a99 100644
--- a/electron/src/config.js
+++ b/electron/src/config.js
@@ -6,7 +6,7 @@ const jsonEdit = require("edit-json-file");
new customTitlebar.Titlebar({
- backgroundColor: customTitlebar.Color.fromHex('#333333'),
+ backgroundColor: customTitlebar.Color.fromHex('#121212'),
menu: null,
icon: "../resources/icons/lol-icon.png"
});
@@ -19,6 +19,17 @@ $(document).ready(function(){
readConfig();
});
+setAccept = (event) => {
+ console.log($(event).html());
+ let text = $(event).html();
+ if(text==='Wait for last second'){
+ accept_timing='wait';
+ }
+ else if(text==='Accept immediately'){
+ accept_timing='asap';
+ }
+}
+
readConfig = () => {
let file = jsonEdit(__dirname+'/../config.json');
id=file.data.pushed_id;
@@ -36,7 +47,6 @@ readConfig = () => {
if(accept_timing==='asap'){
$('#default-option').html('Queue Accept timing (Set to accept ASAP)');
$('#default-option').attr('value','asap');
- M.AutoInit();
}
}
@@ -48,7 +58,9 @@ cancel = () =>{
save = () => { //save id to file
id=$('#pushed-id-field').val();
interval_time=$('#interval-field').val();
- accept_timing = $('#queue-accept-timing')[0].value;
+ if(!accept_timing){
+ accept_timing='wait';
+ }
let file = jsonEdit(__dirname+'/../config.json')
@@ -71,7 +83,7 @@ test = () =>{
data: { "id": tempID, "event": "test" },
url: 'https://us-central1-lol-boosted.cloudfunctions.net/sendNotification',
success: function (data) {
- $('#message').html('Sent test notification to Pushed ID "'+tempID+'"');
+ $('#message').html('Test notification sent');
},
error: function (data) {
$('#message').html("error in http request to firebase");
diff --git a/electron/src/index.css b/electron/src/index.css
index c2c78b0..60ce1ad 100644
--- a/electron/src/index.css
+++ b/electron/src/index.css
@@ -1,80 +1,29 @@
-h4{
- color: white;
+.card {
+ margin: 0 auto;
+ float: none;
+ margin-bottom: 10px;
+ background-color: #1e1e1e !important;
}
-#title{
-
- font-family: 'Helvetica',-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
- font-weight: bold;
- font-size: 32px;
+.container-after-titlebar{
+ /* background: linear-gradient(to bottom,#f4929d ,#cd5c6a); */
+ background-color: #121212;
}
-#message{
- font-family: "Helvetica",-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
- margin-top: 20px;
+.btn{
+ color: black !important;
+ background-color: #a668e8 !important;
+ border-color: #a668e8 !important;
}
-a{
- font-family: "Helvetica",-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
+p{
+ font-size: 15px;
}
-a:-webkit-any-link {
- color: -webkit-link;
- cursor: pointer;
- text-decoration: underline;
+#main-card{
+ width: 25rem;
}
-html,body {
- margin: 0;
- height: 100%;
-}
-
-#background{
- height: 100%;
- background: linear-gradient(to bottom,#f4929d ,#cd5c6a);
-}
-
-#menubar{
- height: 25px;
- width: 100%;
- background-color: #212121;
-}
-
-.bg-color{
- background-color: #333333 !important;
-}
-
-#valign{
- margin: 0;
- height: 100%;
-}
-
-#all-container{
- margin: 0;
- height: 100%;
-}
-
-#valign{
- vertical-align: middle;
-}
-.input-field input[type=text]:focus + label {
- color: #cd5c6a !important;
-}
-.input-field input[type=text]:label {
- color: white !important;
-}
-
-.input-field>label{
- color: white;
-}
-
-/* label underline focus color */
-.input-field input[type=text]:focus {
- border-bottom: 1px solid #cd5c6a !important;
- box-shadow: 0 1px 0 0 #cd5c6a !important;
-}
-
-input{
- color: #ffffff;
- font-size:1rem !important;
+#config-card{
+ width: 27rem;
}
\ No newline at end of file
diff --git a/electron/src/index.html b/electron/src/index.html
index e7cd0a7..acb1652 100644
--- a/electron/src/index.html
+++ b/electron/src/index.html
@@ -1,44 +1,61 @@
-
-
-
Boosted: League Notifications
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
🔥 Queue Listener
-
After the game instance is found, feel free to minimize this window. You will be notified when your game is ready.
-
-
-
+
+
+
+
Boosted: League Notifications
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Queue Listener
+
+ After the game instance is found, feel free to minimize this window. You will be notified when your game is ready.
+
+
+
+
+
+
+
-
-
+
+
+
+