Posts by usuario • 1,396 points
92 posts
-
1
votes0
answers565
viewsQ: Nodejs and Mysql authentication?
Does anyone know any article/tutorial/code that teaches you how to create a login system with session or cookies using Node.Js + Mysql?
-
1
votes2
answers1721
viewsA: How to use jQuery to dynamically add text field in the form
You can try it like this: var max_fields = 10; var wrapper = $(".inputs"); var add_button = $("#adicionarcampo"); var x = 1; $(add_button).click(function(e) { e.preventDefault(); var length =…
-
1
votes3
answers333
viewsQ: Help to filter a JSON with jQuery?
I have this code that filters a JSON object: var filtrar = function (horamin, horamax) { var data = JSON.parse(JSON.stringify(json.aPesquisa)); let result = data.filter(item => { let voos =…
-
13
votes1
answer10486
viewsQ: What is the difference between the PUT method and the PATCH?
Some teach that to upgrade uses the PUT and others teach using the PATCH. So, after all, what is the difference between the PUT method and the PATCH? When I must wear one and the other?…
-
1
votes4
answers5359
viewsA: Custom font in html/css does not work
It would not be better to call the source via Google Api? Example in css: <style> @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro'); </style> Example in html inside…
-
1
votes1
answer1692
viewsA: Doubt with Theme-color, change the color of the browser
For example, to set the background for a color Add below Meta Property to your HTML code in HEAD <head> ... <meta name="theme-color" content="Seu Código Hexadecimal"> ... </head>…
-
1
votes4
answers11999
viewsQ: Take the lowest value and the highest value of an array with Javascript?
How do I get the lowest value and the highest value of the array separately with Javascript and jQuery? var arr = ["885.9", "984.9", "444.9", "528.9", "528.9"]; The lowest value in this case is…
-
2
votes2
answers138
viewsQ: take array time with jQuery?
I have that code: var fhora = function(horamin, horamax){ var horas = ["11:20", "04:40", "22:30", "07:00"]; return horas; }; how do I return only the hours that are between 05:00 and 23:30?…
-
1
votes3
answers82
viewsA: Does anyone know how to do this character in HTML? ( photo below )
You can do with Html5 too if you prefer. And only use css to rotate and increase/decrease the size. .arrow { width: 20px; height: 20px; transform: rotate(90deg); } <div…
-
1
votes3
answers477
viewsQ: Json filter help with jQuery
I need help with the Json filter with jQuery, I have this code: var chamaFiltro = function(horaminida){ var pesquisa = { idamin: horasParaMinutos(horaminida) }; var filtrados =…
-
9
votes3
answers9259
viewsQ: Time difference between two dates with Javascript?
Hello. I have these two dates: var dtPartida = "20170620 11:20"; var dtChegada = "20170620 16:40"; And I need to figure out the difference in time between those dates that in the case and 5 hours…
-
2
votes2
answers5433
viewsQ: How to do a hide div when clicking out of it with jQuery?
Hello. How do I get this div to be hidden when I click out of it: I need her gone when I click out of her. Follow a similar example: $("body").on("click", function() {…
-
1
votes1
answer306
views -
2
votes2
answers1683
viewsQ: Position cursor at the end of text by clicking input
It has to do with every time I click on the input the cursor goes to the end of it? Notice that in this image he is before the 1 and wanted that every time you click on the input he goes to the end.…
-
1
votes4
answers4653
viewsQ: Icone in input with bootstrap
How do I add an icon from bootstrap in my input in this way:…
-
1
votes1
answer72
viewsQ: Help with Datetangepicker in jQuery
I am using the jQuery Date Range Picker in a form. Follow the code on jsfiddle My problem is when I cling to input Input the date range Picker appears normally, but when I click on the input date I…
-
1
votes2
answers298
viewsA: Error installing Slim framework
Installation Create a folder in your xampp with any name and then navigate cmd to it: cd c:\xampp\htdocs\NomeDaPasta Installation with Composer Install Composer in your project php -r…
-
1
votes3
answers483
viewsA: Store URL snippet - Javascript
Try it this way: var url = "http://google.com/pagina.atual?origem=teste"; var page = url.split('/'); page = page[page.length-1]; console.log(page.split('?')[0]); If you want to take the parameters:…
-
0
votes1
answer66
viewsQ: Download site without refresh?
I’m looking to develop a website without page reload but changes the page url so that search robots like google can find the pages of my site more easily than with ajax. As for example this: Ondasul…
-
2
votes2
answers1745
viewsA: How to align the button to two inputs?
Try it this way: .btn-enviar { margin-top: 9.5%; } <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> <div class="container">…
-
0
votes3
answers10154
viewsQ: How to align one element on top of another with css?
Hello. I have this html code: <p class="titulo"> <a href="javascript:void(0);">(ABC)</a> Texto de Teste </p> He looks like this: (ABC) Test Text How do I leave the (ABC) on…
-
1
votes2
answers228
viewsQ: How to make a slider hour range with jquery?
How do a slider range of hours from 00:00 to 23:59 with jquery ui? Code: $("#hora-range").slider({ range: true, min: 0000, max: 2359, values: [0000, 2359], slide: function(event, ui) {…
-
0
votes1
answer949
views -
4
votes1
answer2365
viewsQ: How to get tomorrow’s date with Javascript?
Hello. I have that code: var datas = new Date(); console.log(datas.toLocaleDateString()); He returns to me: 22/05/2017 Is there any way to make him always return with an extra day? like this:…
-
0
votes2
answers1184
viewsQ: How to update select with jQuery
Hello. I have a select <div class="seletor"> <select name="numeros" id="numeros"> <option value="1" selected="selected">1</option> <option value="2">2</option>…
-
-1
votes1
answer156
viewsQ: Javascript add-on help
I have that code: Jsfiddle. It works like this: Has a tab with three menus: Option 01, Option 02, Option 03. And in the contents of these tabs there are some < li >. Option 01 has a < p…
-
0
votes1
answer123
viewsA: Migration php 5.4 to 5.6
You can keep the version of PHP 5.4 and the applications will not have problems running in version 5.6. And vice versa. the development environment can be PHP 5.4 or PH|P 5.6 and the production…
-
2
votes1
answer968
viewsQ: How to make a "Read More" button in Javascript
Hello. I have this text: Lorem ipsum dolor sit Amet, consectetur adipiscing Elit. Praesent aliquam vitae Elit in lobortis. Morbi tincidunt enim Elit, condimentum accumsan dolor lacinia Elementum.…
-
5
votes3
answers4840
viewsQ: How to Format Javascript Date by Naming the Month and Day of the Week
Hello. Have that date: 18/05/17. And I need to convert her to it: 18 mai (Thu) May: (Thursday): Thursday Does anyone know how to do this using Javascript and jQuery?…
-
0
votes2
answers98
viewsQ: Help with JSON and jQuery
Hello. I have the following code: Jsfiddle In it I have 6 checkbox from 0 to 5 stars, and when I click on a checkbox it filters a json displaying the hotel that has such star so far everything well.…
-
1
votes1
answer463
viewsA: create div at runtime
- Javascript - Css - Html $( "#Clique" ).click(function() { $("#escondido").css("display","block"); }); #escondido{ display:none; } <script…
-
1
votes1
answer450
viewsQ: Slider Range of jQuery
Hey, how you doing? I have a code that filters the data of a JSON with jQuey, I can filter with pre-defined values in a variable. But I wanted to use the values of a jquery ui slide range to filter…
-
2
votes2
answers108
viewsA: Replicate val() content in span
To insert the text in by the id="" you use . text(). follows the code. $(function() { $("[name='email']").keyup(function() { var email = $(this).val(); $("span.login").text(email);; }); });…
-
0
votes1
answer24
viewsA: Connection of navcat seat
Navicat is a tool for database management, not the Do you use a local server program? such as Xampp, Vertrigosrv, Wampp...?
-
0
votes1
answer190
viewsA: Getting information from an external url’s meta tags
Try this code.(Note: Click the buttonObeter Meta Data button and wait a little). This code and only one example will be needed. $('button').click(function(){ var query = 'select * from html where…
-
3
votes2
answers4050
viewsA: Send PHP notifications
To implement this feature use the Html5 Push API. Stay tuned for browser compatibility. Another caution you should take is that PHP is not a good language to implement daemons, that is, implement…
-
0
votes3
answers200
viewsA: Error picking element by class (but with ID)
Look at this example: function vidplay() { var video = document.getElementById("Video1"); var button = document.getElementById("play"); if (video.paused) { video.play(); button.textContent = "||"; }…
-
1
votes1
answer82
viewsA: JQUERY how to add <p> tag
Try it this way: $(document).ready(function(){ var valor = $("#valor").text(); var taxa = $("#txa").text(); var total = Number(valor) + Number(taxa); $("#tot").text(total); }); <p>Valor do…
-
1
votes1
answer177
viewsQ: Help with Javascript filter
I have the following Javascript code: JSON var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94, "nome":"Itamarati" }, "quarto":[ {…
-
1
votes1
answer276
viewsQ: How to filter a json object with jQuery?
I have the following json object: var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94, "nome":"Itamarati" }, "quarto":[ { "quartoUh":[…
-
0
votes2
answers1541
viewsA: how to filter a json object?
How do I filter this json the same way the first time: var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94, "nome":"Itamarati" },…
-
1
votes2
answers1541
viewsQ: how to filter a json object?
I have the following json object: var json = { "acao": "listaHoteis", "hoteisPesquisa": [ { "home_id": "1", "nome": "Itamarati" "preco": "925" }, { "home_id": "2", "nome": "copacabana" "preco":…