Categories
Mastering Development

‘classList’ property returning null when element is present?

I’m fairly new to JS so I’m sorry if this has been answered. I’ve siphoned through most answers and they didn’t specifically fall in line with mine. I’m not understanding why the element cant is called upon when it’s there. I don’t think it seems to be anything with the CSS but I’m not completely […]

Categories
Mastering Development

Hangman Game Buttons Does Not Function Anymore

I was working on my script to make a hangman game and it worked perfectly. Then something happened (I possibly broken the code) that caused the game buttons to stop working. Now the "Begin!" and "Instructions" button dosen’t work. And the strange thing is that there are no errors in the code HTML <!DOCTYPE html> […]

Categories
Mastering Development

The site layout breaks when I make the program smaller

I’m new in html/css and tomorrow I will begin to learn js. I don’t know too much english but I will try to be as clear as possible: when I put the internet tab in half screen, and I scroll right to see the rest of the site, the layout is destroyed in half. Full […]

Categories
Mastering Development

Material ui: how to `makeStyles` with duplicate key?

I have this style background: "-moz-linear-gradient(180deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 66%, rgba(0,0,0,0) 100%)", background: "-webkit-linear-gradient(180deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 66%, rgba(0,0,0,0) 100%)", background: "linear-gradient(180deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 66%, rgba(0,0,0,0) 100%)", After create style with makeStyles, React complains about Duplicate key ‘background’. Is there a proper way to deal with this?

Categories
Mastering Development

Slider on mobile view images not showing

this is my slider code I got from codepen, I did some minor changes on it, but before and after changes in code, this slider not showing/loading images on any mobile view, I don’t know how to solved it.. please help!! My codepen link https://codepen.io/guenon/pen/GRZrqgq Some CSS link https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css Some JS links https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js […]

Categories
Mastering Development

How do I loop under Chart js in JavaScript for multiple axis?

I’m trying to loop into a chart js in order also to enable multi axis… however the function for seems to be giving an "unexpect token "for""… var getData = $.get(‘/graphcomp’); getData.done(function() { var ctx = document.getElementById(‘myChart’).getContext(‘2d’); var myChart = new Chart(ctx, { type: ‘line’, data: { labels: getData[Lenght], datasets: [ for (x in getData) […]

Categories
Mastering Development

Why my images are not displaying in my Git Hub Pages?

I`ve just built this github pages however for some reason my images are not being loading with the page. Here is the link of my site And here is my repo Notice that I put all my images inside a doc called "_imagens", and I correctly call it in my. Anyway here is where I […]

Categories
CMS Mastering Development Wordpress

How can I access the category.php page in WordPress?

I have created the category.php in my theme and added some code. The below code will display my category list. Now I want to know how can I access this category.php page? When I am accessing the mywebsite.com/category then I am getting Page not found. I added below code in category.php page <?php /** * […]

Categories
Mastering Development

convert sine-waves package examples to react component

I’m trying to use sine-waves package sine-waves package , in react app, first thing I did is looking for examples, border wave particularly and start to convert it to react component and when I tried to start the app, it gives me this error : is there a problem in canvas with react any help […]

Categories
Mastering Development

Translate not working within my if else but color change is?

I’m pretty new to this stuff but im trying to work out why my if else works to change the colour of the text correctly but the translate doesn’t happen? The colour change works perfectly every time it is just the translate issue. If you could explain why and what I should to do to […]