Last active
February 11, 2024 20:33
-
-
Save dutchcelt/1abd49a692a8832a84f2fd42ed18c250 to your computer and use it in GitHub Desktop.
Revisions
-
dutchcelt revised this gist
Aug 31, 2022 . 1 changed file with 10 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ /* https://twitter.com/jh3yy/status/1564926775620243456 * This π */ const ELEMENT = Object.assign( document.createElement('button'), { @@ -11,9 +13,10 @@ const ELEMENT = Object.assign( } ) /* Instead of this π const ELEMENT = document.createElement('button') ELEMENT.className = 'fab' ELEMENT.setAttribute('popup', 'auto') ELEMENT.style = "--index: 1;" ELEMENT.innerHTML = '<i class="material-icons">add</i> */ -
dutchcelt revised this gist
Aug 31, 2022 . No changes.There are no files selected for viewing
-
dutchcelt created this gist
Aug 31, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ /* This π */ const ELEMENT = Object.assign( document.createElement('button'), { className: 'fab', popUp: 'manual', style: '--index: 1;', innerHTML: ` <i class="material-icons">add</i> ` } ) /* Instead of this π */ const ELEMENT = document.createElement('button') ELEMENT.className = 'fab' ELEMENT.setAttribute('popup', 'auto') ELEMENT.style = "--index: 1;" ELEMENT.innerHTML = '<i class="material-icons">add</i>