Posts by Bruno Antonio • 353 points
25 posts
-
-1
votes2
answers29
viewsQ: Select database items that contain something similar to the contents of an array
Assuming I have the following array array("valor1", "valor2", "valor3", "valor4", "valor5") and I need to take all items from a Mysql table whose column X has value equal to one of these items, how…
-
1
votes1
answer1053
viewsQ: Use header("Location ./") without losing form content
I am working with a POST method form and if the user sends it with some field filled incorrectly I want it to go back to the page but without losing the previously filled content. I intended to use…
phpasked Bruno Antonio 353 -
3
votes1
answer801
viewsQ: Execute function by clicking on any element of type
I want something to happen by clicking on any link [element 'a']. I have tried the code below, with getElementsByTagName but I was unsuccessful. document.getElementsByTagName("a").onclick =…
javascriptasked Bruno Antonio 353 -
1
votes1
answer68
viewsQ: Display load icon whenever you click a link
I’m new in Android development and am working on an app that loads a web page through a WebView. However, whenever I open a link inside this app, there is a certain delay [the time of the other page…
-
0
votes1
answer41
viewsQ: Prevent repeated Ivs from displaying
I use the code below to display a div random class destino, however, when I perform the function, often the same div or the div previous repeat. There are ways to fix? function destino() { var E =…
javascriptasked Bruno Antonio 353 -
-1
votes2
answers1339
viewsQ: Check the internet connection
I would like to know how to check the internet connection using Java Script. Example: If the internet is unavailable, one appears with a warning message, if the internet is available, one appears…
javascriptasked Bruno Antonio 353 -
0
votes1
answer775
viewsQ: Add 'Swipe to refresh' to Webview
I’m relatively new to programming for Android and would like to know how to add functionality Swipe to refresh [pull up to update] in my app. I want you to pull up, the WebView be updated. <?xml…
-
0
votes3
answers1626
viewsQ: Single ID generation with Mysql
I am using the code below to test with a login system in PHP and Mysql. But the field nivel_usuario generates a number from 0 to 2, and I would like it to generate a unique 6-digit ID containing…
-
0
votes1
answer239
viewsA: Change number of slides in jQuery Carousel Owl 2
You are using the option 'Responsive', so when the page width is 0 to 600 width pixels, will be displayed 1 slide, when it’s from 600 to 1000 pixels, will be displayed 3 slides and when it is 1000…
-
0
votes1
answer17
viewsQ: Display warning when the page opens in Mozilla Firefox
I would like to know how to make the alert below appear when the page opens in the browser Mozilla Firefox alert("Alguns elementos desta página podem não ser exibidos no Firefox. Para evitar…
-
0
votes1
answer144
viewsQ: Making a smooth transition
I would like to know how to make the transition of this navbar look smoother Javascript code used to perform it: var clientHeight = document.getElementById('header').clientHeight; $(function(){…
-
1
votes1
answer1202
viewsQ: Centralize navbar
I would like help centering the following navbar items when viewed on desktop HTML <div class="menu" id="menu"> <a href="#home">Home</a> <a href="#news">News</a> <a…
cssasked Bruno Antonio 353 -
2
votes1
answer341
viewsQ: Else does not work in PHP
I’m trying to use the code below, but the else does not work. Returns error Parse error: syntax error, unexpected 'else' (T_ELSE) <?php if ($status == 'True') ?> <div class="col-lg-3…
-
3
votes1
answer1416
viewsQ: Pin menu to top of page when scrolling down
I have a div with height 100% and after it a navbar. I would like that when you scroll down the page the navbar fixed at the top of the page. CSS ul.navbar { list-style-type: none; margin: 0;…
-
0
votes1
answer429
viewsQ: View wordpress posts by category
Use the code below to display posts from the ID 1, however, instead of using the ID category, I would like to use the Slug EX: cat=news <?php query_posts('cat=1'); while ( have_posts() ) :…
-
1
votes2
answers194
viewsQ: Centralize navbar items when viewed on desktop
I’m using the codes below to create a navbar, but I would like, when viewed on desktop, the items highlighted in green to be centralized, but when viewed on mobile, remain exactly as in gif. Code…
-
1
votes2
answers1724
viewsQ: Centralize items of a DIV
How do I keep these three items centered? Note that there is a space left on the right side. CSS div.menu { background-color: #333; overflow: auto; white-space: nowrap; } div.menu a { display:…
-
2
votes2
answers338
viewsQ: Background does not work
I’m trying to apply the CSS below on a div to use a background, but it doesn’t appear at all. HTML <div class="row background-1"> <div class="col col-2"> Lorem ipsum dolor sit amet,…
-
0
votes2
answers74
viewsQ: ul is not defined at Htmldocument
I am using the code below but getting an error function readyDom(callback) { if (/^(interactive|complete)$/i.test(document.readyState)) { callback(); } else {…
javascriptasked Bruno Antonio 353 -
0
votes1
answer142
viewsQ: Wordpress - Edit Box Remover
It may seem strange, but I need to find a way to remove the main Wordpress text box.…
wordpressasked Bruno Antonio 353 -
2
votes1
answer178
viewsQ: How to make width be text and not div
I want the background of H3 to take only the size of the text CSS div.header { background: url(../img/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size:…
cssasked Bruno Antonio 353 -
0
votes1
answer20
viewsQ: Optimized posts on Facebook Mobile
Does anyone know how to make these new posts optimized for Facebook Mobile? Example:…
-
1
votes2
answers264
viewsQ: Add code before the </head> and after the <body>
I need a cogido javascript that adds this code before closing the tag </head> <link rel="stylesheet" type="text/css" href="http://cdn.grupospotlight.com/nav/navbar.css"> And this one…
javascriptasked Bruno Antonio 353 -
0
votes1
answer3650
viewsQ: CSS - Centralize li
I have this navbar and would like to center item 2 ul.navigation { width: auto; height: 40px; position: relative; background-color: #fcfcfc; padding: 0; color: #b5121b; list-style-type: none;…
-
0
votes1
answer31
viewsQ: Content of an input to HREF
How do I get the person redirected to a URL + what they type? Example The person types potato in the input below <input type="text" name="search" id="search"> And when you hit enter is…
phpasked Bruno Antonio 353