Questions tagged as 'javascript'

1
answer

For what reason, I have to double click on the bookmarklet to insert a dynamic content

I developed a small plugin commonly known as bookmarklet . This result is almost satisfactory for my case, however, there is an empencilho. For me to start it I have to double click otherwise, it does not launch the player on the page. Since...
asked by 10.12.2017 / 22:17
3
answers

Is it possible to find darker / lighter tones from a hexadecimal?

Given any color in notation Hexadecimal , can you find the same in lighter or darker shades? example ... div { height: 50px; width: 150px; display: inline-block; text-align: center; line-height:...
asked by 18.12.2017 / 17:30
4
answers

Different colors inside tag h1

Is there any way to apply different colors to every stretch of text within: <h1>Cor1 Cor2 Cor3</h1>     
asked by 06.03.2018 / 21:27
1
answer

How to increment a div using For JavaScript

I'm using this code, but it's not catching. I want to increment with each click on the "Increment" button. Code: function incrementar(){ for (let i =0; i<10; i++){ document.getElementById("incrementar2").innerHTML = i; }...
asked by 16.02.2018 / 01:53
1
answer

How do return a javascript function return an HTML?

I took the following function in JavaScript (jQuery): function CustomAlert() { this.show = function (nome) { }; } var Alert = new CustomAlert(); $(document).ready(function () {...
asked by 31.08.2016 / 15:31
2
answers

Embed link to search box redirection

I have the http://www.algumacoisa.com/d/ I need a code where there is a text box, the user types the link and clicks "go" then it is directed to http://www.algumacoisa.com/d/HTTP://WWW.LINKDOUSUÁRIO.COM However, no database. Is it po...
asked by 10.09.2016 / 03:56
1
answer

Gulp Watch Custom

This is my current Gulpfile and as I am using it a lot, I would like to create a GULP WATCH that would perform uglify whenever the files were changed. var gulp = require('gulp'); var uglify = require('gulp-uglify'); var pump = require('pump');...
asked by 08.02.2017 / 18:50
1
answer

canvas - Fill a semi smile with red color

Good night guys, this is the next one, I need to fill the smile of Snowman with red. But I'm not getting it, I do not know if it's because I'm making a mistake in the code or if I'm drawing the wrong smile. The smile I drew with a semi circle...
asked by 13.02.2017 / 02:20
2
answers

Insert array within a scope of the angle

Hello, guys, I'm a beginner in angular, and I'd like to know what I'm doing wrong here. Look at this: Every time I click a button I want it to add some "modified" information from an object called a match to the betting object. The problem is th...
asked by 09.02.2017 / 14:22
1
answer

Jquery find the key from a value

I have an array with values that vary by page. I'd like to know how to get the key for a specific value. Example: minhaarray = [5,10,15,20,25] How do I extract the key from the value 15?     
asked by 12.02.2017 / 19:54