Posts by Roberto14 • 221 points
5 posts
-
0
votes2
answers47
viewsA: How do I add more than one domain to this alert?
Better create a domain array to avoid else if's: var dominios = ["DOMINIO1", "DOMINIO2"]; if(window.location.href.indexOf(dominios) > -1) { // faça qualquer coisa } Edit: I just realized that the…
-
1
votes1
answer657
viewsA: Create audio file from URL
The trick here is to take streams, with the http module (or equivalent) to download the audio file and then pipe to a stream, and then do whatever you want.. In this example, save to a file: var…
-
2
votes2
answers566
viewsA: htaccess hide MVC model parameters
The rewrite rule is misspelled. Instead of: RewriteRule ^(.+)$ index.php?route=$1 [L] Write: RewriteRule ^([^/]+)(/)([^/]+)$ index.php?route=$1&user=$3 [L]…
-
0
votes2
answers1948
viewsA: HTML Audio - How to automatically go to the next song in a jQuery playlist
Add an eventListener to the "ended" of the current song and then start the next song. Here’s a good working example: http://jsfiddle.net/HxhGp/…
-
6
votes1
answer1542
views