JSFiddle - React, Tailwind, and code Playground

by zedsaid

HTML

<link rel="stylesheet" href="http://learning.southdowns.gov.uk/content/designs/global-south-downs-learning-portal/screen.css">
<link rel="stylesheet" href="http://learning.southdowns.gov.uk/__data/assets/text_file/0012/314103/bootstrap.min.css">
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<h1>General Interest</h1>
<div id="debug"></div>
<div id="resourceFinderResults" class="span12"></div>

JavaScript

Object.prototype.hasOwnProperty = function(property) {
    return typeof(this[property]) !== 'undefined'
};

var zs_resource_finder = [
{"title" : "SDNP Visitor Survey 2011-12",
"description" : "The full technical report of the South Downs Visitor Survey 2011-2012 providing facts, figure and data sources.",
"page" : ["Enjoying the South Downs Way", "South Downs National Park", "Tourism", "About The National Park", "Access &amp; Recreation"],
"thumbnail" : "http://learning.southdowns.gov.uk/__data/assets/image/0006/314790/owl.png", 
"resource" : ["General Interest^keystage", "Key Stage 4^keystage", "Key Stage 5^keystage", "Citizenship^subject", "Geography^subject"],
"url" : "http://learning.southdowns.gov.uk/__data/assets/pdf_file/0010/319906/SDNP-Visitor-Survey-2011-12.pdf",
"icon" : "http://learning.southdowns.gov.uk/__data/asset_types/pdf_file/icon.png"
},
{"title" : "Introduction to tourism in National Park",
"description" : "A PowerPoint presentation introducing facts, figures and impacts of tourism within the National Park",
"page" : ["Enjoying the South Downs Way", "Tourism", "About The National Park"],
"thumbnail" : "http://learning.southdowns.gov.uk/__data/assets/image/0006/314790/owl.png", 
"resource" : ["General Interest^keystage", "Key Stage 4^keystage", "Key Stage 5^keystage", "Citizenship^subject", "Geography^subject"],
"url" : "http://learning.southdowns.gov.uk/__data/assets/powerpoint_doc/0004/321754/Introduction-to-tourism-in-National-Park.pptx",
"icon" : "http://learning.southdowns.gov.uk/__data/asset_types/powerpoint_doc/icon.png"
},
{"title" : "Tourism Case Study Pitlands Barn",
"description" : "A case study of Pitlands Barn looking at farm diversification and responsible tourism practices",
"page" : ["Tourism", "Farming &amp; Land Management", "Access &amp; Recreation"],
"thumbnail" : "http://learning.southdowns.gov.uk/__data/assets/image/0006/314790/owl.png", 
"resource" : ["General Interest^keystage", "Key Stage 4^keystage", "Key Stage...