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
export const buildRows = ({ | |
flattenStudentMovements, | |
yearPassPromotions, | |
nextSection, | |
selectedSeccion, | |
// materiasPendientes = [], | |
nivel, | |
seccionesFromFetch = [], | |
previasProyeccionesData = [], | |
secciones = [], |
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 photopicker from './picker' | |
photopicker().then(rutas => { | |
// Hacer algo con rutas | |
}) | |
async function hacerAlgo() { | |
const rutas = await photopicker() | |
// Trabajar con rutas | |
} |
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
window.addEventListener('onkeypress', e => { | |
if(e.key === '37') { | |
window.scrollTo(0,0) | |
} else if(e.key === '39') { | |
window.scrollTo(0,100) | |
} | |
}) |
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 elem = document.querySelector('.grid'); | |
const iso = new Isotope( elem, { | |
// options | |
itemSelector: '.grid-item', | |
layoutMode: 'fitRows' | |
}); | |
const button = document.getElementById('filter-btn'); | |
button.addEventListener('click', function(e) { | |
iso.isotope({filter: 'A'}) |