Questions tagged as 'javascript'

2
answers

Use of time lapses (TimeSpan) in JavaScript

I have an ODATA node, which automatically throws data in Json format. One of the properties in this object contains a time lapse ISO 8601 , because it is generated using < strong> TimeSpan (from .Net) For example, a lapse of 7 hou...
asked by 03.03.2016 / 23:40
1
answer

How to remove brackets with regexp? [duplicate]

Here " banned " words are deleted, but if that word has brackets, it does not remove the brackets. What should I do? var palabrasProhibidas = ['palabra-vulgar','[palabra-vulgar]']; var numeroPalabrasProhibidas = palabrasProhib...
asked by 04.06.2017 / 18:36
2
answers

Difference between HTML object and JAVASCRIPT object and how to access and give attributes to javascript objects

// //GLOBAL VARIABLES var box = document.getElementById('game-board'); var cardElement; var cardsInPlay= []; var cardNodes = []; var random; var cards = [ { rank: 'king', pic: 'images/king-of-diamonds.png', }, {...
asked by 07.12.2017 / 16:14
1
answer

TD fixed in ng-repeat

I have the following: my app.css .fijar-headcol { position: absolute; background-color: white; display: flex !important; width:100px; } my index.html <div style="height:500px; overflow: auto;"> <tr ng-repeat="dat in...
asked by 19.11.2018 / 09:29
2
answers

Validate the existence of a token in the browser's localStorage

the question that I have a token saved in the localstorage and what I want is that if that browser token is deleted I automatically redirect to the login window if the need to refresh the window or something else, imagine that I made a manually...
asked by 04.12.2018 / 00:45
6
answers

How to find the largest in the cycle for

document.getElementById("comparable").addEventListener("click", mayor); function mayor() { var numeros = [], ingresar = prompt('Ingresa los números, separados por comas', ''), j = 0; var c = ingresar.replace(new RegExp(',...
asked by 17.09.2017 / 23:23
3
answers

The toUpperCase () as used

The toUpperCase() , I would like you to tell me how to use it and give me examples because it is difficult for me to understand its structure.     
asked by 27.07.2017 / 18:16
2
answers

Achieve this effect with CSS inputs

this time I need to do the following effect; where the part of the numbers can be edited by the user, and USD -EUR are a kind of placeholder that are fixed and never deleted, one of the important details is the central line that...
asked by 20.06.2018 / 07:35
2
answers

Obtain a random variable

How can I get a random variable , taking a series of these: var a = 'HFKDJ3'; var b = 'JFI393'; var c = 'KMMMFN'; How can I show by document.write any of those variables, but randomly,     
asked by 08.05.2017 / 21:01
3
answers

problem with number () javascript

Someone knows why Number(4444444444444444); // (tiene 16 cuatros) results in 4444444444444444 but Number(44444444444444444); // (tiene 17 cuatros) results in 44444444444444450     
asked by 06.09.2017 / 21:45