Posts by Murilo Melo • 2,272 points
151 posts
-
0
votes2
answers51
viewsQ: Variable zeroed in javascript
//Nosso time var nomeTime = prompt("Qual o nome do seu time ?"); var vitorias = parseInt(prompt("Quantas vitórias seu time teve ?")); var empates = parseInt(prompt("Quantos empates seu time teve…
-
1
votes1
answer74
viewsQ: function result is given as Undefined in javascript
I have the following code : function calculaDiasDeVida(idade) { var dias = idade * 365; }; function calculaBatimentos(dias){ var batimentos = dias * 24 * 60 * 80; }; idade = parseInt(prompt(nome +…
-
0
votes1
answer74
viewsQ: Problems with PHP POST
add-product.log. <?php include("header.php"); include("conexao.php"); include("banco-produtos.php");?> <?php $nome = $_POST["nome"]; $preco = $_POST["preco"]; $descricao =…
-
2
votes3
answers585
viewsA: Selecting the VALUE of a select with javascript or jquery
Just add a few id's, and a value to the field you want to delete if select does not have the value 0 for example, then it removes the same, which has to id 'default-selecionado' HTML <select…
-
1
votes3
answers585
viewsQ: Selecting the VALUE of a select with javascript or jquery
Well, I have the following problem: I need to select the value of a select in the html to execute a loop if in javascript or jquery, how to do ? <select class="input"> <option default…
-
1
votes1
answer57
viewsQ: Link redirect not working in Firefox
Well, I’m in the final stretch of developing a website, and a problem has arisen with the browser Firefox, in all others browsers tested, a link inside a button worked, however, on firefox, it reads…
-
2
votes1
answer32
viewsQ: Remove object over time
Well, I have the following modal <div id="alerta-imagem"> As imagens de perfil precisam ter altura e largura proporcionais, com tamanho máximo de 200x200 </div> I googled a few ways, but…
-
0
votes2
answers212
viewsQ: Problems with responsive design - item placement
Well, I’m developing a project, and eventually a bug came up, just need to fix it, tried several ways but could not fix IMG 1: IMG 2: Image one shows the elements all cluttered by the screen,…
-
0
votes1
answer97
viewsA: Responsive menu, bugs on android 6.0.1
It was necessary to add a second layer (div) in order to play the menu over the social icons Ex (CSS): .nova-div{ float:left; position:absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2;…
-
4
votes4
answers2615
viewsQ: Drawing with CSS
Is there any way to draw a sheet like the image below, using CSS ?…
-
5
votes1
answer2419
viewsQ: Close menu by clicking outside with javascript
I have the following code //Menu Mobile var closeTab = document.getElementById("close-i"); document.querySelector(".user-list").onclick = function() {…
javascriptasked Murilo Melo 2,272 -
0
votes1
answer97
viewsQ: Responsive menu, bugs on android 6.0.1
Well, I’m performing a responsive menu, it was working perfectly, and it’s still on most devices, the problem is that, in the second image, using a mobile phone with the newest android version the…
-
1
votes1
answer24
viewsA: Scroll detection on a page, adding and removing classes
To solve the problem, one solution was to add the event to a separate function window.onscroll = function() {scroll()}; function scroll(){ var mobileTransp =…
javascriptanswered Murilo Melo 2,272 -
1
votes1
answer24
viewsQ: Scroll detection on a page, adding and removing classes
Well, I’m trying to get the header from a page, receive or lose a class, depending on the position of the page, someone could inform me what is wrong, and help me fix ? window.onscroll = function()…
javascriptasked Murilo Melo 2,272 -
2
votes1
answer73
viewsQ: Jquery if loop with css
$('#label-user').click(function(){ if ($('#label-user').style.display != 'none') { $('#label-user').css('display', 'none'); } }); good, the jquery can’t read the part $('#label-user').style.display…
-
0
votes1
answer30
viewsQ: Popups/Modais Javascript
Well, I’ve been trying for a couple of days to do the following: By clicking on the sign-up button, open the registration modal, by clicking on the information button, open the same By clicking to…
-
2
votes1
answer111
viewsQ: cover the background with the Y axis
I was wondering if there’s any way the image of background-image use the property background-size:cover; following the vertical axis. .i-church{ background-image: url(../../img/icones/Church.png);…
-
1
votes2
answers668
viewsQ: Icon libraries
I would like to know from you, which are the libraries of icons that you use, preferably free, I for example, I started using Font-Awesome, but it did not meet some of my needs.
-
0
votes2
answers79
viewsA: Error using CSS Nth-Child()
I managed, after a while, had forgotten here in the stack, the correct syntax for use is EX: :nth-child(1n){}
-
1
votes2
answers79
viewsQ: Error using CSS Nth-Child()
.citacao-bio { background-color: #D9E5E3; border: 10px solid #C2CCCA; width: 250px; box-sizing: border-box; margin: 20px 40px; float: left; position: relative; } .citacao-bio:nth-child(2){ float:…
-
0
votes1
answer52
viewsA: data-Parent Bootstrap
In order for the data-Rent attribute to work, it must be placed in the div containing the title, paragraph, or any other element you want to use
-
0
votes1
answer52
viewsQ: data-Parent Bootstrap
I’m having difficulties with data-Parent to collar in bootstrap <div class="panel-group" id="paineis-sobre"> <div class="panel panel-default"> <div class="panel-heading"…
-
8
votes4
answers2279
viewsQ: Responsive image
How to do the effect below little by little, according to the screen resolution. *Without using clip, because otherwise would be many media queries, and on this site, the effect seems a smooth…
-
0
votes1
answer148
viewsQ: Jquery, Initiating with Function
I’m in an online Jquery course where the teacher proposed a code like this: var inicia = function(){ var valorTotalItens = $('.valor-total-item'); var valorBase = 0; for (var i = 0; i <…
-
3
votes1
answer74
viewsQ: Deleting content with Jquery
$('<li>').dblclick(function(){ var selfItem = $(this); selfItem.remove(); }); The code above isn’t working. I want to double-click the item itself to be removed, and, as an optimization, I…
-
4
votes2
answers37
viewsQ: Contenteditable attribute does not work
<input type="email" name="email-empresa" id="email-empresa" placeholder="ex: seuemail@domínio.com" class="txt-input" contenteditable="false" value="[email protected]"> I’m having trouble…
-
-1
votes1
answer49
viewsQ: Error in css content
HTML and CSS Problem : The content of the p element does not appear on the page, it fills the space, but does not appear...…
-
14
votes1
answer1507
viewsQ: Focus, when starting the page
How best to get an element to focus as soon as the page loads
-
1
votes1
answer450
viewsA: Html and css alignment
just changed the display of .header for block.
-
0
votes1
answer450
viewsQ: Html and css alignment
I am facing some difficulties while trying to align the following content HTML <div class="header"> <div class="logo-para-header"> <h2>Logo teste</h2> </div> <div…
-
4
votes1
answer2415
viewsQ: How to take the button out of an input file (without JS)
I got the following input file and wanted to know how to remove the button, so that in the box show only the name of the file *It is not necessary JS, I have seen some examples and remember that…
-
2
votes1
answer137
viewsQ: Label stylization in a file type input
There is a way to style a label in a certain way only when the input of the kind file is with a selected file ?
-
0
votes1
answer50
viewsA: Error opening and closing modals
The display was used: inline-block, that actually had as a standard block, so the error occurred, when correcting for your pattern (block), everything is back to normal…
-
0
votes1
answer50
viewsQ: Error opening and closing modals
Javascript var inicio = document.getElementById('inicio-modal'); var banner = document.getElementById('banner-modal'); var produto = document.getElementById('produtos-modal'); function abreInicio(){…
-
1
votes1
answer4234
viewsQ: Stylization of Input Date
Well, I was wondering how do I style a input of the kind date…
-
2
votes2
answers1635
viewsA: z-index does not work on link
of the one float, because he needs to be free of the other elements pro z-index function, if persists, puts a class in the li with the float, position and so the z-index :D…
-
0
votes1
answer77
viewsQ: I cannot use the CSS pseudo-element with Jquery
I want, when clicking on the pseudo-element, the menu opens, I tried several codes but none worked, the last one I tried was this : $('#overlay-menu').after().click(function(){ var menu =…
-
1
votes5
answers50
viewsA: How to change the end of a name
Good guy, with the regex, it pays more to do that sketch of \w*, so you can type any character as many times as you want, if it’s just name [a-zA-Z] but if it’s specifically the end of the name, put…
-
0
votes1
answer57
viewsQ: How to decide which and how to make the css structure of a responsive menu
I wanted to know how you create responsive menus, what is the best structure in your opinion both pro html how much for css, and whether or not they use the javascript. can be either a user’s own…
-
3
votes3
answers2823
viewsQ: How to add and remove classes with Javascript?
I want to know how to add and remove a class in HTML elements with Javascript. <div> <ul> <li class="Active">1</li> <li>2</li> <li>3</li>…
-
0
votes1
answer400
viewsA: How to disable horizontal scrolling on iphone
goes in css, container tag or something (I don’t know what your css looks like) and add overflow-x:hidden; and also put with the prefixes :D (Webkit,Moz,o,ms,etc...) *accents on my keyboard are not…
-
1
votes1
answer166
viewsA: Validation input via HTML does not work
Good guy, use Regex validation, is much easier than putting javascript, faster and lighter, goes straight into html. ex.: <input type="email" required pattern='\w*@\w*\.\w*\.?\w*'> to pattern…
html5answered Murilo Melo 2,272 -
2
votes3
answers31945
viewsA: How to put one div overlapping another using only relative position?
The best way is to use the position:absolute; however, you can set as well as the following example too top:-2em; /*Vai subir o elemento 2em em relação ao pai*/ *remembering that you need to put a…
-
2
votes1
answer122
viewsQ: two different Patterns in the same HTML input
Hello, I wonder if there is a way to put more than one Pattern as an alternative to the first in html for example, a person can only use Gmail.com and Hotmail.com, so that they fill in with a OR…
-
2
votes2
answers257
viewsQ: domain after @- HTML
Could someone tell me how to do input only accept an email with a certain domain and reject another ? Ex: [email protected] - ok [email protected] - erro HTML <input type="text"…
-
2
votes3
answers7168
viewsQ: Two conditions in the same if() javascript loop
I can’t prevent the button submit to carry out its action if the information typed is not equal, someone could help me? HTML <form method="post" action="php/cadastro.php"> <span…
-
3
votes2
answers4079
viewsQ: Javascript required HTML attribute
I’d like to know how to do that, when the activeBtn were checked, the ordenadorBanners win the attribute required, I tried the model below but it didn’t work, I would like to know how to do it, and…
-
-1
votes1
answer93
viewsQ: How to add an HTML code inside an <ol> tag using Javascript?
Is there any way I can add a certain HTML code within a tag, using Javascript ? It follows code of the structure I have: HTML <ol class="wrap-card" id="demo"> <li class="card…
-
0
votes3
answers868
viewsQ: PHP - Sending form by e-mail
I wanted to know how to do in php for an html form to be sent to me by email, I searched tutorials on youtube, but they all only work with a host, I tried to emulate a server and could not run the…
-
0
votes1
answer104
viewsQ: javascript - show/Hide menu does not work
function dpdShowHide(){ var orgBtn = getElementById('organizador'); var dpdOrg = getElementById('org-dpd-list'); if (orgBtn !== false) { dpdOrg.visibility('none') } else{ dpdOrg.visibility('block')…