Skip to content

Instantly share code, notes, and snippets.

rrakso

Block or report user

Report or block rrakso

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rrakso
rrakso / makeJSONfromHTMLlist.js
Last active Feb 20, 2019
Skrypcik generujący JSONa z listy pracowników WE ZUT i przekazujący wynik do generatora zaproszeń
View makeJSONfromHTMLlist.js
function generujJSON(nazwaIDlisty) {
var listaArr = [];
var listaOsoby = ['',''];
var lista = document.getElementById(nazwaIDlisty).children[0].children;
for (var i = 0; i < lista.length; i++) {
var osoba = lista[i].innerText.split(",")[0];
listaOsoby = ['m', osoba];
listaArr.push(listaOsoby);
}
var jsonWykladowcy = JSON.stringify(listaArr);
You can’t perform that action at this time.