In CSS:
.protobi .element .bar.fg {
background-color: #688c40
}
In Javascript:
var styleSheet = _.find(document.styleSheets, {"href": "http://localhost:3000/protobi/style/protobi.css"})
In CSS:
.protobi .element .bar.fg {
background-color: #688c40
}
In Javascript:
var styleSheet = _.find(document.styleSheets, {"href": "http://localhost:3000/protobi/style/protobi.css"})
In CSS: | |
```css | |
.protobi .element .bar.fg { | |
background-color: #688c40 | |
} | |
``` | |
In Javascript: | |
```js | |
var styleSheet = _.find(document.styleSheets, {"href": "http://localhost:3000/protobi/style/protobi.css"}) |
//http://bgrins.github.io/devtools-snippets/#console-save | |
(function(console){ | |
console.save = function(data, filename){ | |
if(!data) return console.error('Console.save: No data'); | |
if(!filename) filename = 'console.json' | |
if(typeof data === "object") data = JSON.stringify(data, undefined, 4) | |
var blob = new Blob([data], {type: 'text/json'}), | |
e = document.createEvent('MouseEvents'), | |
a = document.createElement('a') |
var JSZip = require('jszip'); | |
var fs = require('fs'); | |
var cheerio = require('cheerio'); | |
fs.readdir(DIRECTORY, function (err, files) { | |
files.filter(function (file) {return file.substr(-5).toLowerCase() == ".docx";}).forEach(function (file) { | |
fs.readFile(DIRECTORY + file, function (err, content) { | |
var zip = new JSZip(); | |
zip.load(content); | |
var xml = zip.file('word/document.xml').asText(); |
"use strict"; | |
var JSZip = require('jszip'); | |
var fs = require("fs"); | |
var FILE1 = process.argv[2]; | |
var FILE2 = process.argv[3]; | |
var zip1 = new JSZip(fs.readFileSync(FILE1)); | |
var zip2 = new JSZip(fs.readFileSync(FILE2)); | |
Object.keys(zip1.files).forEach(function (key) { |
{ | |
"mode": "html" | |
} |
var AdmZip = require('adm-zip'); | |
var zip = new AdmZip(__dirname + '/../tinker/format.xlsx'); | |
var themeXml = zip.readAsText("xl/theme/theme1.xml"); | |
var stylesXml = zip.readAsText("xl/styles.xml"); |
var xlsx = require('xlsx'); | |
var wb = { | |
"Sheets": { | |
"Sheet1": { | |
"!ref": "A1:C7", | |
"A1": { | |
"t": "s", | |
"v": "This is a merged cell", | |
"r": "<t>This is a merged cell</t>", |