This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset='utf-8'> | |
<meta name='viewport' content='width=device-width,initial-scale=1'> | |
<title>Svg Color something 1 </title> | |
<style>html, body { | |
position: relative; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("load",()=>{ | |
const tabela = document.querySelector(".box-tabela-nutricional") | |
if (tabela){ | |
tabela.querySelector("h2").remove() | |
tabela.querySelectorAll("*").forEach(item => { | |
item.removeAttribute("style") | |
item.removeAttribute("width") | |
}) | |
let tabelaInner = tabela.innerHTML; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SubTemplate extends HTMLElement { | |
constructor(location = null) { | |
super(); | |
this.link = location ? location : this.getAttribute("link") | |
fetch(this.link).then(res => res) | |
.then(response => response.text()) | |
.then(data => { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document url("about:newtab"), url("about:home") { | |
/* You can change any setting */ | |
html { | |
height: 100%; | |
/* For disabling scrollbar */ | |
overflow: hidden; | |
background:rgb(66, 59, 76); | |
; | |
/*background-image: url(images/firefox.jpg);*/ | |
background-position: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(()=>{ | |
const newStyle = document.createElement(`style`); | |
newStyle.innerHTML = ` | |
/* #image a {pointer-events: none;} */ | |
.image-zoom{ | |
opacity:0; | |
transition:all 0s; | |
visibility:hidden; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function xdtosvg(prefix) { | |
const style = document.querySelector('style'); | |
document.querySelectorAll('*').forEach(item => { | |
const oldClass = item.getAttribute('class'); | |
if (oldClass) { | |
console.log(`%c ${item.getAttribute('class')} - _${prefix}-${oldClass}`, 'color:turquoise;font-size:20px'); | |
item.setAttribute('class', `_${prefix}-${oldClass}`); | |
style.innerHTML = style.innerHTML.replaceAll(`.${oldClass}`, `._${prefix}-${oldClass}`) | |
console.log(style.innerHTML.replaceAll(`.${oldClass}`, `._${prefix}-${oldClass}`)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*var(--identity-tab-color)*/ | |
.identity-color-blue { | |
--identity-tab-color: #4298d5; | |
--identity-icon-color: #4298d5; | |
} | |
.identity-color-turquoise { |