Posts by Jonas Martins • 113 points
6 posts
-
0
votes1
answer36
viewsA: Collapse menu on desktop
In that same example (http://www.bootply.com/122826) you already have the answer $(window).resize(function() { var viewportWidth = $(window).width(); $('#monitor').html(viewportWidth); });…
-
4
votes1
answer430
viewsA: Bootstrap libs declaration
In the Javascript call you put scr= and the right thing is src=. Would look like this: <script type="text/javascript" src="resources/js/jquery-3.1.0.min.js"> </script> <script…
-
-4
votes2
answers569
viewsA: DOCTYPE declaration of HTML
There is no obligation, the use depends on its purpose, but without "html" the browser will understand that it is the default HTML and not another old one like "XHTML 1.1 DTD".
-
1
votes2
answers161
viewsQ: Searching a javascript array
How to search within a javascript array? The solution I use is a gambiarra. x = ['a','b','c','d']; if ( x.indexOf('a') != -1) { console.log('Verdadeiro'); } else { console.log('Falso'); }…
-
1
votes1
answer228
viewsA: How to allocate a Python (Django) project to a ready and configured server? (Apache, Mysql, Python, Django OK)
Many things depend on where you will deploy the project. If the settings are these they are ai "Apache/2.2.29 (Unix) mod_ssl/2.2.29 Openssl/1.0.1e-Fips mod_wsgi/3.5 Python/2.7.9 mod_bwlimited/1.4…
-
3
votes0
answers319
viewsQ: Python ticket control script
What would be a more appropriate solution to this problem? The purpose of this Python script is to process possible ticket sales, analyzing each of them, indicating whether it is possible to SELL or…