Pardon my ignorance but can the getHref function be applied to returning an img src? I’d like to get the url for the image below <div class="uk-width-medium-3-10 uk-text-center"> <img src="/images/saleitems/Toaster.svg" class="uk-border-circle" alt="great toaster"> </div> I have this working for a breadcrumb URL … function getHref() { return document.querySelectorAll(‘.uk-breadcrumb li a’)[1].href; } My sad attempt at ..
Category : css

I have a canvas that I can scale and move around with my mouse how do i get the x and y number of the pixel i am currently hovering over? I need exactly the pixel number (which consists of two digits x and y) In the future I would like to draw a small ..
I learn about website design and development on the w3schools website. I stumbled on a code and I have been playing around with it. I want the pop-up to show underneath the text instead of above the text but I have no idea how to do it. w3schools also did not explain how to do ..
I’ve added on a scroll the navigation turns white, but how can I have it when it goes back to the top of the page the navigation goes back to transparent. Source: Ask Javascript..

I have been attempting to output a variable to an inline style, like this: v-bind:style="{background: item.image.url }" It is placed within a loop: <li v-bind:class="item.class" v-for="item in data.items" :key="item.id"> <div class="NewsAndAds_mainArticleImageWrapper_123Ab NewsAndAds_commonImageWrapperStyles_11MvG" v-bind:style="{background: item.image.url }" loading="lazy" alt="Geelong: The last house on Brougham Street up for sale"></div> <div class="NewsAndAds_mainContent_2yyly"> <h3 class="NewsAndAds_mainArticleTitle_2MQTl NewsAndAds_commonTitleStyles_3fpOS">{{ item.title.contents }}</h3> <p class="NewsAndAds_labelAndDate_3iEur"><span ..
I’m currently doing a functionality where the user can upload multiple files and I have this issue that when I want to remove one or more files from the ready to upload attachments, clicking the corresponding ‘x’ button in one file will eventually remove all files from the display(preview files) but they’re not actually completely ..
I have created a timetable. I want the color of the subject to change during the time of the subject, according to the time automatically. But the Javascript code is not working. Please help me fix the code. The JSFiddle link is here: https://jsfiddle.net/Xampicus/t3j1xcyk/2/#&togetherjs=vghzPt6TKP The code for HTML and Javascript: <html> <head> <title> Exynos </title> ..

I have a normal navigation bar display on desktop and I try to make it responsive so it will toggle when click hamburger icon on mobile. When clicked the hamburger icon, I’m using jquery to add a black background cover it. But my problem is I can’t manage for it covers the entire page. I ..
I found some similar questions but they were pretty old. So I will tell a little bit of concept of my app so you can understand. I have a solar system app and planets are orbiting around sun. And one year equals to 5 seconds in this app like this; //Planets.scss $–one-year: 5s; So planets’ ..
I’m trying to overlay an image with another on scroll, and it work on all browsers and even on mobile but not on safari. My code looks like this: var gjatesia_e_fotos = $(".foto-e-pare-index").height(); $(window).scroll(function() { var screenRelativeTop = $(".foto-e-pare-index").offset().top – (window.scrollY || window.pageYOffset || document.body.scrollTop); var height = $(window).height(); var largBottom = height – screenRelativeTop ..
Recent Comments