Posts by Jonatas Walker • 176 points
8 posts
-
1
votes2
answers16310
viewsA: How to find an address by latitude and longitude
If you want an Opensource/Free solution, use the service Verse of Openstreet. Would look like a request ajax: reqwest({ url: 'http://nominatim.openstreetmap.org/reverse?', method: 'get',…
-
0
votes3
answers1147
viewsA: Add and remove styles of a particular selection by clicking a button
Have a helper at your disposal. Here are a lot of methods for manipulating CSS classes. Some possibilities: utils.toggleClass(div, 'red'); utils.addClass(div, 'red blink'); // utilizando timeout…
-
1
votes1
answer2484
viewsQ: Consume REST API in Node.js + Curl
I know there are several packages in Node to consume REST API but I need one that uses cURL. For some reason (which I haven’t discovered) I can’t authenticate with existing ones. I tried to…
-
2
votes1
answer2484
viewsA: Consume REST API in Node.js + Curl
So I converted a client into PHP for Node.js. https://www.npmjs.com/package/vps-rest-client It’s a wrapper (I don’t know what it would be like in pt) in this bundle which in turn is a wrapper in…
-
0
votes1
answer221
viewsA: Cors Api Google Maps
The Google API does not support either CORS or JSONP, so you’ll have to proxy with php. Something like this: $http.get('goog.php').then( function(res){ console.info(res); if(res.status == 200){ } },…
-
0
votes5
answers934
viewsA: Alternatives to center the img tag
You can also use: .centralizado{ position: relative; left: 50%; -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%); }…
cssanswered Jonatas Walker 176 -
1
votes4
answers9290
viewsA: How to place a gif before displaying the site page
Do without external resources and with a fade effect: HTML <div id="preload" class="preload"></div> CSS .preload{ position: fixed; z-index:99999; top:0; left:0; width:100%; height:100%;…
-
1
votes4
answers1474
viewsA: service returning result of a $http
Here I do something like this: var variavel_global; app.service('ajax', ['$http', function ($http){ this.pesquisaCidade = function(q){ return $http.get(url).then(function(response){ return response;…