Questions tagged as 'javascript'

4
answers

How to change font in textarea using javascript?

Is it possible to change the text font of a textarea using javascript?     
asked by 20.07.2017 / 21:23
1
answer

Automatic scrollbar

Good morning! I have the following question, I need the bar to go down to the bottom of the page as a monitoring system, I need to come back to the top and give me a refresh. Can I get this using javascript? Thanks in advance.     
asked by 13.04.2015 / 16:02
3
answers

Sorting numbers without repeating in javascript [duplicate]

I need to draw 16 numbers and store them in an array, but there can be no repeated numbers. Follow the code. var numero = []; function numero_aleatorio () { for(i=0;i<16;i++) { numero.push(Math.floor((Math.random() * 1...
asked by 21.06.2017 / 19:44
2
answers

Javascript with Object Vectors

var Carro = function(){ var marca; var modelo; //this.setMarca = setMarca; this.setMarca = function(_marca){ this.marca = _marca; } this.setModelo = function(_modelo){ this.modelo = _modelo; } this...
asked by 02.03.2015 / 00:16
2
answers

Changing date to be shown in datepicker

I'm making a calendar with datepicker , and I need this calendar to show only Mondays, and most importantly, show one month after the current date, ie, it will have to show from 05/27 only Mondays. I've been able to get him to show you...
asked by 27.04.2015 / 19:43
2
answers

Restrict method override of an object in javascript

I'm trying to create an object where its methods can not be changed. That is, its value, even if changed, should continue as initially defined. Example: var object = (function(object){ object.method = function (text) { retu...
asked by 09.02.2015 / 16:11
2
answers

Change CSS with javascript when clicking

I have a circle in css and half of it is hidden. When you click on it, I want the hidden part to appear. When I click back, I want him to hide again. I made the following javascript code, the problem is: I click, it appears; clico, hides; I clic...
asked by 03.03.2015 / 18:38
3
answers

How to leave the first capital letter?

I have the function, and it works perfectly: $.fn.capitalize = function() { function isTRChar(key) { var trchar = [231, 246, 252, 287, 305, 351]; for (var i = 0; i < trchar.length; i++) { if (trchar[i] == key) return true;...
asked by 27.07.2017 / 19:46
2
answers

Real difference between Call and Apply methods

What is the difference between the call and apply methods? I could not identify the difference in which one separates the arguments and the other generates a vector for the arguments: function scope() { console.log(this,...
asked by 14.04.2018 / 22:06
1
answer

Integrating HTML + Node.js with Angular.js in "Real Time"

I have some issues with automatically updating a code in Angular.js inside my site. The integration is Node.js with HTML, integrating with Angular.js. However I have to always give F5 on the page so it updates the variable "Temperature". I would...
asked by 03.10.2016 / 21:04