Questions tagged as 'javascript'

1
answer

Create circle around numbers with JS and CSS

I'm starting with css and I'm having a question I have a div called numbers and inside it I have numbers from 01 to 99, how can I insert a circle into them with css without having to use div? <div id="numeros"> 01 02 03 04 05 </div...
asked by 20.04.2016 / 18:24
1
answer

When should I use if without keys? [duplicate]

I usually use with keys because until today I do not know what exactly the operation of if without keys is and if the else can also be without keys. Is there any variation of behavior between javascript and C #? And among other languages? S...
asked by 29.03.2016 / 18:20
2
answers

Remove focus from input when it is with attr readonly

I have the following problem, I have an input with the readonly attribute. When clicked on it it is selected. I needed to prevent this because I have a function using onblu r that can only work when input is not in readonly...
asked by 25.11.2016 / 13:22
3
answers

Why did the context change?

I'm doing my Javascript studies, and I'm doing some pretty simple to consume an API, but I got an error. Before commenting, I'll show you my code: View.js var model = new Model(); var response = null; model.setUrl("https://jsonplaceholder.t...
asked by 06.12.2016 / 19:43
1
answer

What is the purpose of the JavaScript debugger keyword?

I was browsing the documentation for ECMAScript and I came across the < in> reserved keywords Follows:    The following tokens are ECMAScript keywords and may not be used as   Identifiers in ECMAScript programs.       Keyword :: one of...
asked by 15.02.2017 / 14:49
3
answers

How to disable the "View Details" button in the image preview?

I'm using: link Here is an example in jsfidde: link How to disable this button: Hereisthecode:HTML:<inputid="input-id" type="file" class="file" data-preview-file-type="text"> JS: $("#input-id").fileinput({ showRemove:...
asked by 18.02.2017 / 19:14
1
answer

JavaScript + Canvas

Hello, People I'm studying canvas with HTML5 so that I came up with the following problem, when I import the external JavaScript file inside the "head" tag it does not recognize. Only when I put dentor of the body. var canvas = document.get...
asked by 10.02.2017 / 08:23
1
answer

Is it possible to cause the browser to cache a user action?

I've added a button on a website so the user can leave it in "night mode". But if he goes to a new story, the site will have night mode turned off. Is it possible to have the browser cache this information, so that once it leaves the mode in...
asked by 20.02.2017 / 18:28
3
answers

Make Div appear 4 seconds after the site is loaded [duplicate]

How can I make a div appear 4 seconds after the site loads?     
asked by 24.06.2016 / 04:39
1
answer

@media print css

Maybe these questions can be called "idiot", but believe me, I need to ask this here why I have not found anywhere on the internet and who can help me will be very grateful ... Is there any way to do 2 (two) or more "@media print" from css? F...
asked by 18.07.2016 / 16:55