Skip to content

Instantly share code, notes, and snippets.

var createCookie = function createCookie(name, value, days) {
var expires;
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
}
else {
expires = "";
}
// HYPE.documents["innovations_interactive"]
(function(){(function k(){var h="innovations_interactive.hyperesources",e="innovations_interactive",d="innovationsinteractive_hype_container";if(false==!1)try{for(var f=document.getElementsByTagName("script"),b=0;b<f.length;b++){var a=f[b].src;if(null!=a&&-1!=a.indexOf("innovationsinteractive_hype_generated_script.js")){h=a.substr(0,a.lastIndexOf("/"));break}}}catch(n){}if(false==!1&&null==window.HYPE_322)null==window.HYPE_dtl_322?(window.HYPE_dtl_322=[],window.HYPE_dtl_322.push(k),e=document.getElementsByTagName("head")[0],d=document.createElement("script"),
b=navigator.userAgent.match(/MSIE (\d+\.\d+)/),b=parseFloat(b&&b[1])||null,d.type="text/javascript",d.src=h+"/"+(null!=b&&10>b?"HYPE.ie.js":"HYPE.js")+"?hype_version=322",e.appendChild(d)):window.HYPE_dtl_322.push(k);else{f=window.HYPE.documents;if(null!=f[e]){a=1;b=e;do e=""+b+"-"+a++;while(null!=f[e]);for(var c=document.getElementsByTagName("div"),a=!1,b=0;b<c.length;b++)if(c[b].id==d&&null==c[b].getAttribu
{
"emptyImage": "http://crisis.rwdev.org/img/overview-map.jpg",
"items": {
"type": "request",
"source": "reliefweb",
"method": "POST",
"path": "v1/reports?limit=50&fields[include][0]=date&fields[include][1]=headline&fields[include][2]=primary_country&fields[include][3]=url",
"payload": {
"filter": {
"operator": "AND",
{
"fundingDocumentURL": "http://reliefweb.int/updates?advanced-search=(C226.C122)_(F4)_!(S1242)_!(S1741)_!(S1255)_!(PC254)_!(S4304)#content",
"dataSources": [
{
"dataItemTitle": "Iraq Strategic Response Plan",
"dataSourceURL": "http://fts.unocha.org/reports/daily/OCHA_R32sum_A983.PDF",
"clusters": [{
"name": "CAMP COORDINATION AND CAMP MANAGEMENT (CCCM)",
"current_requirement": 32488735.0,
"original_requirement": 0.0,
{
"countries": ["Iraq", "Syria"],
"startDate": "2014-12-22",
"limit": "100",
"emptyImage": "http://crisis.rwdev.org/img/overview-map.jpg"
}
{
"title": "Crisis Overview",
"dataSource": "Data Source <cite><a href=\"http://www.unhcr.org/cgi-bin/texis/vtx/home\" target=\"_top\">UNHCR</a></cite>",
"map": {
"src": "http://crisis.rwdev.org/img/overview-map.jpg",
"alt": "Syria/Iraq"
},
"content": {
"syria": {
"title": "Syria",
@fillerwriter
fillerwriter / unrw-financial.json
Last active August 29, 2015 14:16
Financial widget configuration
{
"fundingDocumentURL": "http://reliefweb.int/updates?advanced-search=(C226.C122)_(F4)_!(S1242)_!(S1741)_!(S1255)_!(PC254)_!(S4304)#content",
"dataSources": [
{
"dataItemTitle": "Iraq Strategic Response Plan",
"dataSourceURL": "http://fts.unocha.org/reports/daily/OCHA_R32sum_A983.PDF",
"clusters": [{
"name": "CAMP COORDINATION AND CAMP MANAGEMENT (CCCM)",
"current_requirement": 32488735.0,
"original_requirement": 0.0,
{
"title": "Crisis Overview",
"dataSource": "Data Source <cite><a href=\"\">UNHCR</a></cite>",
"map": {
"src": "http://i.imgur.com/MSviDHD.png",
"alt": "Madagascar"
},
"content": {
"overview": {
"title": "Overview",
{
"title": "Crisis Overview",
"dataSource": "Data Source <cite><a href=\"\">UNHCR</a></cite>",
"map": {
"src": "img/overview-map.jpg",
"alt": "Syria/Iraq"
},
"content": {
"syria": {
"title": "Syria",
{
"filters": [
{
"id": "situation-reports",
"title": "Situation reports by UN agencies",
"location": "http://reliefweb.int/updates?advanced-search=(C226.C122)_(F10)_(ST272)#content",
"filters": {
"operator": "AND",
"conditions": [
{