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
<?php | |
require_once __DIR__ . '/../lib/vendor/Silex/silex.phar'; | |
$app = new Silex\Application(); | |
$app['debug'] = true; | |
// Registering Symfony\Yaml and Symfony\Config | |
$app['autoloader']->registerNamespace('Symfony', __DIR__.'/../lib/vendor/symfony/src'); |
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
<?php | |
/** | |
* Before trying this you must need to [create](https://console.developers.google.com/): | |
* - Google API Secred ID | |
* - Client secret | |
* - Also configure the callback point in the console to be this same script | |
* ([more info](https://developers.google.com/api-client-library/php/start/get_started) | |
* | |
* Edit the createGClient function accordingly |
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
document.querySelectorAll("img.img-circle") | |
.forEach(function(el) { | |
var td = el.parentElement.parentElement; | |
// Cal mirar si existeix td.nextSibling perquè a més de la taula de participants també hi ha la foto | |
// del perfil a dalt a la dreta. Segurament es podria millor amb table#participants img.imc-circle, no | |
// ho he provat, però... | |
if (td.nextSibling && td.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.innerHTML == "Mai") { | |
console.log(td.nextSibling.firstChild.firstChild.text); | |
//console.log(td.nextSibling.firstChild.firstChild.href); |