Questions tagged [JavaScript] (43914)

1
answer

I use animation images in JavaScript?

Good day! There are animation images done in JavaScript rotatePhone function() { for (var e = 0; e < 46; e++) e <= 9 && setTimeout(function (e) { return function () { $(".phone-screen").attr("src", "images/iphone/000" + e + ".png") } }(e), 17 * e), 9 < e && e <= 45 && setTimeout(funct...
darrin_Ort asked April 4th 20 at 14:22
2
answers

Where to find the normal forum is made in nodejs?

Tell me a good implementation of a forum written in nodejs?
reed.Breitenberg asked April 4th 20 at 14:21
2
answers

Like when you click on the element to remove the class from the previous element and add to another?

There's three items, one set the default style class that indicates that this item is selected. I need when clicking on other elements class of the last element deleted and added one that was made click. Would like to understand how to optimize the code, because that's how I implemented it now is not very convenient and cor...
eino.Bos asked April 4th 20 at 14:21
2
answers

How to GET value from URL?

Tell me why is not working condition: if ($.get("test")) { document.getElementById("myDIV").innerHTML = "How are you?"; } if the url is valid www.site.com/?utm_source=test and in passing still a question: like based on GET values in the URL change the value in file.js? Example: file.js // here some code.. varP.setAttribut...
Concepcion.Barton asked April 4th 20 at 14:21
1
answer

How to get the value after executing the asynchronous function?

Can't get the value of array after filling it in asynchronous function. public massiv: object[] ... public async doMassiv(x: number) { const element = await doRequest(x) if (element.dataList.length != 0) { element.dataList.forEach( (item) => { this.massiv.push(item.name) this.doMassiv(item.name) }) } console.log(thi...
friedrich asked April 4th 20 at 14:21
1
answer

"bad channel CORS preflight" — how to solve?

Good afternoon. In .htaccess add the following headers: <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" Header always set Access-Control-Allow-Headers "append,delete,entries,foreach,get,has,keys,set,values,Authoriz...
teagan_Koch asked April 4th 20 at 14:21
2
answers

Arrange the items in the list?

Lost in the puzzle. I tried to first select all the places traveled people, but then can't figure out a way to solve the condition const arr = [ ["Mallory", "Everest", "Mont Blanc", "Pillar Rock"], ["Mawson", "South Pole", "New Hebrides"], ["Hillary", "Everest", "South Pole"] ]; (function (array) { let set = new Set(...
kristoffer.Dicki48 asked April 4th 20 at 14:21
4
answers

How to remove text from div using Javascript?

Features: button (button), block (div) and the text within the block. Question: how button to remove the text from the block?
Gladys76 asked April 4th 20 at 14:20
6
answers

Are there ways to protect against draining the js files?

Good time of day. Copied one online designer banner stands, designer really cool and multi-functional and the client is treated fairly in the normal amount. Now afraid of what will merge as is only used js, html, css, and images. Are there options to protect the site from draining? that he only worked with him on hosting fo...
toy.Mer asked April 4th 20 at 14:20
2
answers

How to resize fonts in web?

Good day dear members of the community. The task of the next. There is a block with specific dimensions. It is inserted in the tag with text. You need to scale the font size so that it climbs over the edge of the parent block. How many would not put text, it will decrease up to the point of absurdity (when to read it will ...
myrtice_McLaughlin30 asked April 4th 20 at 14:20