spostato styles al caricamento del document
This commit is contained in:
parent
0f509b2393
commit
e3b18e50b2
@ -1,4 +1,8 @@
|
|||||||
let styles = `
|
function mailgoInit() {
|
||||||
|
// ottengo tutti i mailto contenuti nella pagina
|
||||||
|
let mailgos = document.querySelectorAll('a[href^="mailto:"]:not(.no-mailgo)');
|
||||||
|
|
||||||
|
let styles = `
|
||||||
.mailgo-modal {
|
.mailgo-modal {
|
||||||
all: initial;
|
all: initial;
|
||||||
* {
|
* {
|
||||||
@ -86,14 +90,8 @@ let styles = `
|
|||||||
}
|
}
|
||||||
.mailgo-weight-500 {
|
.mailgo-weight-500 {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}`;
|
||||||
`;
|
|
||||||
|
|
||||||
function mailgoInit() {
|
|
||||||
// ottengo tutti i mailto contenuti nella pagina
|
|
||||||
let mailgos = document.querySelectorAll('a[href^="mailto:"]:not(.no-mailgo)');
|
|
||||||
|
|
||||||
// CSS
|
|
||||||
let styleSheet = document.createElement("style");
|
let styleSheet = document.createElement("style");
|
||||||
styleSheet.type = "text/css";
|
styleSheet.type = "text/css";
|
||||||
styleSheet.innerText = styles;
|
styleSheet.innerText = styles;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user