Guest User

Untitled

a guest
Jan 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. //showName();
  2. $.each(result.data, function () {
  3. var id = this.id;
  4. var title = this.name;
  5. var subtitle = this.subtitle;
  6. var image = this.image;
  7. var description = this.description;
  8. var range1 = this.range1;
  9. var range2 = this.range2;
  10. var range3 = this.range3;
  11. $("#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>'));
  12. $("#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>'));
  13. });
Add Comment
Please, Sign In to add comment