Posts by Jessika • 557 points
28 posts
-
0
votes1
answer124
viewsA: Dropdown menu changing footer positioning
One solution would be to put the dropdown open up, for this just put the class dropup in div that involves the dropdown: <div class="input-group-btn dropup"> <button type="button"…
-
0
votes2
answers7337
viewsA: How to Make Square and Responsive Divs
There’s an example here: http://carlosmaniero.blogspot.com.br/2013/08/criando-quadrados-responsivos.html OBS: I am putting here the example of the site so that in case the site goes off the air the…
-
0
votes1
answer183
viewsA: PHP text that is changed in the <textarea> field when exiting the modal, the text does not return to the original, why?
So this happens because the modal is generated on your page while the page is loaded and not when the method .show() is called in javascript. To return the original database value you must change…
-
1
votes1
answer1765
viewsA: How to change the initial positioning of the modal?
To position elements use CSS, <br> should be used in word line breaking. I used style="margin-top:100px;" in the modal to position the way you wanted; <script type="text/javascript"…
-
0
votes1
answer101
viewsA: jquery slideup/slideup effect does not work
$(document).ready(function() { $("div.item").click(function() { $("div.info").css("display", "none"); $(this).find("+ div.info").css("display", "block").hide().slideDown(); });…
-
0
votes2
answers538
viewsA: Image does not change size - flexbox
.portfolio { display: flex; flex-flow: column wrap; align-items: center; } .portfolio h2{ margin-bottom:20px; } .portfolio img{ max-width:33%; height:auto; } @media screen and (min-width: 768px) {…
-
4
votes1
answer1338
viewsA: Problem with BETWEEN dates
You have 2 date fields, the BETWEEN will take the break in data_inicial the way you are doing it. If you want the interval between initial and final date, do it this way: SELECT * FROM `negocio`…
-
1
votes3
answers160
viewsA: Function prints while list
Syntax: while (condição) { Instrução ou bloco de instruções; } Performs the repetition of an instruction block while a condition is true. Source: http://linguagemc.com.br/o-comando-while-em-c/ In…
-
0
votes2
answers83
viewsA: How do I convert this php code to javascript?
I made an example for you to see how it does.. Now just follow the same line.. alert(pluraltosingular("flores")); function pluraltosingular($str) { if ($str.substr($str.length - 1) != 's') return…
-
0
votes4
answers768
viewsA: Add mask from a select
Good you need to put an event in select to call its function when the select is changed. Another thing you are doing wrong is in comparing the if, because you have to compare with the value of…
-
3
votes1
answer143
viewsA: If inside if while inside while inside while (slow)
The only way to do this with a query is by using the JOIN: NOTE: I made an example of how it would look, but since I do not know your database, it may need some adjustments, I advise you to take a…
-
1
votes2
answers37
viewsA: Why does To_char(3E4) not result in '3E4'?
Try it that way: TO_CHAR(number, '9.9EEEE') Source: http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements004.htm…
-
0
votes2
answers80
viewsA: Php value in javascript?
If your variable is an array, do so: <?php $variavel = ["-3,3462", "-60,6790"]; ?> <script> var testMarker = L.marker([<?php echo $variavel[0];?>,<?php echo…
-
2
votes2
answers406
viewsA: Return with json array showing only first record
Missed you put the: $obj = $result->fetch_object() within a loop to go through all the records of select. I also added the result array to receive all results. <?php //database configuration…
-
0
votes2
answers51
viewsA: Date range in other date range
To do this, mount your sql this way if you want to compare only the date: SELECT * FROM `viagem` WHERE cast(dataHoraSaidaas DATE) >= '2017-04-10' and cast(dataHoraRetorno DATE) <= '2017-04-15'…
-
0
votes1
answer121
viewsA: Transform e position relative - No 2 works!
Uses the calc to remove half the button size to center: top: calc(50% - 92px/2); left: calc(50% - 156px/2); . .playbuttondiv { position: absolute; top: calc(50% - 92px/2); left: calc(50% - 156px/2);…
-
0
votes1
answer111
viewsA: How can I print this array in table form
<?php $tabela = array( array("Atlético Goianiense", "Goiânia", "GO", "0 (não possui)"), array("Atlético Mineiro", "Belo Horizonte", "MG", "1 (1971)"), array("Atlético Paranaense", "Curitiba",…
-
1
votes1
answer1011
viewsA: Progress Bar in Jquery
function move(idElem) { var elem = document.getElementById(idElem); var width = 0; var id = setInterval(frame, 10); function frame() { if (width >= 100) { clearInterval(id); } else { width++;…
-
1
votes1
answer405
viewsA: Django formset, calculate total with Jquery
$('#t1').on('input', function() { atualizarTotal(); }); $('#t2').on('input', function() { atualizarTotal(); }); function atualizarTotal(){ valorQnt = $('#t1').val(); valorPreco = $('#t2').val();…
-
2
votes5
answers721
viewsA: Element with different end size than width and height definition in CSS?
The properties width and height define the contents area dimensions of the boxes created by the HTML elements. The final box dimensions (width x height) are the result of the sum of property values…
-
2
votes1
answer103
viewsA: Clear value of an id with jquery
You can do as follows: whenever the product select is changed you change the quantity value to 1. Example: $('#estoqueProdutos').on('change', function() { $('#quantidade').val('1') }); <select…
-
4
votes2
answers1145
viewsA: Change the background color of an element when scrolling the page
Try it this way: window.onscroll = function (e) { document.getElementById("header").style.backgroundColor = "red"; } header { background-color: #0683c9; width:600px; height: 1200px; } <header…
-
1
votes2
answers1072
viewsA: How to center an input on a grid in Bootstrap 4?
Use text-align:center on parent Ivs, example: <div class="container-fluid mt-2"> <div class="row"> <div class="col-md-2 offset-md-1"> <a href="http://placehold.it"><img…
-
1
votes1
answer1481
viewsA: Alignment of tables side by side
<section class="price price-page" id="pricing"> <div class="container"> <div class="cd-pricing-container"> <div class="cd-pricing-list cd-bounce-invert precos"> <div…
-
2
votes1
answer205
viewsA: 2 different structures with select field
Put each form inside different Ivs with None display: <select id="mySelect"> <option value="div1">div1</option> <option value="div2">div2</option> </select>…
-
0
votes2
answers1820
viewsA: Column count does not match the value count on row 1
Check that your id is AUTO_INCREMENT, then remove the id from the Insert. INSERT INTO `cgts` (`nome`, `cidade`, `estado`, `email`, `tipo`, `titulo`, `mensagem`, `data`, `ver`) VALUES ('Álvaro',…
-
-1
votes1
answer2778
viewsA: Comparison of Javascript strings
Try to take the value of inputs this way: var login = document.getElementById('nlogin').value;
javascriptanswered Jessika 557 -
1
votes1
answer170
viewsA: Php - search for photo in another system folder
Image path is not correct. Try this way: <img src="../cadastro/fotos/<?=$produto->getFoto() ?>" alt="Sem Imagem"/>