Questions tagged as 'javascript'

1
answer

Input type="number" with time mask

How to make a <input type="number"> with mask in hours format, which accepts 00:00 . If you put type="text" just use a mask, but with type="number" ?     
asked by 27.05.2014 / 16:23
1
answer

Customizing the html5 audio player

I have been doubting for some time, there is some possibility of customization of the audio player of html5. So far I know that there is possibility using plugins developed in javascript, more in this way I still have not found out about...
asked by 17.05.2014 / 01:00
1
answer

Picking values from a table and putting them in an HTML chart

I made a database and it is feeding a table. I would like to know what it would take to get such data from the table and plot it on a chart. In the code below the graphic with fictitious values is already present. <! DOCTYPE html > &...
asked by 04.01.2018 / 01:15
0
answers

Difference between exporting functions

Is there any difference between: module.exports = (function () { // Code. })(); E: module.exports = function () { // Code. }; Considering the context of exporting and importing modules?     
asked by 20.01.2018 / 20:32
4
answers

How to show warning "Refresh your Browser" when it does not support HTML5?

How to display the "Update Your Browser" warning when the user's browser does not support HTML5 tags or CSS3 properties? An initiative that encourages this is the link site, but they do provide a script for it. Would it be possible to...
asked by 13.01.2015 / 13:08
3
answers

Exchanging images with onclick

I would like to click on an image and display another one in the place, then click again and display another one and so on until returning to the original image. I can only display one image. I started to study javascript quite a bit and not...
asked by 31.12.2017 / 06:20
1
answer

Intercept redirect page

I have a page whose customer is selecting items, once selected I needed to check if the client will leave the current page because I need to alert him with a message like "Do you want to save your cart before leaving the page?" if yes save and c...
asked by 08.12.2017 / 12:42
1
answer

Add scrollbar to a Box

I am in doubt about my code, in it I will add a chat field, and in this chat the box must have a maximum size, and if in this case when adding the messages exceeds this value, it should create a scroll bar, but this is not working. In the bro...
asked by 23.11.2017 / 09:59
1
answer

JavaScript - Continuity of an array using arithmetic operations to find the index

In JavaScript, I, using the common for loop iteration of array with variable i , I'm trying to create an array with sub-arrangements having data from other arrangements from an order relative to the position of i . This code example desc...
asked by 08.12.2017 / 04:15
2
answers

className, SetAttribute, or classList.add

I have a JSON list that creates several objects in a blog and I came across the following ways to add classes to the HTML objects I create after loading the list: className, setAttribute and classList.add. Obviously I'm giving preference to c...
asked by 18.12.2017 / 17:19