Questions tagged as 'javascript'

1
answer

Resize an image in a canvas element with js

Problem Image resizing with JavaScript Possible Solution Use the canvas element to redraw the image, resize it and then render the image again. Below are two use cases that are merely illustrative, because the sizes of the imag...
asked by 22.06.2015 / 01:20
1
answer

How to make a page load progress progress bar?

How to make a progress bar that loads as the page loads? Likethissitehere: link I saw an example in codepen.io , it kind of looks like this, I do not know as this progress bar is actually called.     
asked by 10.06.2015 / 18:46
2
answers

Simplest way to generate a PDF of an HTML, client-side input

I'm developing a web-based teaching material, and within it, there are some exercises where the user has to answer some questions by writing a brief dissertation within a Text Area. After completing the exercise, I would like a PDF to be gene...
asked by 03.03.2015 / 16:59
1
answer

How to make dynamic animations with CSS3?

I can do animations with transition, rotate +: hover or triggering class change with JS. But what if I want an animation in CSS3 that when rendered makes more than one movement without being 'limited to a pair of keys'? ps: At the moment I...
asked by 07.12.2014 / 02:59
1
answer

How to generate Mega-Sena results by ignoring some numbers?

I want to generate some games for Mega-Sena using JavaScript, so that I can skip a list of numbers and indicate the total number of games to be generated. Knowing that each game will have 6 numbers, what is the best way to generate these games?...
asked by 22.11.2014 / 17:31
1
answer

What is the difference between feature detection and feature inference

I wanted to know what the main difference between the two feature and feature inference forms >     
asked by 03.06.2014 / 05:04
3
answers

How to make divs with the same height and 100% height

I need 3 divs that I have the same height, and if the height is not 100%, turn 100%. Example: I have 3 divs <div class="menuEsquerdo"></div> <div class="toggle"></div> <div class="conteúdo"></div> When...
asked by 21.05.2014 / 21:20
1
answer

How to Run JavaScript on the Java 8 Nashorn Engine Programmatically

From Java 8 we have a new Engine for running JavaScript, this is Nashorn. What Java SE platform classes are involved in engine discovery and scripting? How to execute JavaScript through the Java classes themselves in this new interpreter?...
asked by 26.06.2015 / 16:16
1
answer

How to validate format and compare two dates to enable buttons

I'm using a script * to enable a button when two validations are done. The first one checks the format, and the second if the start date is smaller than the final one, but I'm having some problems adding more fields with the same functionality,...
asked by 25.06.2015 / 05:42
1
answer

How can I copy an image to the clipboard?

I'm using this command to capture the screen. chrome.tabs.captureVisibleTab(null, {}, function (image) { // image = base64;string }); And now I would like to copy the captured image to clipboard. How do I do this?     
asked by 12.12.2013 / 01:54