Skip to content

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? A…

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…

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

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