finished mock researcher profile
This commit is contained in:
		| @ -1,26 +1,30 @@ | |||||||
| <script setup> | <script setup> | ||||||
|  function inputKeyUp() { |  | ||||||
|     let input, filter, ul, li, a, i, txtValue; |  | ||||||
|     input = document.getElementById('search-input'); |  | ||||||
|     filter = input.value.toUpperCase(); |  | ||||||
|     ul = document.getElementById("myUL"); |  | ||||||
|     li = ul.getElementsByTagName('li'); |  | ||||||
|  |  | ||||||
|     // Loop through all list items, and hide those who don't match the search query | 	 import {ref } from 'vue'; | ||||||
|     for (i = 0; i < li.length; i++) { | 	 const input = ref('') | ||||||
|       a = li[i].getElementsByTagName("a")[0]; |  | ||||||
|       txtValue = a.textContent || a.innerText; |  | ||||||
|       if (txtValue.toUpperCase().indexOf(filter) > -1) { | 	 function inputKeyUp() { | ||||||
|         li[i].style.display = ""; | 		 let filter,ul,li,a,txtValue | ||||||
|       } else { | 			filter = input.value.toUpperCase(); | ||||||
|         li[i].style.display = "none"; | 		 if(document.getElementById("myUL")!=null){ | ||||||
|       } | 			ul = document.getElementById("myUL"); | ||||||
|     } | 			li = ul.getElementsByTagName('li'); | ||||||
|   } |  | ||||||
|  | 			// Loop through all list items, and hide those who don't match the search query | ||||||
|  | 			for (let i = 0; i < li.length; i++) { | ||||||
|  | 				a = li[i].getElementsByTagName("a")[0]; | ||||||
|  | 				txtValue = a.textContent || a.innerText; | ||||||
|  | 				if (txtValue.toUpperCase().indexOf(filter) > -1) { | ||||||
|  | 					li[i].style.display = ""; | ||||||
|  | 				} else { | ||||||
|  | 					li[i].style.display = "none"; | ||||||
|  | 				} | ||||||
|  | 			} | ||||||
|  | 		 } | ||||||
|  | 	 } | ||||||
|  |  | ||||||
|   const mydata = { |   const mydata = { | ||||||
|     data() { |  | ||||||
|         return { |  | ||||||
|           options: { |           options: { | ||||||
|           theme: "light2", |           theme: "light2", | ||||||
|           animationEnabled: true, |           animationEnabled: true, | ||||||
| @ -44,11 +48,9 @@ | |||||||
|         }, |         }, | ||||||
|         styleOptions: { |         styleOptions: { | ||||||
|           width: "100%", |           width: "100%", | ||||||
|           height: "360px" |           height: "360px", | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|     } |  | ||||||
|   } |  | ||||||
|  |  | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
| @ -102,13 +104,13 @@ | |||||||
|     </select> |     </select> | ||||||
|     </div> |     </div> | ||||||
|     <div id="statsPie"> |     <div id="statsPie"> | ||||||
| 			  <!--  <CanvasJSChart :options="mydata" @chart-ref="chartRef"/> !--> | 			  <CanvasJSChart :options="mydata.options" @chart-ref="chartRef"/>  | ||||||
|  |  | ||||||
|  |  | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
|   <div id="articles"> |   <div id="articles"> | ||||||
|     <input type="text" id="search-input" @onkeyup="inputKeyUp" placeholder="search articles"> |     <input type="text" id="search-input" :onkeyup="inputKeyUp()" placeholder="search articles" v-model="input"> | ||||||
|     <ul id="myUL"> |     <ul id="myUL"> | ||||||
|       <li><a href="#">Adele</a></li> |       <li><a href="#">Adele</a></li> | ||||||
|       <li><a href="#">Agnes</a></li> |       <li><a href="#">Agnes</a></li> | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user