mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix missing dom selector in stickynav vue
This commit is contained in:
parent
3970bb2644
commit
3653d7e0b8
@ -44,7 +44,7 @@
|
|||||||
To use if you want to add a banner below the header (ie the menu)
|
To use if you want to add a banner below the header (ie the menu)
|
||||||
#}{% endblock %}
|
#}{% endblock %}
|
||||||
|
|
||||||
<div class="content">
|
<div class="content" id="content">
|
||||||
{% block sublayout_content %}
|
{% block sublayout_content %}
|
||||||
<div class="container-xxl">
|
<div class="container-xxl">
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<teleport to="#content_conainter .container.content .container">
|
<teleport to="#content">
|
||||||
<div id="navmap">
|
<div id="navmap">
|
||||||
<nav>
|
<nav>
|
||||||
<a class="top" href="#top">
|
<a class="top" href="#top">
|
||||||
@ -27,7 +27,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
header: document.querySelector("header.navigation.container"),
|
header: document.querySelector("header nav.navbar"),
|
||||||
bannerName: document.querySelector("#header-accompanying_course-name"),
|
bannerName: document.querySelector("#header-accompanying_course-name"),
|
||||||
bannerDetails: document.querySelector("#header-accompanying_course-details"),
|
bannerDetails: document.querySelector("#header-accompanying_course-details"),
|
||||||
container: null,
|
container: null,
|
||||||
@ -60,7 +60,7 @@ export default {
|
|||||||
ready() {
|
ready() {
|
||||||
|
|
||||||
// load datas DOM when mounted ready
|
// load datas DOM when mounted ready
|
||||||
this.container = document.querySelector("#content_conainter .container.content .container");
|
this.container = document.querySelector("#content");
|
||||||
this.stickyNav = document.querySelector('#navmap');
|
this.stickyNav = document.querySelector('#navmap');
|
||||||
this.anchors = document.querySelectorAll("h2 a[name^='section']");
|
this.anchors = document.querySelectorAll("h2 a[name^='section']");
|
||||||
this.initItemsMap();
|
this.initItemsMap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user