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.
Tag: html
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
“placeholderā attribute using knockout – JSON
I would like to use placeholder attribute using data-bind but I have a error message([object object]) . Please let me know how can I use it. html: json: Answer The placeholder attribute should be a string (ko.observable), not an object. Simple example: http://jsfiddle.net/xtdL7om1/
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
Bootstrap datetimepicker don’t work with readonly or disabled
I have a serious problem with bootstrap datetimepicker, Here is the jsfiddle : The problem is that when i open my website in mobile, mobile keyboard triggered when i focus the input field so what i need is that only the datepicker show without keyboard. So for that i use readonly or disabled, but the problem is that when i
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
How do you enable Dropzone options? autoDiscover breaks Dropzone functionality
So, I tried following the solution here: Dropzone image upload options not working š but, whenever I provide the option: the dropzone goes from displaying the default drag’n’drop look to just text with a “Browse” button. Here is my code (dropzone is included in header): So, the question is, how do I specify options for dropzone without ruining the default