Questions tagged as 'html5'

2
answers

WebSQL will even be discontinued?

I'm having a lot of problems trying to run a program developed in HTML 5, Javascript, Ajax, JSON, IndexedDB, MySQL, PHP together with the Intel XDK IDE. The program is very simple it captures MySQL information and persists in IndexedDB, this o...
asked by 19.01.2016 / 10:51
3
answers

How to create random audio playlist?

I need something like this function next() { Url = new Array; Url[0] = "/mp3/001.mp3"; Url[1] = "/mp3/002.mp3"; Url[2] = "/mp3/003.mp3"; Url[3] = "/mp3/004.mp3"; Link = Math.floor(Math.random() * Url.length); } <audio autoplay=...
asked by 28.09.2014 / 19:26
4
answers

How to show warning "Refresh your Browser" when it does not support HTML5?

How to display the "Update Your Browser" warning when the user's browser does not support HTML5 tags or CSS3 properties? An initiative that encourages this is the link site, but they do provide a script for it. Would it be possible to...
asked by 13.01.2015 / 13:08
2
answers

I can not centralize a picture semantically

How to leave an image in the center of the screen I tried to put a text-align:center and it did not work. Here is my html code: <header> <img src="images/bg-header.png" id="bg-header"> <ul class="menu">...
asked by 19.05.2015 / 19:27
2
answers

Is it possible to change class of many DIVs with a single js command?

Friends I have several DIVs in my page, each with its ID, but with the same pattern, for example "checker-001", "checker-002", and so on ... where, I use a JS to change its characteristics, for example $('#checker-363').removeClass('UmaVelhaCl...
asked by 22.03.2016 / 09:42
3
answers

css alignments

My case is as follows: ButIwanttoleaveitlikethis: HTML <div id="problema"> <div id="verificar" style="width: 500px; height: 100px;"> <h1 style=" clear: both;position: relative; display: table; " >Log<...
asked by 01.08.2014 / 22:37
2
answers

How to copy a canvas to an image

I've been struggling to resolve this issue, which seems simple, but I'm not getting it, Maybe I'm not knowing how to ask the question , so I count on goodwill from friends: 1. I have the following canvas: -> var placeholder = doc...
asked by 05.09.2016 / 10:39
2
answers

Button spacing

I want to decrease the spacing of these buttons but I can not. Already tried to put margin and padding and nothing. I do not want to use a list. How can I do it? The following is the html code: <div id="buttonbar"> <button id=...
asked by 27.04.2015 / 20:25
3
answers

Formatting problem when injecting date into attribute datetime

I need to assign the current date in a datetime field of a paragraph, for that I have implemented: ... var newDate = new Date(), date = newDate.getFullYear() + "-" + (newDate.getMonth() + 1) + "-" + newDate.getDate() + " " + newDate.ge...
asked by 23.02.2015 / 15:31
1
answer

How to make an animation by replacing images

There is a game browser on the internet that has a feature that I found interesting and would like to know how to do it. Asyoucanseeinthefigure,therearesomebuildings,someobjectsandsomepeople!Lookinglikethislookslikeareadyimage,howeveranyitemi...
asked by 16.02.2015 / 02:23