This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
original code: | |
<object height="81" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fsoundcloud.com%2Fmatas%2Fargo-discophonia-a1-matas-edit&"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fsoundcloud.com%2Fmatas%2Fargo-discophonia-a1-matas-edit&" type="application/x-shockwave-flash" width="100%"></embed> </object> <span><a href="http://soundcloud.com/matas/argo-discophonia-a1-matas-edit">Argo - Discophonia A1 (Matas Edit)</a> by <a href="http://soundcloud.com/matas">matas</a></span> | |
custom font code: | |
<object height="81" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fsoundcloud.com%2Fmatas%2Fargo-discophonia-a1-matas-edit&font=Georgia"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/playe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var shortenUrl = function(longUrl) { | |
var apiLogin = 'yourapilogin', | |
apiKey = 'yourApiKey'; | |
// call the bit.ly service | |
$.getJSON('http://api.bit.ly/shorten?callback=?', { | |
long_url: mediaUrl, | |
version: '2.0.1', | |
login: apiLogin, | |
api_key: apiKey, | |
format: 'json', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// adding a remote validation customization, that allows us to submit the form even if the backend validation failed | |
var remoteFailsafe = function(url) { | |
return function(input) { | |
return { | |
url: url, | |
timeout: 10000, | |
error: function(request, status) { | |
// get the validator object | |
var validator = $(input).parents('form').data('validator'); | |
request.abort(); |
NewerOlder