Questions tagged as 'html'

2
answers

Show content in the desktop version and hide it in the mobile version. And vice versa [duplicate]

I have a form with two different characteristics, one for mobile and one for desktop. I do not know how to configure one to show and one to hide depending on whether the site is on the desktop or mobile. Reading some answers here from the f...
asked by 04.05.2017 / 22:05
1
answer

Dropdown Bootstrap does not work [closed]

I had made a menu using Bootstrap and it was working perfectly, but I needed to add a dropdown, and apparently it does not display any errors ... But nothing happens by clicking the menu. [![<div class="ma][1]][1]sthead"> <n...
asked by 03.05.2017 / 16:03
1
answer

Why media queries work like this?

I was creating a responsive menu, and u noticed that if I did not put the media queries from the smallest to the largest it does not work correctly. @media only screen and (min-width:560px) { .menu li { width: 132px; height...
asked by 26.07.2017 / 17:23
1
answer

Script for preview not working

I'm trying to preview the image, but I can not. I created the following code in pure javascript: var imageFileInput = document.getElementById("fileUpload"); imageFileInput.onchange = function(event){ if(typeof (FileReader) != "undefined...
asked by 26.07.2017 / 16:34
3
answers

Put input is below the label

How to make this input stay below the label. .passo { width: 30px; height: 30px; border-radius: 50%; line-height: 30px; text-align: center; color: #fff; background: #29b2fe; margin-right: 15px; } .input { }...
asked by 28.07.2017 / 21:26
1
answer

How to get a value from a td from the column name

I would like to get the value of the td of a table by the name of the column. //index definido por numero $valor=$('.table td').eq(0).text(); alert("resultado com index numérico = "+$valor); //index definido pelo nome da coluna...
asked by 30.07.2017 / 22:12
1
answer

add input in time format

I have 3 input the first receives start time the second hour of exit and the third the subtraction between them. function calcular(){ var segent = parseInt(document.getElementById('segent').value, 10); var segsai = parseInt(docu...
asked by 29.07.2017 / 02:51
2
answers

Missing cookie (created in javascript) while switching pages

On the HOME page, I write an "x" value in a cookie. var dataAtual = new Date(); var expire = new Date(); expire.setDate(dataAtual.getDate() + 1); document.cookie = "NomeCookie=ValorCookie; expires=" + expire.toGMTString(); When accessing t...
asked by 23.06.2017 / 17:20
3
answers

Comparison with if

Personal what is wrong in the code, I made a function that calls a css if a value is greater than 5, the higher value works but the lower one would be 3 where it would appear another css does not work follow the code SetInterval(function () {...
asked by 14.06.2017 / 19:00
1
answer

How do I create a div that has "0 parallax"?

I'm creating a website, and I want to make a div that works the same as the Stack Overflow bar (like the one in the image), that is, a div that does not slip when scrolling the page. I would like to know how to do this. Thank you very much in ad...
asked by 07.06.2017 / 00:08