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
package main | |
import ( | |
"crypto/tls" | |
"encoding/base64" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/smtp" | |
"strings" |
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 myMembers = data.results[0].members; | |
let fieldsInserted = ["first_name", "party", "state", "seniority", "votes_with_party_pct"]; | |
let tBody = document.getElementById("houseData"); | |
let link = ["url"]; //he creado otra variable con el atributo ''url'' que se encuentra en el JS, pero no se en que momento colocarlo ni que poner. | |
for (let i=0; i< myMembers.length; i++) { | |
let newTr = document.createElement("tr"); | |
for (let j=0; j< fieldsInserted.length; j++) { | |
let dataInserted = fieldsInserted[j]; | |
let newTd = document.createElement("td"); | |
newTd.innerHTML = myMembers[i][dataInserted] |