Posts by Matheus SE • 117 points
7 posts
-
1
votes14
answers126839
viewsA: Phone Mask Using jQuery Mask Plugin
For version v1.14.12 of jquery mask plugin. You can use the following solution: Where Z is the optional digit. $(document).ready(function(){ $('#telefone1').mask("+55 31 9999-9999Z", { translation:…
-
0
votes1
answer247
viewsQ: Which framework do you recommend for javascript unit testing (Ecmascript 6)?
I will develop a web application using Ecmascript 6. I’d like to continue with the TDD Technique. What framework do you recommend for javascript unit testing (Ecmascript 6)?
-
4
votes4
answers2266
viewsQ: How to generate random numbers for Draw?
I need to generate numbers for a promotion, these numbers should go from 0 to 99999. How can I distribute these numbers randomly and fairly, without repeating numbers already distributed?…
-
0
votes1
answer1439
viewsA: Error with OG:facebook tags
Try putting an og:url to your respective page. Example: On the page http://oticasreiban.com.br/relogios <meta property="og:url" content="http://oticasreiban.com.br/relogios" /> And so on and…
-
1
votes1
answer1303
viewsA: Facebook custom share button
Good evening, you can take the following approach: Create a javascript function that receives the news url and assign the function call on the custom button. function shareFacebook(url){ var w =…
-
2
votes2
answers819
viewsA: Show animation during loading?
One approach you can use is: Have a div working as an overlay of every page displaying a loading gif. <body> <div class="loading"></div> [restante da pagina] </body> With the…
-
0
votes3
answers4227
viewsA: When clicking a button, how to make the screen slide down
If you want the screen to slide with animation, you can use the jquery Animate. $("#button").click(function() { $('html, body').animate({ scrollTop: $("#anchor").offset().top }, 2000); });…