The staff who write this code for our company website has left company almost 10 years cannot contact him to fix. The site is www.giffindex.com (I want the VDO auto play). The problem is it need to click logo on top left corner 1 time for trigger VDO to running. What can I try next? Answer There are 3 ways
Tag: html
Horizontally center a div relative to the viewport when parent is small
I have a page layout with a sidebar alongside a main-content div. Partway down the page, I have a div (parent) inside of a div (child). The child div needs to be horizontally centered relative to the screen instead of the parent. My first thought was using absolute positioning with something like this: The pr…
How can I convert HTML to Object structure with text and formatting?
I need to convert a HTML String with nested Tags like this one: Into the following Array of objects with this Structure: I managed the conversion with the DOMParser() as long as there are no nested Tags. I am not able to get it running with nested Tags, like in the last paragraph, so my whole paragraph is bol…
D3 text in alignment with rect
I have rect and a description text above chart – Issue is description text is not getting properly aligned with rects. Description is getting mixed into rects. I want to start text after rect ends. I have below code – HTML getting generated for color rect and description text – How can I avo…
scrollTop using computed in vue.js
Here is part of my code The button doesn’t disappear when i scroll the page to the top. Answer You need to listen to scroll event, try like following snippet:
Unselect last pallet when selecting a new Pallet
I’ve been kind of stuck on this for a little bit and im in need of some assistance. I’m trying to make it where when I select a pallet it unselects the last selected pallet then selects the new one. I had an idea to do it but I feel like there’s a more efficient way going about this. If
How to embed an accurate DOM Elements Counter without Popup Box
Stumbling upon a Javascript DOM Elements Counter here and here (courtesy of lingtalfi) I want to speed up my website. Apparently the number of, the length of and the depth of DOM elements seems to have an impact on speed. I want to count the DOM overhead and show it in the HTML without a need for a keypress. …
Undefined Json response from django backend to chrome extension alert
Hi i am trying to return a json file to the chrome extention to show it to the user, the query go to server without a problem, fetched url is also working and does return the json file when i try it directly, but the chrome extention shows “undefined” message in the alert instead of the json file.…
Zoom image without using scale
General Info Working on creating my own carousel. The idea is that the image zooms in slowly at the start of each carousel “page”. The Problem To achieve the result I’m looking for, all I have to do is change the scale of the background image using a transition. Simply wrap it in a container…
How to change accept attribute of input type file based on select file type using javascript?
I have a select list like this I want to change the accept attribute of file input according to the selected FileTypeIndex by JQuery But it is always “.”, and it won’t change Answer You just need to change the datatype of filytypeIndex variable to number using Number() function of javascript…