Questions tagged as 'javascript'

2
answers

Export jQuery DataTables

I have a table and I use DataTables, I'm using the native export functionality and give a hide in the columns my code looks something like this: "buttons": [ 'copy', 'csv', 'excel', 'pdf', 'print', { extend: 'colvis',...
asked by 11.07.2018 / 13:39
1
answer

Load () function open iframe

I have the code below that works perfectly. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></scr...
asked by 28.06.2018 / 21:23
2
answers

Font-Awesome icon responsive - How to replace icons when clicked?

So, I'm trying to make those responsive headers that, when clicked, organize the column and change the "little set" up or down. I already have my sorts working, but I still lack the "responsiveness" of the icons. So my problem is: I have t...
asked by 12.07.2018 / 16:53
1
answer

Perspective effect with JavaScript Canvas

I need to fill this figure so that the image is slightly distorted, giving a perspective effect. I believe it is possible with setTransform() , but I still do not understand how it works to construct a formula that calculates the transf...
asked by 20.08.2018 / 05:18
1
answer

I can not click on the link - jquery

Hello, can anyone help me posted the code also in codepen , I can not click the link and I opened the PDF file, what happens is the div slideUp Thank you very much for your attention! (function($) { $('.pasta').click(function()...
asked by 16.08.2018 / 03:12
2
answers

How do I get a URL parameter in Express?

My URL is coming like this http://localhost:3000/menus/5.5 and it is bringing all the records of 5.5, but I would like the URL to be http://localhost:3000/menus?price=5.5 to have the same result, as you can see below; Thecodeth...
asked by 19.08.2018 / 10:39
2
answers

How to clone an object in the FabricJS?

In FabricJs, using the canvas.getActiveObject() function, you can return the value of the currently active object. I would like to know if there is any way to clone this object and add it to the canvas, with the same proportions and modifica...
asked by 25.08.2018 / 20:25
1
answer

How to use Emscripten?

I wanted to convert my C ++ code to JavaScript so I could use it in web pages. How can I do this? For what I researched Emscripten does this, but I do not know how to use it. How does it work? How to use it? What are your capabilities?...
asked by 16.08.2018 / 15:52
1
answer

Is it possible to put an OR in the stop condition of FOR?

Can two conditions be set to stop a for ? In my example I'm trying to do this: function criacaoParidade(entrada) { entrada = Array.from(entrada); func = positionBit(entrada); tam = entrada.length; var dic = {}; for...
asked by 28.08.2018 / 07:06
1
answer

Obtain a string with a regular expression in JS

Well, what I need to do is get a string via input, and "get" a certain value inside such a string. Below is an example to better illustrate the situation: <iframe width="560" height="315" frameborder="0" scrolling="no" marginheight="0" marg...
asked by 03.10.2014 / 00:55