Questions tagged as 'html'

1
answer

Problem with printing HTML elements on the screen

I'm doing a software ( minigame ) that works with a deck. In the administrative panel of the same I need to view and consult the game deck. I perform a query in the database and, with the results returned, I print on the screen inside a ul...
asked by 09.01.2014 / 04:28
2
answers

Collision system for game in html5!

I'm learning a little about games in html5, css and js. I made a very basic gameplay, player movement, enemy and a collision system , see: var canvas;//o elemento canvas sobre o qual desenharemos var ctx;//o "contexto" da canvas que s...
asked by 04.05.2018 / 02:25
5
answers

If the image is large in the vertical, is it with height: 100%, if it is large horizontally, is width: 100%?

I have a question, how can I insert images with different sizes inside a div, and if the image is very large vertically, it has height: 100% , and if is very large horizontally with width: 100% ? An example image:     
asked by 24.09.2015 / 13:56
2
answers

Open link in a new tab without the target or window.open

I have a function that does a redirect: vm.pagarUpload = function() { $http({ method: 'POST', url: API.url + 'app/service.php?t=pagarUpload', data: { nome: vm.nomeUpload, email: vm.emailUploa...
asked by 18.12.2017 / 12:38
1
answer

How to implement editable table, updating the fields in the database automatically

I have the following table that lets you edit cells directly: The codes are in 4 parts:    MySQL table CREATE TABLE IF NOT EXISTS 'php_interview_questions' ( 'id' int(8) NOT NULL, 'question' text NOT NULL, 'answer' text NOT NULL,...
asked by 20.01.2017 / 19:20
2
answers

What is cufon and what is it for?

Recently when I was to see the source code of an old Wordpress theme, I came across a javaScript code that contained the following: Cufon.replace('#navigation > ul > li > a', { textShadow: '1px 1px rgba(0, 0, 0, 0.2)', hover:...
asked by 22.06.2015 / 21:05
1
answer

How do I display / hide content on a page based on the site's "HTTP status"?

I have the following problem ... Scenario: A site with HTML-only page delivery (we can not use a server-side language). We do a YouTube embed video, but some companies, as we know, block their employees' access to social networks. It happe...
asked by 30.04.2014 / 19:59
1
answer

HMVC and HTML Component

I've read several articles on HMVC, both in PHP and other languages, and in all of them the implementation of the standard revolved around having a "Controller-master" which requested the Response Body in> one or more resources, internal or ex...
asked by 15.12.2014 / 18:15
1
answer

How to change content on a page?

I'm trying to change some fields of a website, what I want is to open this site in my address, but with some of its content changed. I'm using file_get_contents to open the site, but I have two problems: When I click on a link with...
asked by 21.02.2015 / 23:47
1
answer

Doubt with ng-repeat

I have the following code: <div id="box-1" class="box"> <div ng-repeat="task in contato " style="margin-top: 5px"> <div class="md-card md-card-hover"> <div class="md-card-content"> <d...
asked by 27.08.2017 / 15:26