1import menu from './modules/menu.js'; //js do menu 2 3import Dom from './modules/constructors.js'; //selecionar elementos 4import scriptsHome from './modules/scriptsPaginas/home.js'; 5import scriptsMountainRace from './modules/scriptsPaginas/mountain-race.js'; 6import scriptsBikeRace from './modules/scriptsPaginas/bike-race.js'; 7import scriptsEtapa from './modules/scriptsPaginas/etapa.js'; 8import scriptsSingleNoticia from './modules/scriptsPaginas/single-noticia.js'; 9import scriptsSinglePass from './modules/scriptsPaginas/single-pass.js'; 10import scriptsNoticias from './modules/scriptsPaginas/noticias.js'; 11 12// let mediaQuery = window.matchMedia('(min-width: 1024px)').matches 13// if (mediaQuery) { 14// // animacao.animaAoScroll() 15// } 16 17 18menu(); 19 20// PAGES 21const pageHome = new Dom().el("#page__home"); 22const pageBikeRace = new Dom().el("#page__bike-race"); 23const pageMountainRace = new Dom().el("#page__mountain-race"); 24const pageEtapa = new Dom().el("#page__etapa"); 25const pageNoticias = new Dom().el("#page__noticias"); 26const pageSingleNoticia = new Dom().el("#page__single-noticia"); 27const pageRanking = new Dom().el("#page__ranking"); 28const pagePass = new Dom().el("#page__pass"); 29 30if (pageHome) { // â HOME 31 new Dom().bodyClass("body__home"); 32 scriptsHome(); 33}else if (pageMountainRace) { // â modalidade mountain 34 new Dom().bodyClass("body__mountain-race"); 35 scriptsMountainRace(); 36} 37else if (pageBikeRace) { // â modalidade bike 38 new Dom().bodyClass("body__bike-race"); 39 scriptsBikeRace(); 40} 41else if (pageEtapa) { // â etapa 42 new Dom().bodyClass("body__etapa"); 43 scriptsEtapa(); 44}else if (pageNoticias) { // â noticias 45 new Dom().bodyClass("body__noticias"); 46 scriptsNoticias(); 47}else if (pageSingleNoticia) { // â single noticia 48 new Dom().bodyClass("body__single-noticia"); 49 scriptsSingleNoticia(); 50}else if (pageRanking) { // â ranking 51 new Dom().bodyClass("body__ranking"); 52 53} 54else if (pagePass) { // â ranking 55 new Dom().bodyClass("body__pass"); 56 scriptsSinglePass(); 57 58} 59 60 61document.addEventListener("DOMContentLoaded", () => { 62 document.body.classList.add("dcl"); 63});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.