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/
Should be able to display images of the selected Pokemon from the API.
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.
Could put new line at end of match? e.g \n$
??
To retrieve results from data / list of pokemon
(function() { var results = ['pikachu', 'coffin', 'jigglypuff', 'squirtle', 'ekans']; })();
no longer needed
When typing into the input a list of complete, related words must be displayed
in order to concatenate a variable with a regex pattern, must use double backslashes for escaping
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
Returns a 404 error
Messes up api call
Make everything look pretty ✨
currently only skeleton code
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">
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.
Easy and looks good :)
Remove all the es6 from the front end including all consts and any arrow functions
Please create file structure
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.
Currently commented - needs to have code added
[official color scheme here!] (http://www.schemecolor.com/pokemon-colors.php)
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
Callback and wrapper functions can be simplified. (Wrappers help pass in arguments that's are the same along the callback)
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
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
Investigate why there is no form action on our HTML form
I believe our site could be immeasurably improved by the addition of the pokemon theme, on loop, whilst on our index.html.
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
Remove commented out sections of code and debugging console.logs from code
just a minor thing really couple console.logs you could get rid of
Stretch goal to improve efficiency
The datalist tag is used to provide an "autocomplete" feature on elements. https://developer.mozilla.org/en/docs/Web/HTML/Element/datalist
relates #7
would be good practice if all if/else branches in that function fail, like a 404 for example.
Pokestadium.com/tools/sprites
Should include:
temp.js isn't used anywhere. Ideally this wouldn't have made it into your master branch
Once search functionality done link the result to the pokemon API to populate the DOM.
Typing in input should send request to server and populate options with search results
Ho oh disappears for a while in the mobile version, can we adjust animation for mobile?
See fair use policy: https://pokeapi.co/docsv2/
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:
Change farfetchd name without the apotstrophe as it is not read that way in the api.
Typing a name that doesn't exist not sure if an error could be added?
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.