kora 2 lat temu
rodzic
commit
398343797b
1 zmienionych plików z 17 dodań i 0 usunięć
  1. 17 0
      js/word_cloud.js

+ 17 - 0
js/word_cloud.js

@@ -45,6 +45,8 @@ $.ajax({
     success: (data) => handle_word_network(data)
 });
 
+console.log(jsonLetters)
+//filterLetters("");
 
 // queryLetters defined in people.js
 console.log(queryLetters);
@@ -362,7 +364,11 @@ function addEventsToWordCloud(words){
         if(wcElem!=null){
             wcElem.addEventListener("click", focusPersonInList);
             wcElem.addEventListener("mouseover", highlightWord);
+<<<<<<< Updated upstream
             wcElem.addEventListener("mouseout", unHighlightWord);
+=======
+            wcElem.addEventListener("mouseout", unHighlightWord);    
+>>>>>>> Stashed changes
         }
     }
 }
@@ -381,3 +387,14 @@ function unHighlightWord(e){
     e.target.style['text-decoration'] = "";
 }
 
+<<<<<<< Updated upstream
+=======
+
+function filterLetters(name){
+
+    // responseLet defined in people.js
+    let arra = responseLet['results']['bindings'];
+    console.log(arra);
+
+}
+>>>>>>> Stashed changes