Posts by Thiago Soubra • 341 points
30 posts
-
0
votes1
answer209
viewsQ: Where can I find the Styles.xml file?
I have a very simple application that runs an html file. I’m really wanting to change the color of the status bar, because the top and bottom pattern in black is horrible for the color palette of…
-
-1
votes1
answer435
viewsQ: Return [Object Htmlinputelement], what means and how to solve?
Hello, I want to store some data in the localStorage, but when I reload the page the data recovers in a messy way, also showing the information [Object Htmlinputelement]. You understand where I’m…
javascriptasked Thiago Soubra 341 -
-2
votes1
answer338
viewsQ: How to capture all elements with the same class at once?
I’m taking Javascript course and I’m having a lot of difficulty. I can’t wait to run to jQuery, who I haven’t even studied yet, but I can handle a thousand times better. My problem is getting all .…
-
0
votes1
answer32
viewsQ: What is wrong with my simple JS exercise?
I’m trying to run the practical Javascript course exercise for beginners, but it’s not working out. And I don’t know why, the Inspector doesn’t point out mistakes either. The exercise is about…
javascriptasked Thiago Soubra 341 -
3
votes1
answer156
viewsQ: Filter elements if child element of elements has a certain class
The title of the question is already very self-explanatory. I’m trying to filter elements (div) depending on whether their child elements have determined(s) class(s). I found the simple code below…
-
0
votes1
answer167
viewsQ: Create a regressive counter (Countdown) from input and store in localStorage
As you can see in my example below, I have a form that plays the data written in the entries (input) html and these are stored in localStorage. In the input=date i need the date provided to be…
-
0
votes1
answer119
viewsQ: Storing multi-button status on localStorage
Friends, I have the following situation: I have a list with a button on each line, they serve to define a status. When clicked change from "waiting" to "received" and is saved in localStorage.…
-
0
votes1
answer85
viewsQ: Save click on localStorage
I have a simple button that when clicked its text changes - and when clicked again it goes back to the previous text. So: <button class="texto">texto 1</button> <scprit>…
-
0
votes2
answers91
viewsQ: jquery: change the style of a div depending on the text/number in it
Friends, I have a list of items whose each item has a div which expresses remaining days with an automatic date countdown function. Example: <ul class="items"> <li class="item a"><div…
jqueryasked Thiago Soubra 341 -
0
votes1
answer22
viewsQ: Play audio while loading
Hello. When we use the element <audio> It only plays when it’s loaded 100%. I wanted to have an idea of how to make it play while still charging, to avoid the delay. Can you give me some…
-
2
votes2
answers44
viewsQ: Selector lt() does not work
In my jQuery selector experiments I came across something that I don’t know is my mistake or is a natural limitation of jQuery. I have 10 Ivs with classes .dado. Each, when clicked, changes the…
-
-1
votes1
answer61
viewsQ: How to identify equal classes in numerical order with jQuery?
On my page I have dozens of buttons that, when clicked, change the link (href) of a single element a, with the method attr. To avoid putting a class on each button as there are many, I would like…
jqueryasked Thiago Soubra 341 -
3
votes2
answers59
viewsQ: Run this function from a button
As you can see in the example below, when the links are clicked a div appears and when you click the button come back from the browser, it is hidden. I would like that when clicking the "close"…
jqueryasked Thiago Soubra 341 -
2
votes1
answer104
viewsQ: How to do Youtube Music fixed menu effect
I would like to bring this effect from the Youtube Music app menu to my website. Basically it rolls together with the page when going down and back to appear when going up, in a fixed way. My…
-
2
votes1
answer70
viewsQ: How to duplicate this function jQuery
As you can see in that fiddle For example, when the first link is clicked a div appears and when pressing the browser back button, it closes. I would like the second link to work in the same way,…
jqueryasked Thiago Soubra 341 -
-1
votes1
answer138
viewsQ: Close popup by clicking the back button
Is there any way to detect the "back" click? More necessarily from mobile devices (Android is enough). I would like, in my web app, the back button can call certain functions, in this case close…
-
0
votes2
answers205
viewsQ: How to show a div with scrollTop after certain pixels?
I have a div (Fixed) that appears when the page is scrolled down and reappears when the page is scrolled up. I need it to just disappear (when rolling down) from the body’s 45px. That is, while the…
-
1
votes1
answer117
viewsQ: Save to localStorage the position to hold it when reloading the page
When the user clicks on a given button the scroll position of an element is changed. I would like this action to be stored in Localstorage, but I do not know... can help me? Here my script:…
-
0
votes2
answers147
viewsQ: Change the style/theme of the site and store it in Localstorage
I have a theme change system on my blog, but it has some problems, like, it can’t change the style of a div.class added by jquery (addClass) or pseudo elements styles (after/before/active etc) and…
-
1
votes1
answer82
viewsQ: Store "do not show again" with localStorage
I have a div which can be hidden by clicking a button: $(".fechar").click(function(){ $("#mensagem").hide(); }); <script…
-
0
votes1
answer31
viewsQ: Demo only works on Jsfiddle
My problem can be a very simple thing, is that I’m new to script programming and I’m getting a lot of hits! I cannot make this demo work in my.html file: Jsfidde demo link:…
-
1
votes1
answer235
viewsQ: Make div stay inside another
I am good in HTML but from yesterday to today something has been breaking my head and so far not solved! I want the following result (edited in PS): but, as it is getting: Here my code: <div…
-
0
votes1
answer60
viewsQ: Download the generated image
I want to put on my website the option to download some data from a form as image. In my current code I transform the content into image, but it is printed in HTML. Here the simplified code in…
-
1
votes1
answer407
viewsQ: Jquery animation in toggle style
By clicking a button one div appears with the effect going up to the top, with Jquery. I need that when clicking again it goes away with the opposite animation - going down. As I know little about…
-
2
votes1
answer496
viewsQ: How to "copy" text from one div to another with Jquery?
I’m organizing a player to put on my website. As I don’t know much about JS/JQ, I took a simple model on the internet, put together a layout and adjusted the script to my liking as far as I could.…
jqueryasked Thiago Soubra 341 -
0
votes1
answer18
viewsQ: What is the error of this code? the animation should only work once
I have several elements with the class. track, when anyone is clicked the div #Controls appears with this animation, but I need it to occur only once. I tried several ways from the internet but…
-
-1
votes1
answer189
viewsQ: How to take values of two fomulários separated by only one Ubmit?
I have two forms on the same page (well separated by html tags) and I need to take the data of both for my PHP script. Since I am brand new in PHP and I have no idea, I kicked an attempt by…
phpasked Thiago Soubra 341 -
1
votes1
answer50
viewsQ: What is the smallest lag of a mobile device?
My site is organized to adapt to different screen sizes via CSS @media’s, but the minimum lag is 320px (width). I imagine there are devices with smaller widths, but in a negligible amount... does it…
-
0
votes2
answers55
viewsQ: Settimeout not working, what’s wrong?
I need this window to open after 3 seconds, but I’m not getting by putting the setTimeout right on the button. What’s wrong? : <script type="text/javascript"> function openWin() { var divText…
-
1
votes1
answer45
viewsQ: Javascript Setinterval not working... where did I go wrong?
As you can see in my code below, I needed to turn my image into Javascript link instead of using the simple HTML method (for specific reasons), but I need it to take a 3-second interval for the boot…
javascriptasked Thiago Soubra 341