Skip to content
Advertisement

Tag: html

Calculate percentage Javascript

I have a question about javascript logic what I use to get percent of two inputs from my text fields. Here is my code: For some reason if my inputs are 600 and 200, my result suppose to be 33.333 but I’m getting 3.333. If I hard code my values this works fine. If anyone can help I appreciate that.

Html2canvas image capturing issue with UTF-8 characters

I want to capture my webpage, In order to this I find html2canvas, when I use as shown below ,my UTF-8 (persian) characters get in trouble and this direction destroyed as you see. HTML: JavaScript: WebPage: Captured WebPage via html2canvas: you can see full example here What is wrong with my implementation? Answer Set the box css that have trouble

Fixing greyed-out .owl-carousel div

I’m making a call to get a page (getresult.php) through AJAX. The ID div in my index: My footer: The script for calling getresult in the footer: Now this is my page getresult: My problem is the carousel class doesn’t work. When I remove the class owl-carousel, I can see the pic. I have the CSS and the JS owl-carousel

Pre-loader Image at page load issue

I am sorry for asking a very minor thing but I feel a bit helpless in this one. I have integrated a pre-loader image at my page load in a very simple way This is my Page link HTML: (Div for loading Pre-loader image) Jquery to trigger the pre-loader on page load A bit of Styling . CSS Problem When

How do I make images change with a rock, paper, scissors game?

I’m trying to build a Rock Paper Scissors game in JavaScript, but also have it where the computer outputs images to the HTML document. I’ve tried everything I know, and it won’t work. Here’s the HTML: And here’s the JavaScript: The “rock.png”, “paper.png”, and “scissors.png” are based on their respective items, and “blank.png” is just a transparent image. This program

JS (No Jquery) – Change CSS when scrolled to a set point

Sorry, but I am a complete noob with JS. I am using Bootstrap to try build my first website. The website has a fixed top navbar. I want to change the navbar’s border-bottom properties when it reaches the bottom of the header div (about 480/500px down the page). Currently the border-bottom is white, but I want to change it to

Google charts from MySQL

I have tried for several hours to get MySQL data in a Google charts but I can’t wrap my head around how to make a working page from the examples I’ve come across on the internet. To start fresh I took a example from Google charts and manually filled it with data. This gives me the graph I want to

Advertisement