time how long it takes to add the alert (negligible) + readme

This commit is contained in:
NunoSempere 2023-06-17 00:40:05 -06:00
parent 98f6d5630f
commit 5b1aab5e0c
5 changed files with 6 additions and 4 deletions

View File

@ -77,6 +77,8 @@ I just found out that you can inspect a GTK application with the GTK explorer if
#### Quality of life: #### Quality of life:
- [ ] Add css for js alerts - [ ] Add css for js alerts
- [x] Add custom alert whose css can be customized
- [ ] Debug problems, e.g., this version is non-blocking.
- [ ] Figure out better way to have plugins - [ ] Figure out better way to have plugins
- [ ] Double check newtab/next-tab behavior - [ ] Double check newtab/next-tab behavior
- [ ] Document creating new applications, e.g., as in [Asana for Linux](https://git.nunosempere.com/NunoSempere/asana-for-linux) - [ ] Document creating new applications, e.g., as in [Asana for Linux](https://git.nunosempere.com/NunoSempere/asana-for-linux)

View File

@ -1,7 +1,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#define STYLE_N 3858 + 1 #define STYLE_N 3943 + 1
void read_style_js(char* string) void read_style_js(char* string)
{ {

View File

@ -1,7 +1,7 @@
#ifndef STYLE #ifndef STYLE
#define STYLE #define STYLE
#define STYLE_N 3858 + 1 #define STYLE_N 3943 + 1
void read_style_js(char* string); void read_style_js(char* string);

View File

@ -127,7 +127,7 @@ window.alert = (message) => {
document.getElementById('alertMessage').textContent = message; document.getElementById('alertMessage').textContent = message;
alertDiv.classList.add('visible'); alertDiv.classList.add('visible');
} }
// ^ takes 0.014ms to run, so performance is not the concern here.
// timed with console.time, console.timeEnd
// alert("Hello world!")
document.body.style.visibility = "visible" document.body.style.visibility = "visible"

BIN
rose

Binary file not shown.