Comments (5)
Yup, this is definitely needed.
from algorithm-visualizer.
The nav bar seems like a better option, easily visible and we can make it quite wide. There are really good Ajax-based autocomplete plugins for search box implementation. example1, example2 (ajax-based)
Alternatively, it could be in side menu. As soon as you start typing, the menu is replaced by clickable suggestions. Which one seems better to you?
Also, my css skills are very poor, so the UI will be minimal. I'd be grateful if others would improve it.
from algorithm-visualizer.
@nem035 Adding dropdown is one of the options I was considering. But you're right about ajax, we already have the entire list in memory, silly me!
I'm a bit more inclined toward the header search bar which will show matches from the in-memory list when the user starts typing, so I'll work on that.
Sure, thanks!
from algorithm-visualizer.
That will be great.
In which are you going to add it, side menu or navigation bar?
from algorithm-visualizer.
@duaraghav8, just to clarify, you are thinking of adding a dropdown that loads the data from the server, showing the user search matches to what they typed and opens an algorithm page when the user clicks on it? Or does it just filter the existing list in the sidebar based on what user typed?
Here's my 2 cents: If we still intend to preload the algorithm content in the left sidebar, we don't need to use ajax for the search and should just do in-memory filtering of results, no need to make network requests for things we already have.
This could also mean we might not even need a plugin. We can just have an input box with a listener that either shows the results in a dropdown or filters the DOM when the user hits enter (or maybe even while they are typing, if it's fast enough).
My vote goes for the sidebar search if we are filtering the exiting content and for the header search if we are showing a dropdown of clickable matches.
I would suggest you pick what you think is best and then we'll work on it once you get a working version :)
from algorithm-visualizer.
Related Issues (20)
- I'm a new coder, i have no idae to use it HOT 3
- Need Support for C/C++ as well HOT 2
- please make a c++
- quite wide
- Check the certificate for tracer.js HOT 1
- C language HOT 2
- Algo HOT 2
- CONTRIBUTING.md file content doesn't match its purpose HOT 1
- Will this project continue to be maintained?
- 堆排序算法的可视化不是很好,应该把树画出来
- 如果有红黑树就好了
- how to run this project on local pc HOT 2
- is it possible Support for C/C++ ,if i have set this project run on my local ubuntu 22.04
- need a API demo(or example)? HOT 2
- linux上部署不成功,有大佬部署成功的吗? HOT 5
- How to use these? HOT 3
- Update readme HOT 2
- Bro your website is not opening is saying it is no safe
- Algorithm-Visualizer HOT 2
- Support markdown? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from algorithm-visualizer.