Posts by Guilherme Diego • 346 points
10 posts
-
5
votes1
answer54
viewsA: Compare Youtube and Facebook dates
As far as I know JS automatically does the conversion. I did some testing here on the Chrome console, follow the code: var utime = 1442465986 * 1000, ytData = "2015-09-17T00:01:56.000Z"; var d1 =…
-
1
votes2
answers697
viewsA: Sorting objects in a Json without id in Angularjs
The best way is to use an Angular feature called "filter", it allows you to manipulate a value, you can use "order by" for this, something like : {{item in items | orderby : 'date' }} Here is a…
-
1
votes1
answer195
viewsA: Angularjs php Node apache2
Today Nodejs does everything PHP does and more... If you really want to use PHP you will use APACHE to upload application. If you choose NODE try to do something using SAILS (Framework) or else…
-
1
votes2
answers579
viewsA: Centering right inside a list (ul)
I set an example in Codepen http://codepen.io/guidiego/pen/ZGxZbj using Bootstrap and SCSS, but I leave some alerts: I would use Nav-pills to space the last li of the first part (:Nth-Child(2)) and…
-
5
votes6
answers14943
viewsA: JS Mask for Hours Validation
I advise you to use the http://igorescobar.github.io/jQuery-Mask-Plugin/ If you take a look he has an option of pattern that from what I understand you can configure a Regexp with the crease…
-
1
votes4
answers453
viewsA: Get most used words from a string
Dude, try something like this: Explode this string through space using the explode: http://php.net/manual/en/function.explode.php Then use count_value array:…
-
0
votes2
answers621
viewsA: Problems with $http and ng-repeat Beginner Angularjs $$hashKey
Come on, things I found strange: }).success(function(data){ $scope.alerts = data; console.log($scope.alerts); } You are returning a JSON so the default format of its arrival is: {index:valor} In…
-
6
votes4
answers40074
viewsA: What is the difference between display:None and visibility:Hidden?
If I don’t miss my memory, display:none removes the DOM layer element, the visibility:hidden is the same thing as opacity:0, just makes the element invisible.…
-
0
votes3
answers1694
viewsA: How to do when a button is clicked is created an element on the page?
There are two ways to do this, the first is by . append(), and you can put your HTML inside it! The second is by . html(), you can create an HTML page with these widgets and give a . html() in your…
-
3
votes1
answer591
viewsQ: ng-View does not render content - Angularjs
When I access my index.php, I ask in my Angular route settings that it calls the "index.php" view inside the "view" folder, but it finds but does not render anything on my screen var app =…