Questions tagged as 'javascript'

2
answers

Execute Function only when the div appears

Hello everyone, I have an accountant and I wanted it to start only when the #homario div starts appearing on the screen. <script type="text/javascript"> $(document).ready(function (){ $('.spincrement').spincrement({...
asked by 09.11.2015 / 17:01
3
answers

Help with QR Code reader in Cordova

I'm trying to make the app (cordova + onsen) read a QR code and when reading open the link contained in the QR, but instead of opening the link it tries to open a page in the root of the application (file: // android_asset / www / barcode.result...
asked by 13.11.2015 / 01:31
2
answers

AngularJS - Two functions in one file only

I'd like to put the two functions below in the same file, but when I do this, the second function ( notebooks ) stops responding. File App.js : (function () { 'use strict'; var module = angular.module('app', ['onsen']); module....
asked by 11.11.2015 / 01:11
1
answer

Problems animating sprites with javaS canvas

I'm trying to animate some Sprites Sheets, but I'm having a problem with a certain "shadow" that remains after the canvas runs the animation frame, it would be the previous frame, I can not fix it. Full code in JSFiddle: link . I think the...
asked by 25.11.2015 / 03:14
1
answer

How to show endpoint in maps by get? - javascript

I'm new to programming, and I'm developing an app from which I look for a list of taxis closer to my location through a website. But I'm having a hard time doing this. List the active taxi drivers within a geographic rectangle Endpoint: GE...
asked by 20.11.2015 / 23:31
2
answers

How can I make a link from my site open only when clicked on the same page? [closed]

I'm trying to make a plugin editor for html, css, js and php files, my problem comes after it reads all the files it creates a link to edit my created file and goes to another page only that I want that when the link is clicked it instead of red...
asked by 24.11.2015 / 22:41
1
answer

How to use a Cordova plugin?

How to use plugins in Cordova? Cordova plugin background mode I already installed with the command cordova plugin add https://github.com/katzer/cordova-plugin-background-mode.git' porém ao tentar usar usando 'cordova.plugins.backgroundM...
asked by 31.10.2015 / 00:49
1
answer

Remove session data dictionary with ajax in Django

I have an array with a data dictionary in my session and would like to remove according to the line that the user is clicking on a table where those values are displayed. My view: def deletar_servico_ou_item_selecionado(request): if re...
asked by 29.10.2015 / 14:14
1
answer

Close Menu with SlideToggle

Hello everyone, I have a menu for mobile "hamburger" and I want it to close when I press some menu link. Menu HTML code: <div class="menu"> <button class="hamburger"> <img src="images/responsive/cel_retrato/ham.pn...
asked by 20.11.2015 / 18:26
1
answer

Time zone in JS

$(function() { var d = new Date(); var hora = d.getHours(); if (_userdata["user_level"] > 0) { console.log("Você é da staff e pode acessar o fórum."); } else if (hora >= 22 || hora <= 7) { $('body').html(...
asked by 17.11.2015 / 01:52