fac-11 / week4-3to5 Goto Github PK
View Code? Open in Web Editor NEWPokémon Autocompleter
Home Page: https://pokeautocomplete.herokuapp.com/
Pokémon Autocompleter
Home Page: https://pokeautocomplete.herokuapp.com/
(function() { var results = ['pikachu', 'coffin', 'jigglypuff', 'squirtle', 'ekans']; })();
no longer needed
Fix checklists in readme there should be a space between - and [ and ]
eg
https://github.com/FAC-11/week4-3to5/blob/master/README.md#how
Not sure, but i couldnt see where .ashAndDex css is used? if its not used then you could remove it, let me know ! 💃
currently only skeleton code
Could put new line at end of match? e.g \n$
??
Pokestadium.com/tools/sprites
The datalist tag is used to provide an "autocomplete" feature on elements. https://developer.mozilla.org/en/docs/Web/HTML/Element/datalist
relates #7
Both of your tests in backend.js
are essentially testing whether String.prototype.match
works.
You want to focus tests on your own code, like the functions in []handler.js(https://github.com/FAC-11/week4-3to5/blob/master/src/handler.js) & search.js
Investigate why there is no form action on our HTML form
in order to concatenate a variable with a regex pattern, must use double backslashes for escaping
To retrieve results from data / list of pokemon
I believe our site could be immeasurably improved by the addition of the pokemon theme, on loop, whilst on our index.html.
Once search functionality done link the result to the pokemon API to populate the DOM.
Easy and looks good :)
We need to handle errors for the api somehow. So when we enter a. Alive that doesn't exist it can be ignored, no errors will be made and a call to the api/backend is prevented. This will help efficiency
would be good practice if all if/else branches in that function fail, like a 404 for example.
Make everything look pretty ✨
Typing in input should send request to server and populate options with search results
Callback and wrapper functions can be simplified. (Wrappers help pass in arguments that's are the same along the callback)
[official color scheme here!] (http://www.schemecolor.com/pokemon-colors.php)
Should include:
Regex is braking list items wrong. We need to break it down after every new line. It is skipping dashes and spaces in names. We also need to make sure numbers are included.
Ho oh disappears for a while in the mobile version, can we adjust animation for mobile?
Data lists don't seem to be working on safari and iOS as it is not supported. This breaks main functionality. Worth finding some alternative as it is main task.
Messes up api call
Prepare backend search function to link through to take int the XGR response and check through the data list. This might be using the new RegEx function built in.
Add regex to search the query for the string. The following should work as a regex function i think:
The first one i think makes sure that it matches the name as your are typing which i think is what we want:
Returns a 404 error
Should be able to display images of the selected Pokemon from the API.
temp.js isn't used anywhere. Ideally this wouldn't have made it into your master branch
Remove commented out sections of code and debugging console.logs from code
currently only skeleton
Stretch goal to improve efficiency
See fair use policy: https://pokeapi.co/docsv2/
just a minor thing really couple console.logs you could get rid of
Typing a name that doesn't exist not sure if an error could be added?
Please create file structure
Currently commented - needs to have code added
One accessibility audit warning:
[Warning] Images should have a text alternative or presentational role (1)
See AX_TEXT_02 for more information.
<img class="ho-oh" src="http://pokestadium.com/sprites/xy/ho-oh.gif">
Remove all the es6 from the front end including all consts and any arrow functions
When receiving the XHR from the frond end the url object should be turned into a object by parse so we can use query methods on it.
txt file it needs to compare against the string we get so needs to be turned to a string
Change farfetchd name without the apotstrophe as it is not read that way in the api.
When typing into the input a list of complete, related words must be displayed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.