This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --primary: #cecece; | |
| } | |
| * { | |
| padding: 0; | |
| margin: 0; | |
| box-sizing: 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static double getDistanciaByLatLong(Localizacao usuario, Localizacao ordem) { | |
| /* Agradecimento ao Thiago Galbiatti Vespa | |
| * https://thiagovespa.com.br/blog/2010/09/10/distancia-utilizando-coordenadas-geograficas-em-java | |
| */ | |
| int EARTH_RADIUS_KM = 6371; | |
| double firstLatToRad = Math.toRadians(usuario.getLatitude()); | |
| double secondLatToRad = Math.toRadians(ordem.getLatitude()); | |
| double deltaLongitudeInRad = Math.toRadians(ordem.getLongitude() - usuario.getLongitude()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Adapted to BR phone format from the class | |
| * UsPhoneNumberFormatter by Samik Bandyopadhyay: | |
| * http://stackoverflow.com/a/23659268/332839 | |
| */ | |
| public class BrPhoneNumberFormatter implements TextWatcher { | |
| final int MAX_LENGTH = 11; | |
| //This TextWatcher sub-class formats entered numbers as (41) 1234(5)?-6789 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- src/main/webapp/WEB-INF/faces-config.xml --> | |
| <faces-config | |
| xmlns="http://xmlns.jcp.org/xml/ns/javaee" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd" | |
| version="2.2"> | |
| </faces-config> |