var screen = $(window).width();
var inviteList = $('#invite-list button');
var saveButton = $('#save');

if (screen > 420) {
	$('.blackout').css('display', 'block');
	$('.text-left .padding-box').css('display', 'none');
}

saveButton.click(function () {
    $('.confirm').css('display', 'none');
    $('.question').text('¿Querés saber quienes vienen?');
    inviteList.css('display', 'block');
})




// LISTA DE CONFIRMADOS!
var invitedPep = {
	"invitados": [
		{ "name":"Clara", "subsecretary":"SSCI", "direction":"DGCyT"  },		
		{ "name":"Angie Giavarini", "subsecretary":"DE", "direction":"Inversiones"  },
		{ "name":"Juan Puig", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Nico", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Ifi", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Guido", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Melina", "subsecretary":"SSCI", "direction":"Comunicacion"  },
		{ "name":"Diego Guillen", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Nacho Pueta", "subsecretary":"SSCI", "direction":"DGCyT"  },
		{ "name":"Lore", "subsecretary":"SSCI", "direction":"DGCyT"  },
		{ "name":"Pablo Icardi", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Tomi Casagrande", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Pitu", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Yorland", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Sol", "subsecretary":"Economica", "direction":"PAPP"  },
		{ "name":"Puchu", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Florchi", "subsecretary":"SSCI", "direction":"GEDI"  },
		{ "name":"Ernesto", "subsecretary":"Ciudad Inteligente", "direction":"GEDI"  },
		{ "name":"Ponja", "subsecretary":"Ciudad Inteligente", "direction":"GEDI"  }
	]
}





var listInvited = ( function () {

	var name;
	var subse;
	var direction;
	var listElement = $('.invited-list');

	for (var i = 0; i < invitedPep.invitados.length; i++) {
		name = invitedPep.invitados[i].name;
		subse = invitedPep.invitados[i].subsecretary;
		direction = invitedPep.invitados[i].direction;

		listElement.append('<li> <strong>' + name + '</strong> ' + '<span>' + subse + ', ' + direction + '</span> </li>');
	}
})()





@@ -454,16 +454,96 @@
 dos%22: %5B%0A
+%09%09%7B %22name%22:%22Guillermina%22, %22subsecretary%22:%22SSCI%22, %22direction%22:%22Comunicaci%C3%B3n%22  %7D,%0A
 %09%09%7B %22nam
@@ -600,18 +600,16 @@
 CyT%22  %7D,
-%09%09
 %0A%09%09%7B %22na

Update script.js