Sha256: d2304ae364f933d9a0a2a325fdb6afa014d41b6936c0a6e8b4cf5459878e41d5
Contents?: true
Size: 915 Bytes
Versions: 10
Compression:
Stored size: 915 Bytes
Contents
function fail() { window.location = "/course/fail.html"; } function getSpecs() { $.getJSON("/course/specs.json",function(specs) { $("body").append("<a href='#' class='specs show_specs'>Show Specs</a><a href='#' class='specs hide_specs'>Hide Specs</a><ul id='specs'></ul>"); var spec_list = $("#specs"); spec_list.hide(); $("a.hide_specs").hide(); $("a.specs").click(function() { spec_list.slideToggle("normal",function() { $("a.show_specs").toggle(); $("a.hide_specs").toggle(); }); }); $.each(specs,function(index,spec_data) { var spec = $("<li class='spec'></li>").appendTo(spec_list); $("<p class='spec_message'></p>").appendTo(spec).text(spec_data.message); $("<pre class='spec_url'></pre>").appendTo(spec).text(spec_data.url); $("<pre class='spec_example'></pre>").appendTo(spec).text(spec_data.example); }); }); }
Version data entries
10 entries across 10 versions & 1 rubygems