Code Monkey home page Code Monkey logo

Comments (5)

nem035 avatar nem035 commented on May 4, 2024 1

Yup, this is definitely needed.

from algorithm-visualizer.

duaraghav8 avatar duaraghav8 commented on May 4, 2024 1

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.

duaraghav8 avatar duaraghav8 commented on May 4, 2024 1

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

64json avatar 64json commented on May 4, 2024

That will be great.
In which are you going to add it, side menu or navigation bar?

from algorithm-visualizer.

nem035 avatar nem035 commented on May 4, 2024

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.