git clone [email protected]:vuejs-br/br.vuejs.org.git
cd into/cloned/br.vuejs.org
git remote add upstream git://github.com/vuejs/vuejs.org.git
git fetch upstream
/* Easy-To-Use Bookmarklet to Toogle CSS Layout Hints On/Off | |
* Thanks to: https://dev.to/gajus/my-favorite-css-hack-32g3 and https://gist.github.com/vcastroi | |
* Usage: create a new bookmarklet (inside your browser Bookmark Manager) and use the folowing code as the bookmark URL: | |
*/ | |
javascript: (function () { | |
const DEPTH = 10, els = document.body.getElementsByTagName('*'), items = []; | |
let selector = '', style = '*{color:#000!important;outline:1px solid #f00!important;outline-offset:-2px;background-color:#fff!important;}\n'; | |
for (let el of els) el.innerHTML.indexOf(style) !== -1 && items.push(el); | |
if (items.length > 0) items.forEach(item => item.innerHTML = ''); | |
else { |
git clone [email protected]:vuejs-br/br.vuejs.org.git
cd into/cloned/br.vuejs.org
git remote add upstream git://github.com/vuejs/vuejs.org.git
git fetch upstream
var currencyValidator = { | |
format: function (number) { | |
return (Math.trunc(number * 1000000000000) / 1000000000000).toFixed(2) | |
}, | |
parse: function (newString, oldNumber) { | |
var CleanParse = function (value) { | |
return { value: value } | |
} | |
var CurrencyWarning = function (warning, value) { | |
return { |