This file contains 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 itens = document.querySelectorAll('.tabela-carteira-kinvo tr') | |
const acoes = [] | |
itens.forEach(item => { | |
const first = item.querySelectorAll('td:first-child') | |
const last = item.querySelectorAll('td:last-child') | |
var list = {} | |
if (first.length){ |
This file contains 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 __ = function () { | |
this.context = []; | |
var self = this; | |
this.selector = function (_elem, _sel) { | |
return _elem.querySelectorAll(_sel); | |
} | |
this.on = function (_event, _element, _function) { | |
this.context = self.selector(document, _element); | |
document.addEventListener(_event, function (e) { | |
var elem = e.target; |
This file contains 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 handler { | |
constructor(element) { | |
this.el = document.querySelectorAll(element); | |
this.selector = element; | |
this.self = this; | |
} | |
isClass(elem, clss) { | |
const names = elem.className.trim().split(" "); | |
const len = names.length; |
This file contains 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.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Mask</title> | |
</head> |
This file contains 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 go = { | |
timer: null, | |
message:'', | |
time:0, | |
countdown: (duration = 10) => { | |
clearInterval(go.timer); | |
return new Promise(function(resolve, reject) { | |
go.timer = setInterval(function() { | |
go.time--; | |
console.log(go.message + ':' + go.time); |
This file contains 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
import React, { Component } from 'react'; | |
import { Provider } from 'react-redux'; | |
import { | |
BrowserRouter as Router, | |
Switch, | |
Route, | |
Link, | |
Redirect | |
} from 'react-router-dom'; | |
import { ConnectedRouter } from 'react-router-redux'; |