Commit 7c8f7ae2 authored by Thomas Park's avatar Thomas Park
Browse files

index: removed api example

parent ecd05371
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Bootswatch API Example</title>
<style type="text/css">
.hidden { display: none; }
<script src=""></script>
<script src=""></script>
<script type="text/javascript">
$.get("", function (data) {
var template_menu = "<div id='menu'><select>{{#.}}<option>{{name}}</option>{{/.}}</select></div>";
var template_previews = "{{#.}}<div class='preview hidden' id='{{name}}'><h1>{{name}}: {{description}}</h1><p><a href='{{preview}}'><img src='{{thumbnail}}'></a></p></div>{{/.}}"
var output_menu = Mustache.render(template_menu, data.themes);
var output_previews = Mustache.render(template_previews, data.themes);
$('body').append(output_menu + output_previews);
var show = '#' + $('#menu :selected').text();
}, "json");
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment