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 colors = document.querySelectorAll('.sweet-color'); | |
| colors.forEach(e => { | |
| let styles = window.getComputedStyle(e); | |
| console.log(styles["background-color"]); | |
| }); |
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
| syntax on | |
| set number | |
| filetype plugin indent on | |
| set tabstop=2 shiftwidth=2 expandtab | |
| set backspace=indent,eol,start |
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 path = require('path'); | |
| const fs = require('fs'); | |
| const file = path.join(__dirname, '../' + process.argv[2]); | |
| const fileJSON = require(file); | |
| delete fileJSON.dependencies; | |
| delete fileJSON.eslintConfig; | |
| delete fileJSON.devDependencies; | |
| delete fileJSON.scripts; |
OlderNewer