Skip to content

Instantly share code, notes, and snippets.

@febrianrendak
Created December 16, 2015 10:44
Show Gist options
  • Save febrianrendak/38787b53e8e9c415b1e9 to your computer and use it in GitHub Desktop.
Save febrianrendak/38787b53e8e9c415b1e9 to your computer and use it in GitHub Desktop.
(function() {
$(document).ready(function() {
//var vimeo = $('.vimeo');
//var youtube = $('.youtube')
$.ajax({
url: 'https://api.vimeo.com/',
type: 'GET',
contentType: 'application/json',
dataType: 'json',
crossDomain: true,
complete: function(data, textStatus, jqXHR) {
console.log(data);
console.log(textStatus);
console.log(jqXHR);
//if(data.status == 0 || data.statusText == 'error') {
vimeo.addClass('hidden');
youtube.removeClass('hidden');
//}
}
});
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment