Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [javascript]

For questions about programming in ECMAScript (JavaScript/JS) and its different dialects/implementations (except for ActionScript). Note that JavaScript is NOT Java. Include all tags that are relevant to your question: e.g., [node.js], [jQuery], [JSON], [ReactJS], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 votes
0 answers
4 views

How to style Mapbox' Heatmap

I have this GeoJSON (can be downloaded here). The data is distributed through a grid, thus the points are distributed regularly. However, each point has a different "weight" via the prop ...
four-eyes's user avatar
  • 12k
0 votes
0 answers
11 views

What is the equivalent JavaScript syntax to Python's rawstring syntax r"" (instead of rf"")?

In Javascript, we can use the ES6 raw string String.raw`raw text` to form a raw string, but it uses the template string syntax at the same time. If I want to store the string "${a}\\${b}, with \\...
Tastror's user avatar
0 votes
0 answers
10 views

EJS isn't being rendered

I'm making a rock, scissors, paper game on the backend of Node.js with express server, frontend.js client-side, index.ejs and main.css files. I firstly want to render a string line of the result of ...
Yuval Yanay's user avatar
2 votes
1 answer
13 views

Is there a way to activate the printing header and footer using JS or CSS?

I've heard about @page in CSS, that can change margin, orientation, page break, but my question is: Is there a way to activate the "Headers and footers" option, for that when I open the ...
Henrique Dias's user avatar
0 votes
0 answers
4 views

Responsiveness problem with my div using Vue and Tailwind (Keeping the width when it should shrink)

<div class="flex flex-col bg-sky-600 bg-opacity-35 w-full overflow-y-hidden h-auto max-h-64 px-5 rounded-lg shadow-md pt-5 text-white shrink scroll-smooth"> <h1>TODAY'S ...
Yasin's user avatar
  • 1
0 votes
0 answers
4 views

Passing an object to a route with vue-router

Based on this from vue-routers site it seems as though you can pass an object as a prop. However, everytime I try to do this it seems to it fail saying invalid param My route is defined as follows: ...
Qiuzman's user avatar
  • 1,471
0 votes
0 answers
6 views

Linking to emulator

Has anyone got any idea why this emulator won't link directly? It accepts code from the address bar and links from scruss.com okay https://scruss.com/blog/2018/07/02/moar-10print-nonsense/ I want to ...
Oggy Osborne's user avatar
0 votes
0 answers
13 views

Can I be sure that the application/json header is only set on ajax requests?

I need to distinguish browser requests from ajax requests and can see that when making a request via a form submission in regular HTML, I get the following value for the accept header: text/html,...
Oscar R's user avatar
  • 452
0 votes
0 answers
8 views

Mark table with swipe gesture on mobile phone

I have the following code: index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content=&...
r5tr3's user avatar
  • 134
0 votes
0 answers
11 views

Show custom HTML in Firefox add-on popup/dialog

I'm learning how to make an extension (for Firefox). This add-on reads the youtube main page (https://www.youtube.com/) and get the visible videos on it. From those videos, I'm able to extract the ...
Mauricio Arias Olave's user avatar
0 votes
1 answer
12 views

Refresh / Reload page on pause youtube iframe api

I have a problem with my code. I want to refresh the page on pause or exit of full screen. The exit on Full screen works. The pause using the youTube iframe API does not "onstatechange". ...
Tone's user avatar
  • 19
-2 votes
0 answers
34 views

How can I make all my images to fit in the screen? [closed]

const names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", ]; ...
Alex's user avatar
  • 91
0 votes
0 answers
8 views

Hide page count from the go to section of the pdf toolbar when pdf is opened in browser

From java side I am converting tiff images to PDF like below. Rectangle pagesize = new Rectangle(maxWidth, maxHeight); Document document = new Document(pagesize); PdfWriter.getInstance(document, ...
Raju Kumar Shah's user avatar
0 votes
0 answers
27 views

How to automatically change the background color on left side of an HTML range slider?

I'm making an HTML music player project and I'm trying to make the left part of the <input type="range" value="0"> slider be black. The slider is to show how much a song has ...
user26529736's user avatar
0 votes
0 answers
12 views

How to create coupon/paywall in an Elementor Pro page for FREE

Hi there masters good day! Is it possible to create a page with a coupon code form, then the selected visitors need to enter the valid coupon code I emailed to them, and if the coupon code they ...
troyds's user avatar
  • 65

15 30 50 per page
1
2 3 4 5
66