Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I am making a news website using html css and js as a project. I want to se…
Category: Questions
How to Display plain text of api result ( noob question )
I am completely new to api. I want to display the plain text response of the output of this: https://vurl.com/api.php?url=https://google.com to my webpage html but it’s not working. My code: Thanks Answer Not really sure why you’re mixing javascript with your php code. Nevertheless, this is the ap…
ParcelJS: Build HTML to different subdirectories using the same code
I have two .html files using the same Javascript code and assets. As they are representing different language versions of the same site, I would like to build them to different subdirectories with parcel. Currently, I’m building these in an asymmetric way. The .html files are the entry points, index.htm…
What is the best way to use $state in Vue.js?
I used to do AngularJS and now I wanna try to work with Vue.js. But I have a simple question: what is the best way to use and access states? I saw so many solutions on Google but I can’t find which one is the best for a beginner. I used to use states like this : Can you give
How can i click my html (DOM) and open an existing popup on my Leaflet Map. Im only using Vanilla JS
Im trying to conect my “See in map” (html) with my map and open a popUp that is already created (i click on the map and the popups open). i know i have to use something like but i dont know how to do it. Can anyone help me? Thank you! Answer I see that all of your links have
Set an alias for the junction table in a many to many relationship in sequelize
Apologizes if the title is confusing, I’m unsure what terminology to use here. Basically, I have three (Four, technically, but the fourth is nearly identical to user.model.js) models: user.model.js ‘…
Get total sums for last 3, 7, 30 and 90 days with moment
I have an array of orders with created_at and total fields, where created_at is the date the order was created and total is what the user paid. Now I want to get the sum of the totals for four different date intervals, last 3 days, 7 days, 30 days and 90 days, how can I use moment to check if
When I minimize the screen, the html page is limited and the divs slide
I am having this problem for the 2nd time. At first I thought it was because I was a rookie (I’m new to this field) when I asked the employees at work and they couldn’t figure it out (I work as an intern). The problem is that when I decrease the height, the height occupied by the html page changes…
Using Javascript, refresh a page every 30 seconds UNLESS a phrase appears
Existing code I use the following code in ViolentMonkey (or GreaseKit or TamperMonkey) to refresh a page every 30 seconds: Can I make it stop? This has been working fine for many years. But now, I want my code to NOT refresh the page if the following phrase is present: Important shizzle (The reason I don̵…
HTML5 Canvas stroke not following mouse Y point
I’m writing a drawing app in HTML5 Canvas, which includes a freehand draw with the mouse. I have a problem whereby the mouse move to draw the stroke is not under the crosshair cursor. The X co-ordinate is fine, but the Y coordinate is offset by a varying amount as the mouse pointer is moved (closer at t…