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.
javascript
982
questions
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 ...
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 \\...
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 ...
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 ...
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 ...
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:
...
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 ...
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,...
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=&...
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 ...
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". ...
-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", ];
...
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, ...
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 ...
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 ...