sticky anchor menu page static
This commit is contained in:
@@ -132,41 +132,8 @@ jQuery(function($) {
|
||||
});
|
||||
|
||||
|
||||
///////////////////////////////////////////
|
||||
// border box change color when protagoniste change
|
||||
|
||||
// var protagoniste = document.getElementsByClassName("type-de-protagoniste-7");
|
||||
// console.log(protagoniste);
|
||||
// ressource.classList.add('opened');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Return the term id for a given term name.
|
||||
*/
|
||||
|
||||
// function _get_tid_from_term_name($term_name) {
|
||||
// $vocabulary = 'Type de protagoniste';
|
||||
// $arr_terms = taxonomy_get_term_by_name($term_name, $vocabulary);
|
||||
// if (!empty($arr_terms)) {
|
||||
// $arr_terms = array_values($arr_terms);
|
||||
// $tid = $arr_terms[0]->tid;
|
||||
// }
|
||||
// else {
|
||||
// $vobj = taxonomy_vocabulary_machine_name_load($vocabulary);
|
||||
// $term = new stdClass();
|
||||
// $term->name = $term_name;
|
||||
// $term->vid = $vobj->vid;
|
||||
// taxonomy_term_save($term);
|
||||
// $tid = $term->tid;
|
||||
// }
|
||||
// return $tid;
|
||||
// }
|
||||
|
||||
// function getVal() {
|
||||
// const val = document. querySelector('input').value;
|
||||
// log(val);
|
||||
// }
|
||||
// /////////////////
|
||||
//// ancre dans texte
|
||||
// document.querySelector('.paragraph--view-mode--textes-toc').click( function() {
|
||||
@@ -178,25 +145,4 @@ jQuery(function($) {
|
||||
// return false;
|
||||
// });
|
||||
|
||||
/// sticky header on scroll
|
||||
|
||||
// // When the user scrolls the page, execute myFunction
|
||||
// window.onscroll = function() {stickyHeader()};
|
||||
// console.log(Event);
|
||||
|
||||
// // Get the header
|
||||
// var header = document.getElementById("header-top");
|
||||
|
||||
// // Get the offset position of the navbar
|
||||
// var sticky = header.offsetTop;
|
||||
|
||||
// // Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
|
||||
// function stickyHeader() {
|
||||
// if (window.pageYOffset > sticky) {
|
||||
// header.classList.add("sticky");
|
||||
// } else {
|
||||
// header.classList.remove("sticky");
|
||||
// }
|
||||
// }
|
||||
|
||||
///////////////////
|
||||
|
||||
Reference in New Issue
Block a user