[~] Refactor

This commit is contained in:
Siarhei Siniak 2024-08-17 10:44:30 +03:00
parent f2b8862683
commit ce77de626c
3 changed files with 23 additions and 5 deletions

BIN
deps/greasyfork/dist/linkedin.user.js (Stored with Git LFS) vendored

Binary file not shown.

BIN
deps/greasyfork/dist/linkedin.user.js.map (Stored with Git LFS) vendored

Binary file not shown.

@ -70,6 +70,8 @@ class Linkedin {
data : Map<string, any>;
is_fullscreen: boolean = false;
ui : {
root: any | null
entries: any | null
@ -97,6 +99,7 @@ class Linkedin {
clean_page() {
if (location.href.search('empty_body=true') != -1)
{
this.is_fullscreen = true;
$('head').empty();
$('body').empty();
$('body').addClass('no-border');
@ -260,6 +263,14 @@ div.online-fxreader-linkedin {
.online-fxreader-linkedin .search
{
display: flex;
position: sticky;
top; 0px;
background-color: #eee;
}
.online-fxreader-linkedin .search input
{
width: 60em;
}
.online-fxreader-linkedin .entry.even
@ -285,7 +296,9 @@ div.online-fxreader-linkedin {
margin: unset;
}
.online-fxreader-linkedin:hover {
.online-fxreader-linkedin:hover,
.online-fxreader-linkedin.fullscreen
{
height: 80vh;
}
`));
@ -351,6 +364,11 @@ const online_fxreader_linkedin = new Linkedin();
});
$(document.body).append(self.ui.root);
if (self.is_fullscreen)
{
self.ui.root.addClass('fullscreen');
}
}
state_get() {