Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //showName();
- $.each(result.data, function () {
- var id = this.id;
- var title = this.name;
- var subtitle = this.subtitle;
- var image = this.image;
- var description = this.description;
- var range1 = this.range1;
- var range2 = this.range2;
- var range3 = this.range3;
- $("#list").append(toStaticHTML('<div class="item"> <img class="item-image" src="' + image + '" /><div class="item-info"><h3 class="item-title win-type-ellipsis">' + title + '</h3><h6 class="item-subtitle win-type-ellipsis">' + subtitle + '</h6></div></div>'));
- $("#segment").append(toStaticHTML('<article><header class="header"><div class="text"><h2 class="article-title win-type-ellipsis">' + title + '</h2><h4 class="article-subtitle">' + subtitle + '</h4></div><img class="article-image" src="#" /></header><p>Presentation</p><input id="' + id + '1" type="range" min="0" max="10" step="1" value="' + range1 + '" onchange="change(' + id + ',1)" /><p>Idea</p><input id="' + id + '2" type="range" min="0" max="10" value="' + range2 + '" step="1" onchange="change(' + id + ',2)" /><p>Team</p><input id="' + id + '1" type="range" min="0" max="10" step="1" value="' + range3 + '" onchange="change(' + id + ',3)" /><div class="article-content">' + description + '</div></article>'));
- });
Add Comment
Please, Sign In to add comment