Posts by Luiz Rossi • 448 points
19 posts
-
1
votes1
answer315
viewsA: Customize Material Angular menu
Just set the attribute md-offset="x y", which is the pixel setting of the offset where the menu will be: angular .module('MyApp',['ngMaterial', 'ngMessages', 'material.svgAssetsCache'])…
-
0
votes2
answers1585
viewsA: Load Iframe Target into a new Main Window Tab
One way to solve this is to pass inside the iframe the URL of what you want to open in the other window, the script takes the content of the page and sends it to the browser, then you will have the…
-
1
votes3
answers123
viewsA: Video Background slow to load (wordpress)
Some tips: 1- The video is extremely large, no matter what plugin you use, if you use such a large video will take, for that reduce the video to a few seconds, because it is only a screen background…
-
2
votes3
answers1506
viewsA: Formatting numbers with jQuery
function format(nStr) { nStr += ''; x = nStr.split(','); x1 = x[0]; x2 = x.length > 1 ? '.' + x[1] : ''; var rgx = /(\d+)(\d{3})/; while (rgx.test(x1)) { x1 = x1.replace(rgx, '$1' + '.' + '$2');…
-
0
votes2
answers365
viewsA: How to leave vertical line the size of the div
Are you using angular material? if you are using just put the <div layout="row"> with the son <div flex>Item da coluna</div>.
cssanswered Luiz Rossi 448 -
2
votes3
answers58
viewsA: What’s wrong with this js code?
It’s hard to be sure when we can’t simulate here, you return shouldn’t be: return objecto.categoria.toLowerCase().indexOf(val.toLowerCase()) > -1 comparing both in Lower case.…
-
1
votes1
answer63
viewsA: Error using two dropdown menus
Grouping the button groups works: <div class="btn-group pull-right"> <!-- Inicio Menu DropDown --> <button type="button" class="btn btn-danger">Equipamento</button> <div…
-
0
votes4
answers27834
viewsA: Remove edge of button
what you can do is over write the rule of the Hover with !important, something like: #id:hover {border:none!important}
-
1
votes3
answers5288
viewsA: Problem with access to Tomcat at time of deployment
Edit Tomcat-users.xml and add the role "manager-script" <user username="ide" password="xxx" roles="manager-script,admin"/>
-
4
votes1
answer1134
viewsA: Call the jQuery event not working
João, the button that you have the listner is also inserted at runtime, so when you enter the DOM, the command Jquery of has already been executed. click, which does not find it, and therefore does…
-
3
votes1
answer123
viewsA: How to make a find on GNU Linux bring some files and ignore others
If you want to delete the directory "example" find . -path ./exemplo -prune -o -name 'arquivo.html'
-
2
votes3
answers2742
viewsA: Is there a better way to insert an option in select with jquery?
I believe that the best way to work with large lists in HTML + JS is to use a JSON that can even be in some external file, easier to change later, something like: <select name="municipio_evento"…
-
0
votes3
answers127
viewsA: jQuery, do not select 'Child' from the element
The problem is that Children() returns a list (which may be from 1) children, so possibly what you want is first() or something like, by your text, I don’t know if the functions of Hide() and show()…
-
0
votes3
answers29719
viewsA: How to create a button(button) or a link(a) to download a particular file?
There is the attribute download in HTML5 that can be used like this: <a href="/images/myw3schoolsimage.jpg" download>…
-
2
votes2
answers654
viewsA: Performance of query LIKE in Mysql
Your answer is no. As commented, if the operator is not used MATCH of the Full Text search index has no way to optimize both sides of the query according to the Use The Index, Luke!, there is no way…
-
1
votes2
answers73
viewsA: Why does this jquery example of w3s not work within web-inf?
probably the problem is about the address of the demo_test.txt file, as it is inside a folder, you have to pass its full address, something like: $("#div1").load("./jsp/index/demo_test.txt");…
-
1
votes2
answers3226
viewsA: Run script in a <div>
I suggest using the Jquery pro mater library compatibility with several browsers and can use the code: link to include lib: <script src…
-
2
votes2
answers5089
viewsA: Tag video, HTML5, 100% width and controlled height
100% size only works if all your parents are also in 100% css you will need it for html and body: html{width: 100%} body{width: 100%} #site{width: 100%} #videhome{height: 400pt, width: 100%}…
-
4
votes2
answers171
viewsA: Calculation of days of one month
That may not completely answer your question, but I once used the library Full Calendar for dates and worked very well. It is a jQuery library of a Google Calendar-style interface, all with…