According to MDN documentation translate() method “moves the canvas and its origin” but the below code does not move the border of the canvas. If the translate() method moves the canvas shouldn’t the border move as well? Answer I don’t quite understand what you are trying to do. If you…
Tag: html
Image in span tag into an img tag
I try to display an image with <img src=”” alt=”music cover”> using <span></span> to display the music covers of my web radio. The link is dynamic, it’s why I want to use the span tag for getting the url link of the image’s shown during music playback. I&#…
How do I save the content after the onclick?
I already connected the html with js and I get the data from a form when the onclick is activated but since I save each data that I receive to use it later, how do I get the data out of the function without having problems: Answer You should create an external variable to save the data you want, when
I want to have the navigation fully displayed in full screen and hamburger in phone width
I am not sure how to look for this information online, so I want to ask here. I want to have the nav bar display fully on full-screen media query but in a hamburger when phone width. Any direction would be appreciated. Answer Heres one example https://codepen.io/alvarotrigo/pen/MWEJEWG
Show and hide div in react js
How do I hide my page “section” when I click on a button. and show it another button is clicked Here’s my code how do i make the onClick event work it out? Answer Just set a state let’s call it for example hide and set default value false, and on the button click turn it to true. And y…
Using RequestAnimationFrame to create Fade in effect
I know this can be done by using CSS transition, however this 2 seconds fade-in exercise has to be done by using requestAnimationFrame, below is my code, it shows the picture but no fade in effect, also the render process is not smooth. Could you tell me where i get wrong and how to correct it? Thanks very mu…
Display HTML table from xml file over web browser without using any software or installation on unix
I am a very new to HTML and javascript. Have come across many questions with regard to my problem and after struggling a lot to find a solution, I am posting this question. Problem statment: I have an xml which I am trying to convert it to HTML so that I can display it over web browser in a table
Hide search elements in Javascript
In the following example code I want to hide the elements that show under the search field. Code is from W3: https://www.w3schools.com/howto/howto_js_filter_lists.asp Search elements should only show when users starts typing in the search field. Nothing complex just looking for solution for beginner. Thanks A…
How to display multiple color values using javascript and input type=color
I have multiple color pickers and want to display the value next to the color picker… W3 has an example of displaying one, and I’ve tried to give each color picker its own function which works, but it’s rather tedious since I have around 7 color pickers. I feel like there could be a better w…
Autodesk Forge Viewer – Add a field/box that allows text to be displayed in the viewer window itself
Good morning, I need to be able to show in a corner of the Forge viewer the value of the zoom applied to the model I am viewing (for example “25%”). I wanted to know if it is possible to show this information by adding a text field/box or something similar in the viewer window itself (just as it h…