Pārlūkot izejas kodu

adjusted search highlight feature to accomodate multiple strings

main
Simon Bowie pirms 2 gadiem
vecāks
revīzija
863e368a49
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  1. +0
    -1
      site/public/search.php

+ 0
- 1
site/public/search.php Parādīt failu

@@ -146,7 +146,6 @@ include '../text_functions.php';
const collection = document.getElementsByClassName("search_term");
for (let i = 0; i < collection.length; i++) {
let text = collection[i].textContent;
console.log(collection[i]);
upperText = text.toUpperCase();
result = "<span style='color:orange'>" + upperText + "</span>";
collection[i].innerHTML = result;

Notiek ielāde…
Atcelt
Saglabāt