Questions tagged as 'javascript'

1
answer

Folder structure for Backbone without RequireJS

The goal Mount a sufficient and smart folder structure for an application Rails 4 + Backbone . The problem As I am in Rails 4 and I still do not know how to deal with Asset Pipeline it + RequireJS (an...
asked by 29.01.2014 / 13:07
1
answer

Transferring JSON to CodeIgniter via AJAX

I'm not able to pass a string in the format JSON to a controller of CodeIgniter via AJAX. The string JSON: var avaliacao= {"avaliacao":[{"pergunta":"Qual sua idade?"}[{"resposta_certa":"99","resposta_err1":"11","resposta_err2"...
asked by 11.02.2014 / 19:56
1
answer

Scrolling effect with Parallax using video

I'm studying effects with Parallax and I'm trying to display a video in the background instead of an image. So I was able to create a nice effect using background image. Here is my jQuery code: $('[data-parallax]').each(function(){ var...
asked by 05.03.2014 / 05:33
1
answer

JavaScript Image Manipulator

Is there any image manipulator similar to canvas or jimp to node.js ? Explanation of why you do not want to use either: So I was trying to use canvas as a test, and it takes a long time to compile the file, and...
asked by 03.09.2017 / 21:45
1
answer

Subtract date from input with current date

I'm trying to subtract a date that the user types in the input with the current date. var data1 = $("#data_viagem").val(); var data1 = data1.split("/"); var viagem = new Date(data1[2], data1[1], data1[0]); var dateObj = new Date(); var m...
asked by 17.08.2017 / 17:01
1
answer

jQuery mask plugin for CPF

I wonder what I'm doing wrong. I'm using this plugin plugin to try to apply a CPF mask (need to be through the CDN) but when I enter the data in the field, nothing happens. Here is my head where I import the CDNS: !DOCTYPE html PUBLIC "-//W3...
asked by 01.11.2017 / 20:01
2
answers

How to change the code when the visitor is mobile? [duplicate]

I'm developing a website, I want the code to change when the user enters the code, it can be with js or html . Example (Visitor using Phone): <a href="fb://page/1703826839873386" target="_blank"></a> Example (U...
asked by 14.12.2017 / 22:11
1
answer

How did this site "manipulate" the mouse position?

As usual,
asked by 18.05.2018 / 18:37
2
answers

Automatic Click along with full screen

I have a site, and on the site the user when they log in will go to a page and that page should be full screen automatically without the user needing to click something. I read that it is not possible for the browser to be full screen without...
asked by 06.06.2018 / 14:55
1
answer

How to find out the path followed by a function in js

Explaining my scenario, I use emberjs, and it encapsulates every Component within a Controller that will be encapsulated within a Router , and still has a schema of Model , Mixins , Helpers , this when there...
asked by 15.08.2018 / 17:37