Posts by Miguel Silva • 437 points
24 posts
-
0
votes1
answer64
viewsA: Replicate string in a certain part of a text (javascript/Jquery)
Follows below as I solved, may not be the ideal code but served $(document).ready(function(){ var str = document.getElementById("resultado").innerHTML; var res = str .replace(/(Jo|Mt|Lc)…
-
0
votes1
answer64
viewsQ: Replicate string in a certain part of a text (javascript/Jquery)
I have a text and would like to replicate strings in a certain part of this using javascript or Jquery Text = Jn 3:16; 7:1,3; 3:20; Mt 2:3,5,2-7; 3:1; Lk 2:1; 3:12 What I’ve got so far: Jo 3:16; Jo…
-
1
votes1
answer99
viewsQ: Replace javascript modifies only the last term
I’m using javascript code to bold the searched terms, but if the term repeats it changes only the last one and also I wish it wasn’t case sensitive: for example, in the string: Brilha o Sol, como…
javascriptasked Miguel Silva 437 -
0
votes1
answer26
viewsA: Script that gives the amount of a given term of a page (javascript)
Adding the following row to pick up the total of entries: entradas = the_entries.length alert(entradas);
javascriptanswered Miguel Silva 437 -
0
votes1
answer16
viewsQ: Localstorage, jquery and CSS
I’m saving the font size on localStorage and recovering to set after the page is ready, I am not able to set using the value recovered in localstorage, to set the source I am using jquery, follow…
-
2
votes1
answer200
viewsQ: Align magnifying glass image within the field (input) of search - html
I’d like to align the image so it’s right inside the search field, like this: But it’s getting like this: Code I’m using: .container { display: flex; flex-wrap: wrap; justify-content: center; }…
-
2
votes5
answers3553
viewsQ: Only get a part of a url
Good afternoon! How can I only get a part of a current url? For example, let’s say I have the following url: http://leituracrista.com/audioplayer/player.html?ip=dispensacao#15 I would like to get…
javascriptasked Miguel Silva 437 -
0
votes1
answer231
viewsQ: Php variable in meta tag
The thing is, I have an audio player on Html5 and javascript, when I try to share a song on the face for example, the post does not go with the title of the audio, but only with the title of the…
-
0
votes0
answers239
viewsQ: Javascript search
I have the following search script, working very well, I would just like it to filter the search for words that have at least 3 characters. <script> $(function(){ var regex = new…
javascriptasked Miguel Silva 437 -
-1
votes1
answer199
viewsQ: Change color of visited links
Good afternoon! I wonder how I can change color of visited links on a page using javascript?
javascriptasked Miguel Silva 437 -
0
votes3
answers187
viewsQ: Listing links from a page
Good morning! I have this script that lists all the links of a page, but it does not bring the name of the link but only the address, it has to bring the name of the link instead of the address?…
javascriptasked Miguel Silva 437 -
0
votes1
answer395
viewsQ: Close libreoffice Writer via terminal on Ubuntu
what command can I use to close the libreoffice Writer via terminal in Ubuntu? Thank you.
-
3
votes1
answer4020
viewsQ: Error: Mysql returns the following "Subquery Return more than one Row"
Good morning! I created this query in mysql and by adding the 1st subquery I called "totalEscolas" I get the following error: "Subquery Return more than one Row" without this subquery the code works…
-
2
votes1
answer280
viewsQ: Medium in Mysql database
People I have the following scenario in the database: Tables: mdl_question_attempts (slot, questionid, rightanswer, responsesummary) mdl_quiz_slots (slot, quizid, questionid) On the table…
mysqlasked Miguel Silva 437 -
0
votes1
answer880
viewsQ: Moodle SQL - table of record answers of a questionnaire per student
Do it to the guys! In the Moodle, in the database, in a quiz activity, where I find the record table of answers given by students in a given questionnaire? I am doing so, where in the lastname…
moodleasked Miguel Silva 437 -
1
votes2
answers163
viewsQ: Conditional javascript call in Html5
How can I call a script obeying a conditional on Html5? For example, depending on the address in the browser it loads a certain script If the address is http://leituracrista.com/audioplayer/ loads…
-
1
votes1
answer1195
viewsQ: Catch the mp3 audio duration
I have the following script, in the field length I would like the duration to be given automatically, as I can do? Follows script: // External Files: //…
-
0
votes1
answer1165
viewsQ: MP3 Player Html5 and javascript
Next guys I have a script that works well, but with some limitations, the play buttons, pause, next and the slider of the position of the song work normally, but not automatically, when you finish…
-
2
votes1
answer489
viewsQ: Problems with special Avascript characters
I am using the script below and working almost perfectly were not a however, it is a search script, when the user type "?" (interrogation) in the search appears the following expression "%3F"…
javascriptasked Miguel Silva 437 -
-1
votes1
answer26
viewsQ: Script that gives the amount of a given term of a page (javascript)
For example, I would like to know how many times the term "] = new entry (" appears on the page. the_entries[228] = new entry (…
javascriptasked Miguel Silva 437 -
13
votes4
answers30259
viewsQ: Remove accents (javascript)
I have this script below with the function toLowerCase(); I would like to add another function to the function toLowerCase(); How would the line look with the two functions together? <script…
javascriptasked Miguel Silva 437 -
0
votes1
answer230
viewsA: Page content offset when closing modal bootstrap
The page was loading several times bootstrap.min.css and two versions Just remove the different and repeated versions
-
1
votes1
answer230
viewsQ: Page content offset when closing modal bootstrap
I have the following problem, when opening a link in a modal on my page and closing it the content of the main page is shifted to the left, whenever the modal is open and closed the content moves, I…
-
0
votes1
answer1180
viewsQ: Text javascript function for uppercase and remove accents together
I have the following script working perfectly, I would like to implement the function remove accents I have found several tips but did not work, as I do not understand javascript, I would like if…
javascriptasked Miguel Silva 437