PageSourceSearch

https://worldtrailraces.com/wp-content/themes/wtr/assets/js/main.js

js worldtrailraces.com collected 2026-10-09 23:45:06 UTC 2,168 bytes, 63 lines download raw bytes

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.