Skip to content

Instantly share code, notes, and snippets.

View 0livier's full-sized avatar
😸

Olivier Garcia 0livier

😸
View GitHub Profile
@0livier
0livier / randombg.js
Last active August 29, 2015 14:13 — forked from aloncarmel/randombg.js
function GetRandomBackground()
{
var url = 'http://unsplash.com/rss';
$.ajax({
url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url),
async: false,
jsonpCallback: 'jsonCallback',
contentType: "application/json",