Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing all 139771 articles
Browse latest View live
↧

Is there a way to play the same sound again even if it hasn't finished...

I want to overlap sounds. When a user presses a button, this function gets called const playAudio = () => { audio.play(); }; The audio is just this: let audio = new Audio("./snd.wav");The problem...

View Article


How to change site title on scroll

I want to change the site title's h1(.site-h1) to another text when down scrolling with jquery. For example, "my site" changes "welcome" when...

View Article


Image may be NSFW.
Clik here to view.

How to make the same borders? (Image inside)

I create a fun site in the old form, I would like to achieve the same effect when the text is centered but not affected by borders.

View Article

Sharing javascript for Poshmark Closet

I have this javascript code (using it as a bookmarklet in chrome) that was working for me at one point on poshmark's website. I had to clear my browsing history and cache recently, and the code stopped...

View Article

Fetch() doesn't add to Blink's MemoryCache?

It appears that fetch()/xhr loaded resources don't get added to Blink's MemoryCache, and thus any later request for the same resource only yields an http cache hit and not an in-memory hit. Is this...

View Article


JavaScript Define Property in Terms of Method

Please note this question is not answered by Self-references in object literals / initializers as that question addresses defining properties in terms of other properites, not methods.Also, How does...

View Article

Image may be NSFW.
Clik here to view.

Custom cursor with drag and drop an HTML element without libraries

I have an HTML page which has some draggable elements. Our specs say that hovering mouse on such element the cursor must be grab, and during drag cursor must be grabbing.I know it is possible to set...

View Article

jQuery UI add droppable event listener while hovering

I want to add droppable event listener while dragging one object and hovering droppable object.Here is my code:$('.will-be-drag').draggable({ helper: 'clone', drag: function (event, ui) {...

View Article


css and javascript files are not linked

Good evening everyone I would like to deploy a web application (WebForm) developed with VS2017 locally on IIS but the css and javascript files are not linked. I developed under VS2017, everything works...

View Article


Create entity from database

Create entity from database.Sorry my english is very poor, But there is a possibility to create entity from database sql, that the tables in your database.

View Article

Matching dollar literally but only if not escaped [duplicate]

so I have a string like hello $1 and another string hello \$1 I want to use a regex test to check if the dollar has a backslash behind or not. If it has one then test must evaluate to false and if it...

View Article

Protractor - TimeoutError: Wait timed out after ####

Im using Protractor with Cucumber and Im facing this issue.And Right-Click on the first record Sort Pair # RQA\node_modules\cucumber\src\support_code_library_builder\define_helpers.js:90 TimeoutError:...

View Article

using spread syntax with ternary operator inside object literal

Consider following code, where one object is composed from two parts: values and their corresponding descriptions:let flagConfigObj = {}; const features = { f1: { value: 1, type: 'type1' }, f2: {...

View Article


Change background color after click on the

here's my thing When clicking on it needs to change the background color of the how to do?Thanks alot!!<div class="block_"><ul id="playlist"><li class="btn"><span><a...

View Article

Recursive functions to iterative. Binary tree post-order traverse

I saw a good explanation about refactoring of binary tree in-Order traverse function (from recursive to iterative): https://stackoverflow.com/a/2116755/12744612But I can't refactor Post-order traverse....

View Article


javascript recursive iteration is returning entire parent div in the...

I want to implement search functionality on my div whose html is as below :<input type="search" id="mysearch" placeholder="Search here" /> <div class="sken-cues-body" id="mydivbody">...

View Article

Image may be NSFW.
Clik here to view.

Null Values in Zones in Highcharts

I have graphs that have zones. Currently if there is a null value, that null value is displayed in the tooltip with the zone color of the point before it. I want the null value to always be the color...

View Article


Switch statement in Javascript with variable comparison

I've found a great count up timer on-line, but I need a timer that will show time till a certain date, and once that date-time has past, it'll show how long it's been since that date-time.I've tried to...

View Article

Image may be NSFW.
Clik here to view.

Altering the DOM manually in React

I am using Ionic's IonPicker component, which renders, as a sibling to React's div#root, an ion-picker element, which appears to be a full screen overlay, which has two children: an ion-backdrop...

View Article

Adding a Would you like to resume to Jwplayer

I am stomped and I dont even know where to start.... I am needing to add a Resume feature to my player... Where if there watching a 45 min VOD video and close the window at 34:45:23 min then when they...

View Article
Browsing all 139771 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>