Posts by winiercape • 477 points
38 posts
-
0
votes1
answer32
viewsQ: Loop to change text from a cell (A) when you click a button (B) located on the same row as the cell (A) in an HTML table
I have a table with dates on which I am mounting a button that adds seven days to the present value. As there are several lines, the intention is that each date has its own postponement button,…
-
0
votes1
answer22
viewsQ: I can’t inform you that any results were found inside a javascript search/filter
I am using the code below to filter values within a table. It used similar code to filter items in a list and display a div if no results were found. However, I cannot display this div if I use the…
-
0
votes0
answers25
viewsQ: How to fill multiple text fields automatically when the main input text receives a value and loses focus?
I have a comic with the tables books and loans. On the table loans, Among other columns, I have one to put the title of the book and the code of this book. The idea is that, by inserting the code of…
-
-1
votes1
answer29
viewsQ: Div with max-content width does not break line
I’m trying to create a container whose maximum width is proportional to that used by the internal text itself (so I used the max-content), however, when the width of the screen is less than the…
-
1
votes2
answers170
viewsQ: How to place two arrays inside a single loop of repetition to populate an object?
Based in that and in that reply, I am creating an instant search box that returns results based on the items of two arrays with elements p and a of certain classes present on the page. The idea is…
-
0
votes1
answer38
viewsQ: Loop repeating works in one case, but does not work in another (JS)
I am not able to understand why the loop below works to assign a new value to the index, but does not work to change the property of an object. What I did wrong, you guys? var p = ["teste1",…
-
2
votes1
answer63
viewsQ: How to apply capitalization in paragraph text with specific classes directly in the page body?
Basing myself in that question, I adapted a specific answer for my case, creating an array with the paragraphs of interest, where my intention is to capitalize the text present in these respective…
-
-2
votes2
answers630
viewsQ: How to put a PHP code inside an HTML that is stored in a PHP variable?
I am a beginner in PHP. My intention is to create a variable that will store snippets of a DIV in HTML. However, some excerpts of this HTML contain PHP instructions, and I don’t know how to make…
-
0
votes1
answer20
viewsA: How to use the values of a column present in Table A as the WHERE parameter of a SELECT in Table B?
I just figured out how to do it! I set the following variable: $iddocurso = $row["id"]; And in the SQL command, I used: instanceid='$iddocurso' Worked!…
-
0
votes1
answer20
viewsQ: How to use the values of a column present in Table A as the WHERE parameter of a SELECT in Table B?
It is possible to make the SQL query $professores is made based on ID $row["id"] of the 5th line of the code below? Contextualizing: this code displays a list of courses present in a BD, printing…
-
-1
votes1
answer38
viewsQ: Elements of a PHP table appear repeated and others do not appear
I’m putting together a page to display the courses registered within Moodle. For this, I am doing local tests, where I registered 4 disciplines and 5 users. The intention is to display these four…
-
1
votes2
answers48
viewsA: How to run a function only once and stop it if an onBlur occurs?
Guys, I got what I wanted by adding a function to the event onBlur within the f_titulo: <input id="f_titulo" onBlur="once()" type="text"> function once(){…
-
0
votes2
answers48
viewsQ: How to run a function only once and stop it if an onBlur occurs?
I have two inputs: what is typed in the "Title" is duplicated in the "Material Code" with the appropriate normalizations (i.e. space conversion and character removal). Is there any way - using pure…
-
-1
votes1
answer74
viewsQ: How to limit the amount of characters that one input text assigns to another in Javascript?
Dear ones, researching about my question, I found something similar in ONLY in English, but I still can’t limit the characters that the "Title" input duplicates in the "Material Code", even though I…
-
4
votes1
answer48
viewsQ: How to make a parent <ul> element have the width of your children’s total <li>?
Have a div that dynamically displays a series of items grouped into a horizontal list. The parent element of this list has a maximum width defined in my CSS. It is possible to make the specific…
-
1
votes2
answers71
viewsQ: How to prevent a function from being executed when a condition is reached and reactivate it when necessary?
I’m in a skirmish here to try to stop a function when a certain condition is reached and rehabilitate it if a certain button is clicked. In my case, I have a text and buttons that change the font…
-
0
votes2
answers69
viewsQ: How to make a link of the child element open when clicking on a div?
I have a list of posts on my blog homepage. I’m trying to make sure that when you click on the white space (where the summary of the post is), the link of this same post is opened. That is: instead…
-
0
votes2
answers16
viewsA: I click on link and appears the link of my blog + the link that should open alone / Blogger
Just like Neuber Oliveira said. What you need to do is replace the line: <a class="touch" href="www.flymundo.com.br">VER MAIS</a> for: <a class="touch"…
-
0
votes1
answer16
viewsA: How to get a list of images in a size of 200px in Blogger?
I ended up discovering how it is. I created a new variable called imgmaior: imgmaior = img.replace("/s72-c/","/w200/"); And replaced the variable img by the new imgmaior in the attribute src of the…
-
0
votes1
answer16
viewsQ: How to get a list of images in a size of 200px in Blogger?
I have the function below that provides me an array with a series of Blogger posts with the appropriate images, links and titles of these said posts, and the images come with the size of 72px. I’ve…
-
-2
votes1
answer38
viewsQ: How to change the value of a variable that is within a function through another function?
I have seen similar questions here in the OS, but I still can not solve the following situation, where I have the function below that is inside an external script: function updateScript(marcador, a,…
-
3
votes1
answer48
viewsQ: How would the code below look in pure Javascript?
I’m having a hard time finding a way for a function to find a variable from another function within my code as I type into a text box, even though the variable is global. I will try through the code…
-
1
votes1
answer842
viewsQ: Touch screen style horizontal scrolling (click and drag) menu on Pcs
Using the menu below, it is possible to make it slider as in mobile phones (without having to use the scroll bar, just by clicking and dragging)? ul.marcadores {white-space:nowrap; overflow-x:auto;…
-
2
votes3
answers290
viewsQ: Change scrollbar positioning in a div
By default, in a horizontal menu the content is read from left to right, as in this image: However, I would like when the content is loaded, the scroll bar is, say, automatically moved to the right,…
-
2
votes2
answers203
viewsQ: Button that scrolls the page up without reaching the top
I have a code that scrolls the page to the top, but I don’t want it to reach scrollTop = 0. It’s possible that by clicking the button, it just slightly climbs the page up, as if I had keyboard the…
-
0
votes1
answer220
viewsQ: How to create a dynamic search box?
On this website - http://www.euescolhiesperar.com/ - when you type in the search box, the results appear instantly without being required to press enter. How can I do this in Blogger? Thank you!…
-
2
votes2
answers109
viewsQ: Placeholder color does not change when mouse is over it in another theme
I have the following research box placeholder is customized even in the hover, however when I switch to the high contrast mode of the site, it does not change the color of the placeholder when in…
-
1
votes1
answer123
viewsQ: Change CSS in element that contains certain text
I have the code to follow, where my intent is that where in the class .breadcrumb a appear the term "biblical", this class has its style changed only where the resolution is less than 320px, but so…
-
1
votes2
answers429
viewsQ: Remove CSS image links in @media print
My blog shows the links when printed through a[href]:after { content:" (" attr(href) ")"; }, however I don’t want it to show the image links, since I also removed them from the CSS for printing. Is…
-
0
votes0
answers354
viewsQ: Parallax/Rally effect does not work on Chrome for Android, but works on desktop
I have this page: http://einconformado.blogspot.com.br/p/livraria-do-eterno-inconformado.html where I use the parallax/Parallax effect, and yes, the effect works smoothly on Chrome and Firefox…
-
1
votes1
answer388
viewsQ: How to clear search results in a list after clicking a button?
I have a list of items and a search field that filters this list as something is typed in this same box. I also have a button for reset that cleans the search box and focuses on it, but does not…
-
2
votes3
answers827
viewsQ: Is it possible to insert an SVG as value into an input tag?
I have the button below and what I want is that instead of the name "Go", I can use an image, be it in SVG or even something from Font Awesome. How to proceed in that case? From now on, thank you!…
-
0
votes1
answer68
viewsQ: Show a div when closing the tab
Guys, to be very direct, I will use as an example this site: https://www.gospelprime.com.br/ Whenever you move the mouse towards the close tab button (or simply click on it - whoever you want, you…
-
-2
votes1
answer595
viewsQ: Run function only once
At first, I’ve seen some similar questions around here, but virtually none of them fit/don’t work in my scenario. It is as follows: I need a script to be executed (in my case, a button to be…
-
2
votes1
answer273
viewsQ: How to perform an action when scroll reaches the top of the page?
I have all the code of a fixed sidebar that works perfectly, however I want that as soon as the scroll bar reaches the top of the page, the top itself, an element receive a CSS assignment through…
-
1
votes0
answers21
viewsQ: Twitter button does not read #
My blog has the tweet button that works normally like any other: it gets the title of the page and URL through the date:post.title / data:post.url, respectively. The problem is that a few days ago,…
-
1
votes0
answers274
viewsQ: Blogger can’t read data:post.body and data:post.url
I have social sharing buttons on my blog that work normally through the expr:href="data:post.url/data:post.title" parameter that takes, respectively, the address and title of the post in question.…
-
1
votes1
answer1227
viewsQ: How to overlay CSS styles without interfering with another previous CSS?
I am implementing a high contrast mode, and for that, I am using the following structure: To draw the high contrast: <li><a href="#" class="seleciona-estilo"…