Posts by dib • 157 points
12 posts
-
2
votes1
answer62
viewsQ: How to display the highest number of decimals in javascript?
I was doing some experiments and I would like to calculate the 1,000 first decimal places of the Euler constant (as demonstrated on this website http://www.profcardy.com/cardicas/constantes.php),…
-
0
votes1
answer196
viewsQ: How to pass a variable as a parameter to "getElementById"
I need to color several canvas, the code below colors one of them var canvas1 = document.getElementById("a1"); var ctx1 = canvas1.getContext('2d'); ctx1.fillStyle = cor; //aqui vai a cor html…
-
5
votes1
answer235
viewsQ: How to switch a CSS style sheet and maintain its state in Web Storage?
I need to change a whole sheet of CSS style, I’ve done both, one, the main and the other with accessibility (high contrast, larger letters etc.) <link rel="stylesheet" type="text/css"…
-
0
votes0
answers39
viewsQ: How to implement a "Listener" in javascript for screen viewing?
I need to implement a change in my code so that when I change DIV, IE, stop viewing the page, the sound that is running automatically stops, as already happens with the videos of Facebook/Instagram…
-
0
votes0
answers59
viewsQ: How to use composite links - '.html file#secao'?
I made the following button: <a href="/../totem_app/xplaces/00_menu_vitoria_xingu.html#acru" target="_parent" class="bcontraste"><b>LINK</b></a> to go to <a…
-
2
votes1
answer3724
views -
1
votes1
answer550
viewsQ: Button "Play/Pause" - How to restart playback?
I made a simple button "play/pause" for audio, with the following script: <audio id="myAudio" src="http://www.sousound.com/music/healing/healing_01.mp3" preload="auto"> </audio>…
-
0
votes1
answer47
viewsQ: How to change the CSS in this case?
Good morning everyone! Being very objective. I want to change the CSS of two different pages at the same time, with an on/off button on one of them, and make this change in all of them, but I have…
-
0
votes2
answers158
viewsQ: How to block the double click on a video?
I created a page with a video set in the resolution and layout I want, but when receiving a double click it enters mode fullscreen, I’d like to disable that. I used the script: <script>…
-
2
votes2
answers7653
viewsQ: How to put a video to open in fullscreen automatically in an HTML page?
Apparently for a video to stay on fullscreen there needs to be user interaction. Most players, including the native HTML5 has button 'fullscreen'. I’m building an interactive platform offline, and I…
-
0
votes1
answer30
viewsQ: How to implement a "Liener" in a video?
Well, I have a button and when clicking it, it will call a function that opens a page with a fullscreen video with autoplay="true". IT HAPPENS THAT, after the end of the video I need to redirect the…
-
2
votes3
answers679
viewsQ: How to redirect the 'interface' to a home page after a downtime?
I’m building an interactive interface for an HTML/CSS3 totem that will work offline, with local files, no localhost, using Chrome in "Kiosk" mode and implemented this script (stitched with the help…