Questions tagged as 'javascript'

2
answers

Animation with JavaScript / jQuery [closed]

I have this html: Iwouldlikethefollowingtoappearwhentheuserdrags: Whenyoudragagain,disappear...HowcouldIdothiswithJavaScript/jQuery?Followthecode:<divstyle="width: 100%; overflow-x: hidden;"> <div class="item-total"&...
asked by 14.11.2018 / 16:52
1
answer

Error reading 'getContext' when inheriting class 'createjs.Sprite'

I started developing an HTML5 game using the EaselJS library. When creating a class called Bot , which will contain the code of the robot used in the game, I get the following error: Uncaught TypeError: Cannot read property 'getContext...
asked by 11.01.2014 / 17:29
2
answers

Is it possible to have dynamic rules with jquery validation?

I have three fields, two inputs text and between them a select . If one of the first two is filled in the other becomes mandatory. The problem is that when a single value, in the case the last option, of the select is filled all thr...
asked by 24.02.2014 / 18:16
1
answer

Progress bar for slide jcarousel

// Carousel $(function(){ $(".peq-carousel").jCarouselLite({ bntNext: '.next', bntPrev: '.prev', visible: 7, auto: 3000, speed: 800, vertical: true }); }); // Barra Progresso function startbar(){ var barr = document...
asked by 22.02.2015 / 00:30
1
answer

Angularjs - creating input templates by passing variables

I'm trying to create a template for my inputs: partials / input_text.html <div> <input type="text" name="{{name}}" placeholder="{{placeholder}}" ng-model="model"> <small ng-show="{{form}}.{{name}}.$dirty &&...
asked by 14.02.2014 / 15:30
1
answer

Improved javascript in Dat.GUI

Hello. I created a simple block, using CSS variables . And to "set" these variables to test criteria, I'm using Dat.GUI . The current code is on this Pen . My question is how to improve this code, but specifically on lines 33-50 (the...
asked by 13.06.2017 / 18:26
3
answers

Page does submit even with error in validation

Hello, I'm having problem with a page because it's doing submit even when validation returns false . $("#botao1").click(function() { $.ajax({ url : 'adicionadaIdeia', type : 'POST', asy...
asked by 23.11.2015 / 20:39
1
answer

How to get the height of the div, lease it to the multiple of 24 closest and apply the result in the div's own style?

I need a script that does just that: take the height of div , lease it to the nearest multiple of 24, and apply the result to style="height" of div itself. It needs to be in pure Javascript, not Jquery. Follow the struc...
asked by 06.09.2014 / 23:16
1
answer

Create extension to manipulate DOM of other pages

I would like to know if you have any way to manipulate the DOM of another page with my extension. Ex: I open the popup of the extension and there is a button, and in this button I call a JavaScript function: var n1 = document.getElementById...
asked by 20.11.2015 / 03:03
2
answers

How to use CSS style in application?

I created an app for Android using App Framework from Intel and did the build with PhoneGap. It has the visual style of the framework , but when I run it on the Android device, it uses the native, black look. How do I reverse this?  ...
asked by 28.08.2014 / 15:47