This is a small demo made using React and Boostrap. It’s a list page which contains some of the Avengers, with the possibility to reach a show page with details for each character.
- Suitable for simple interfaces;
- Easy to learn;
- Possibility to port the web application to a native iOS or Android application with minimum of effort, using React Native.
The demo: http://cristian-radulescu.ro/github-demos/react_demo-avengers/index.html.
The code: https://github.com/cristianradulescu/react_demo-avengers.
If the “Pretty print” button is enabled it will affect all scripts which are opened in the Developer Tools’ “Script” tab.
You can use it with “onblur” attribute:
input.value = input.value.replace(/\s/gi,"");
The input field:
The spaces will be stripped from the input field in real-time, as the user types.