Posts by Wilson Lavrador • 105 points
5 posts
-
0
votes1
answer48
viewsA: ng-click or jquery alternative
PROBLEM SOLVED replaces $Scope.currentClick with the script below. $(".thumbsGaleria").on("click", ".owl-item", function(e){ var imagem = $(this).find('img').attr('src');…
-
0
votes1
answer48
viewsQ: ng-click or jquery alternative
I need, when clicking on the Thumb image, write the image clicked on the div . currentImage Script .directive('galeria',function() { return { templateUrl:'scripts/directives/galeria/galeria.html',…
-
2
votes2
answers1416
viewsQ: Break txt file into blocks, and each block into rows
I have an "active.txt" file where you can find information blocks Ex: SACOLAO CENTER R RUA PAULINO MENDES LIMA,31 CENTRO 45820440 EUNAPOLIS BA UNIQUE PISOS E REVESTIMENTOS R PAULINO MENDES LIMA,84…
-
1
votes2
answers798
viewsQ: How to Query Wordpress
I need to get the ID of the last post of a post_type, but I have no idea how to do this in wordpress. I’ve tried to mysql_query() but I couldn’t. $consulta = mysql_fetch_array(mysql_query("SELECT *…
-
7
votes7
answers6999
viewsQ: Split() integer with Javascript
Valor = 19.90; MyArray = valor.split("."); the code hangs , whole variable, however if, Valor = "19.90"; MyArray = valor.split("."); alert(MyArray[0]) = 19; alert(MyArray[1]) = 90; I would like to…