Questions tagged as 'html5'

1
answer

How do I load an external source into a CSS / HTML document?

I'm trying to import an external source into a file CSS So, this is my code CSS : body{ background-color: white } @font-face { font-family: 'devgothic'; src: url('/fonts/devgothic.eot'); src: local('devgothic'),...
asked by 08.05.2016 / 15:12
1
answer

When Javascript takes src from an image returns absolute path

I have the following HTML5 (only relevant): <html> <head> <meta charset="UTF-8"/> <title>Test</title> </head> <body> <div id="layout"> <main> <section>...
asked by 16.06.2016 / 03:25
1
answer

Display div according to screen resolution

I have the following CSS script: <style type="text/css"> @media screen and (max-width: 600px) { .comp { background-color: #000000; display: block; } } </style> <div class="comp"> </div> Perf...
asked by 01.02.2016 / 17:49
1
answer

Open page using external browser

Hello, I'm developing an application with the OnsenUi framework (Cordova in visual studio) But the code below opens the url using the application itself as a browser. At the end of the day doing this, if I need to use the alicative, I have to op...
asked by 17.01.2016 / 16:21
1
answer

Javascript blocking required

I have a strange problem. I added the function below to prevent the user from clicking more than once on the submit. But from the moment I added it, HTML5 required and validate () stopped working in all fields. Could anyone tell me the reason?...
asked by 28.01.2016 / 13:49
1
answer

How do I know if a particular "class" is in use on my page?

Friends, There are many DIVs on my page, I need to check if any have not yet been "finalized", for example: <div class="triagem"> conteudo a ser analizado</div> ready-made DIVs get another "class": <div class="aprovada"...
asked by 23.03.2016 / 07:34
1
answer

Display videos in video tag using angularjs

View: <div class="list card" ng-repeat="x in content.spells"> .... <video width="320" height="240" ng-src="{{(getIdVideo(content.id) | trusted )}}" controls> Seu navegador não suporta o elemento <code>video<...
asked by 02.03.2016 / 16:11
2
answers

dynamic inheritance of value of an input for the children (unordered list)

Hello, I need some idea how to create a dynamic inheritance of values from a parent input to the children and grandchildren input. Once the user types the value into an input it automatically needs to be changed in the child items. based on an i...
asked by 17.12.2015 / 18:57
1
answer

How to use oninvalid in textarea [HTML5]

I wanted to know how to use oninvalid in the text area. <textarea type="text" pattern=".{1,255}" id="mensagem" name="mensagem" class="form-control no-resize" rows="6" placeholder="A mensagem" required maxlength="255" autofocus oninval...
asked by 03.11.2015 / 21:32
1
answer

Div positioning

I'm trying to make a joke with css and html5 of this type. It'sjustthatit'scausingseveralproblemsbecause%main%isnotoccupyingthefullheightandwidthofthepage.Thepositioningofdiv(content)appearstobeinthemiddlebutwhenitgoestolargerscreensthisdoes...
asked by 25.09.2015 / 17:44