Select Git revision
Palette.java
-
Amaury Vanoorenberghe authored
plus une String constante et charAt
Amaury Vanoorenberghe authoredplus une String constante et charAt
main.js 466 B
import $ from 'jquery'
$(() => {
$('nav > ul > li > a').click(element => {
const id = element.delegateTarget.id;
$('nav > ul > li > a').removeClass('selected');
$('nav > ul > li > a#' + id).addClass('selected');
showSection(id);
});
function showSection(sectionName) {
$('body > section').hide();
$('body > section.' + sectionName + 'Container').show();
console.log(sectionName);
}
});