浏览代码

adjusted search highlight feature to accomodate multiple strings

main
Simon Bowie 2 年前
父节点
当前提交
863e368a49
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. +0
    -1
      site/public/search.php

+ 0
- 1
site/public/search.php 查看文件

@@ -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;

正在加载...
取消
保存