Questions tagged as 'javascript'

2
answers

Dynamic HTML5 Drawer

Good morning! I've built several blocks with a div that through JavaScript, it interacts as if you were opening a drawer (block) with a click and closing it with two clicks through a function.    However, when you open one block and th...
asked by 31.12.2018 / 10:10
1
answer

What is $ parent in AngularJS?

I'm reviewing a PR from a colleague and I came across the use of $parent , I read a little in the documentation of the angle, but I can not understand what it does. Home Is it used inside a dialog created inside another, would it have any...
asked by 14.06.2017 / 19:45
1
answer

Is there any other reason for compressing JavaScript in source code other than being reduced in size? [duplicate]

Most libraries come with compressed code as follows <script>(function(){function c(b){window.setTimeout(function(){var a=document.createElement("script");a.src=b;document.getElementById("xjsd").appendChild(a)},0)}google.dljp=function(b...
asked by 07.07.2017 / 16:02
4
answers

View data format en dd / mm / yyyy

Good afternoon! I'm using the air-datepicker plugin for dates. When I click on the field, I see the format pt-br dd / mm / yyyy. Now, therefore, when opening the modal window, this date is displayed in the same dd / mm / yyyy format, sin...
asked by 07.06.2017 / 23:10
1
answer

Access array in Json

I'm trying to get a value inside the JSON but I can not get the value inside date > artist > image > [3]. # Text { "artist":{ "name":"Madeon", "mbid":"fa1de503-aba7-41fa-a1ed-371b3e87a717", "url":"https://www.last...
asked by 14.07.2017 / 02:57
2
answers

Are Java lambdas equivalent to JavaScript Closures?

I started to study functional programming and I'm a bit confused about these two items. My question is: Is Java lambdas equivalent to JavaScript Closures? If not, what is the difference between them? Thank you.     
asked by 25.05.2017 / 18:22
2
answers

Problem printing fields

Setting up a simple OS system without BD, I put a few fields to fill in the HTML page, and at the end a button to print, the problem is that on the screen before asking to print the fields are aligned, when it opens the print window some fields...
asked by 10.12.2016 / 23:42
3
answers

How to know if at the beginning of a p have "x" character?

Hello, I am a layman in JS / JQuery, but I believe it is in him that I will be able to do what I want. I do not know if many have used 4chan, but there, there is a function in which, if the user uses the ">" in every beginning of the line...
asked by 01.02.2016 / 14:26
2
answers

Doubt angularjs with array

How do I get only the id and key ? { "type": "champion", "version": "6.3.1", "data": { "1": { "id": 1, "key": "Annie", "name": "Annie", "title": "a Criança Sombria", "info": { "attac...
asked by 16.02.2016 / 18:38
1
answer

double binding is not working with AngularJs

<div ng-controller="TestController"> <div class="col-md-6 col-md-offset-2"> <table class="table table-bordered"> <tr ng-repeat="column in columns track by $index" > <td>{{ colu...
asked by 06.12.2016 / 17:56