javascript

What is this line? chrome-extension://napifgkjbjeodgmfjmgncljmnmdefpbf /styles.css

You need to optimize the site, but the inspector shows that this extension is not used by 100%, and it has weight. "chrome-extension://napifgkjbjeodgmfjmgncljmnmdefpbf / styles.css" - what is it? do I need to delete it?

How do I calculate the sum of cells in a table?

There is a code like this: var html = '<tr><td><input type="text" name="name"></td><td><in ... "cost" cells sum up and display in the "sum" input? I tried several options found on the network - I did not come to success(

How to get the element class, waypoint.js?

There is such a code <div class="main-elements"> <div class="main-item"></div> <div class="main ... . log does not output the html element itself. How to get exactly the html element in order to add the{[3] class to it]}

HTML5 Canvas: How do I update the canvas?

How do I update the canvas canvas? clearRect(0, 0, 500, 500); - and how do I specify which canvas to update?

How to find out the height or width of a javascript image

There is a picture <img src="test.jpg" alt=""> <script type="text/javascript"> $(document).ready (function( ... }); </script> Outputs 0 If you write <img width="100" height="80" src="test.jpg" alt=""> Then it turns out

Data exchange between JavaScript and PostgreSQL (WITHOUT node.js)

Please tell me how you can "make friends" with JS and PG? As far as I understand, directly from the browser without using Nod ... tly passes them to JS for their corresponding output on the front?! I will be glad to receive answers and bright thoughts )))

Smooth page scrolling

Hello, dear forumchane! There is such a question, who does the smooth scrolling of pages? I myself currently use nicescroll, but not everything is as perfect as I would like. Here is an example of my work http://skferson.ru/

How do I make all the buttons work using querySelectorAll and forEach?

Please tell me how to make all the drop-down lists work, and not just the first one? As far as I understand, you need to iter ... ;</li> </ul> </div> </div> The source code for codepen is here. Thank you all in advance!

Styling a specific ScrollBar

Is it possible to style a ScrollBar for a specific element? For example, I open a modal window on the site and make it scroll differently from the one that scrolls the page itself.

Recursive array iteration in JS

Please tell me how to iterate through an array with an unknown nesting? The situation is this, I practice js and reactjs at t ... hem... but unfortunately I haven't thought of it yet. If it is not difficult to 'show let it be true'. Thank you in advance )

Content slider.

Good afternoon! Need a slider: On the left there are five blocks, and on the right there is a block with an image,and you nee ... ure that when: hover on the div on the left the corresponding img is displayed. Share the link or show an example of the plz.

How do I add display: none; in the html markup on click?

How do I add style="display: none;" to test-class1 in html markup by clicking on a button without assigning a css class with ... one;? <button class="test-class1">Скрыть</button> <div class="test-class2">Скрой меня!</div>

Moving the image with the mouse js

There is a picture not wrapped in div. There is also div1, it is empty. There is a div2, it is also empty. There is a div3, ... so that the mouse can then simply hover over any empty div and move it to it by clicking on it. Tell me how to implement it.

How do I display an image in the desired bokeh when hovering over a small image?

There is a product page with the main picture, under it there are 4 additional images of this product. http://gyazo.com/263 ... t;</li> <li class="slide-3"><a href="#slide-3">картинка</a></li> </ul> </div>

How to make an image zoom when clicked with a white border appearing around the image

How to make an image increase when you click on it, with the appearance of a white border around the image and a cross for cl ... " > <div class="features-circle"> </div> </div>

How do I insert a red * in placeholder?

<input type="text" id="reviews_nm" class="input_field" placeholder="Ваше имя*" name="name"> So that the * sign is red?

Getting the screen resolution

In the network, I found an example of getting the screen resolution. <script type='text/javascript'> document.write('Р ... ; Returns - Screen resolution: 1138×640px. , although the real resolution is 1366×768. How do I get the correct permission?

How do I set the fat content for the entered text in input? (HTML, CSS)

How do I set the fat content for the entered text in input? Not for placeholder, but for the text that the user will enter. The placeholder should be unchanged in its normal state.

Define a viewBox for svg, if it is not present in the svg itself

There are two svgs. In the first case, the svg has the specified viewBox="0 0 57.21 126.47" https://jsfiddle.net/5jaLdyex/ & ... oad this svg in the canva constructor, then it will define the size 57.21 126.47 even if the width/height/viewBox is not set.

ForEach addition of array values (JS)

Tell me if there is a more competent solution for adding array values Now I do this count = []; array.forEach(function(data, ... not to glue everything through eval. I tried different options, but something I did not manage to achieve a positive effect.