Posts by Douglas Juliao • 437 points
19 posts
-
0
votes2
answers835
viewsA: How to view an image saved in another project folder in Vue?
I believe you can do it this way: <v-img :src="require('@/assets/cartas/asdeouros.png')" />
-
2
votes1
answer31
viewsA: Image change as the form field is chosen
var select = document.querySelector('.s_goleiro-1'); var nome = document.querySelector('.goleiro-1'); …
-
1
votes1
answer42
viewsA: Applying style to table in javascript
I think it is because after th (table title) you have to use the td ( standard cell) that you are calling in the style. And there’s a tag closure that you didn’t put: rows += "<tr>"; //rows +=…
-
0
votes2
answers77
viewsA: How to pause and start audio when switching tab in browser?
Try to use the pageVisibility - w3c An example more or less of how it would be: window.addEventListener('visibilitychange', () => { if (document.hidden) { console.log('PAUSAR O AUDIO'); }else {…
-
0
votes3
answers118
viewsA: CSS or JS selector
try to catch the parent selector of this p for example: #meu_id p{} Or maybe pick by index p:nth-child(1){}
-
0
votes1
answer118
viewsA: Table header thead does not align with lines after append
Hello, the problem is very simple... You forgot to close the tags, for example: // Essa linha: <td id='id_prod' name='id_prod'>"+v.id_prod+"<td>" // Deve ficar assim: <td id='id_prod'…
-
0
votes2
answers585
viewsA: Conflict: Jquery Validation + Bootstrap 3 Tooltip
In his erroPlacement tries to put so: errorPlacement: function (error, element) { $('#form-cadastro #'+element.attr('name')+'-error').remove(); // para remover o item caso ele ja tenha, ai logo…
-
0
votes2
answers134
viewsA: Repetition of JQUERY items
tries to turn v1 into number as well: var v1 = Number($('#item1 span').html());
-
-1
votes3
answers868
viewsA: Run javascript only when accessing a mobile phone’s website
I think you can do that too, if you want to use less code: if(/Android|iPhone|iPad|iPod/i.test(navigator.userAgent) ) { }
-
1
votes1
answer303
viewsA: Error while sending form
Try to check this part of the e-mail, I may be wrong but your code seems to work: $sentMail = @mail($to_Email, $subject, $message_Body, $headers); if(!$sentMail) { $output =…
-
2
votes3
answers2919
viewsA: Define multiple "id" in an HTML tag
When you use an id it should be unique to your particular element (TAG). Ja a class can be repeated and can contain as many as you need in the same element. Avoid repeating ids on the same page if…
-
2
votes4
answers2570
viewsA: How to take the penultimate and antipenultímo item from an array
Array[0] // primeiro item Array[Array.length - 1] // Ultimo item //No caso do PHP acho que é mais ou menos isso $Array[0] $Array[count($Array) - 1] I use it that way.…
phpanswered Douglas Juliao 437 -
0
votes1
answer69
viewsA: Using . Sort in Literal Object
Our people I said I was checking my answer, here it is: var Array1 = [{ item1: 'A', item3: 10 },{ item1: 'B', item3: 19 },{ item1: 'C', item3: 1 }]; var Objeto2 = { objeto1 : { item1: 'A', item3: 19…
javascriptanswered Douglas Juliao 437 -
2
votes1
answer51
viewsA: Error-free JS animation on console, but does not work
Try it this way : function iniciaAnima(){ var tankBack = document.getElementById("tank-slug"); var count = 0; var valor = 100/55; var backPositionX = 0; setInterval(function(){…
-
1
votes2
answers84
viewsA: Doubt about data-based front end modeling
I think you could tailor the screen according to its proper position, but this would not need to get sample for the user, for example: user 1 cargo 1 ---- vai acessar a tela perfil(ex.) >…
front-endanswered Douglas Juliao 437 -
2
votes1
answer44
viewsA: Error Browsing a Json
you have to concatenate html: var html = ''; $.getJSON(caminho, function(data) { for(i in data.result.lista){ html += '<p>'+data.result.lista[i].nome+'</p>'; }…
-
0
votes2
answers35
viewsA: Dropdown Hover work just above 1200px
$(document).ready(function(){ if($(window).width() > 1200) { $('ul.nav li.dropdown').hover(function() { $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeIn(400); }, function() {…
-
0
votes1
answer257
viewsA: RADAR CHART - Chartjs - View Sublabels
tries to do so: labels: [['Eating','Segunda label','terceira label'], "Drinking", "Sleeping", "Designing", "Coding", "Cycling", "Running"],
chartjsanswered Douglas Juliao 437 -
3
votes1
answer411
viewsA: How to place two ng-repeat in the same view, Ionic/ Angularjs?
var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { var responseishere = xmlhttp.responseText; if…