diff --git a/index.html b/index.html index f22ecf9..8f10d07 100644 --- a/index.html +++ b/index.html @@ -125,7 +125,6 @@

This JS lib lets you filter, sort and display large datasets in the browser. "imageURL": "http://flickholdr.iwerk.org/150/100/Lion/1", "description": "Ut Takimata Sit Aliquyam Labore Aliquyam Sit Sit Lorem Amet. Ipsum Rebum. ", "category": "Lion", - "language": "Lisp", "continent": "North America" }, ... @@ -149,12 +148,14 @@

Demo

$(function(){ var item_template = '
' + - '' + - '

<%= lastname %>, <%= firstname %>

' + + '' + + '

<%= obj.lastname %>, <%= obj.firstname %>

' + '

' + - '<%= category %>, <%= continent %>, <%= language %>' + + '<% if (obj.category) { %><%= obj.category %><% } %>' + + '<% if (obj.continent) { %>, <%= obj.continent %><% } %>' + + '<% if (obj.language) { %>, <%= obj.language %><% } %>' + '

' + - '

<%= description %>

' + + '

<%= obj.description %>

' + '
'; settings = { items : example_items, @@ -325,7 +326,6 @@

Demo

"imageURL": "http://flickholdr.iwerk.org/150/100/Horse/15", "description": "Sed Est Sea Et Dolores Sea Dolores ", "category": "Horse", - "language": "Basic", "continent": "South America" }, { @@ -1155,12 +1155,14 @@

Example Code

}]; var item_template = '<div class="item">' + - '<img src="<%= imageURL %>">' + - '<h4><%= lastname %>, <%= firstname %></h4>' + - '<p class="desc"><%= description %></p>' + + '<img src="<%= obj.imageURL %>">' + + '<h4><%= obj.lastname %>, <%= obj.firstname %></h4>' + '<p class="tags">' + - '<%= category %>, <%= continent %>, <%= language %>' + + '<% if (obj.category) { %><%= obj.category %><% } %>' + + '<% if (obj.continent) { %>, <%= obj.continent %><% } %>' + + '<% if (obj.language) { %>, <%= obj.language %><% } %>' + '</p>' + + '<p class="desc"><%= obj.description %></p>' + '</div>'; var settings = { items : example_items,