Posts by Walker Leite • 521 points
9 posts
-
0
votes1
answer321
viewsA: Div with height equal to background-image
The only way is if the Aspect-ratio of all images is the same, then you can do this: .fundo { width: 100%; display: inline-block; position: relative; background-size: contain; background:…
cssanswered Walker Leite 521 -
5
votes2
answers4557
viewsA: How to compare two arrays and return the difference between them?
This function does a better job as it performs a XOR operation on both arrays, the native PHP function only checks the values of the first parameter that are NOT in the second parameter: function…
-
26
votes1
answer33017
viewsA: Delete folders on Github
Well come on: First make sure your repository is synchronized with the remote repository: $ git pull origin master, (assuming the branch is master). Then remove the folder locally: $ git rm -r…
githubanswered Walker Leite 521 -
2
votes3
answers211
viewsQ: Regex to ignore invalid file names
Hello, I’m trying to add a regex to app.yaml to ignore files with strange names on Google App Engine, but it’s not working. My regular expression: skip_files: - [.\\~#%&*{}:<>?|\"-!] I’m…
-
1
votes1
answer2866
viewsA: How to prevent the user from closing a page without submitting the form, but without using a dialog?
There is no way to prevent the user from leaving your site, as this would stop the browser from responding. The only way to stop the execution of the browser is with the native browser dialog window…
-
2
votes1
answer81
viewsA: Socket.io: module cannot be found
Try to install the package, in the app.js file directory, type npm install socket.io NPM is a Nodejs package manager, to use it is simple. First, you create the manifesto of your application with…
-
2
votes1
answer566
viewsA: How to get the Return of a method that depends on another within a class?
Simple Ué, simply store the id parameter in a class variable. class Semelhantes extends Acesso { private $id = null; public function features($id) { $this->id = $id; and then in resemblant:…
-
2
votes1
answer94
viewsA: Top alignment with a centralized element
The following code works in any browser. If you want to increase the size of the center column, decrease the size of . col proportionally, the sum of the columns should never exceed 100% i {…
cssanswered Walker Leite 521 -
0
votes2
answers228
viewsA: Choose option through a choice previously made
If you have a Products table, where each record has a name and type field, and the type field is just a text field (not selection), you can do this: var lista =…
javascriptanswered Walker Leite 521