border color id protagoniste

This commit is contained in:
2022-01-20 15:25:09 +01:00
parent e2bf468ed9
commit c565e1a188
6 changed files with 190 additions and 22 deletions
+34
View File
@@ -129,7 +129,41 @@ 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() {