Created
February 6, 2009 16:33
-
-
Save queso/59479 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.loadCSS(this.doc,"/stylesheet/style.css"); | |
html = "<div id='events'>" | |
html += "<div class=\'vevent clearfix\'>\n <div class=\'header clearfix\'>\n <abbr class=\'dtstart\' title=\'2008-09-10\'>Wed - Feb 11, 2009 @ 01:00PM CST<\/abbr>\n <span class=\'starts_in\'>Starts in 5 days<\/span>\n <\/div>\n <div class=\'voting\'>\n <div class=\'vote_count\'>\n <span class=\'vote_number\'>1<\/span>\n <span>vote<\/span>\n <\/div>\n <div class=\'vote_action\'>\n <div class=\'voteup\'>\n <span><a href=\"http://calfeed.local/events/25-test-8/vote\">vote up<\/a><\/span>\n <\/div>\n <\/div>\n <\/div>\n <div class=\'body\'>\n <h3 class=\'summary\'>\n <a href=\"/events/25-test-8\" class=\"url\">Test<\/a>\n <\/h3>\n <div class=\'description\'>\n <p>Apple / (test.com) – Test <a href=\"/events/25-test-8\">read more<\/a><\/p>\n <\/div>\n <div class=\'tools clearfix\'>\n <ul>\n <li class=\'comments_count\'><a href=\"/events/25-test-8\">0 comments<\/a><\/li>\n <li class=\"add_calfeed\"><a href=\"http://calfeed.local/login\">Add to myCalFeed<\/a><\/li>\n <li style=\'background: url(/images/default_thumb_avatar.png) no-repeat;\'><a href=\"http://calfeed.local/users/josh-owens\">josh<\/a><\/li>\n <\/ul>\n <\/div>\n <\/div>\n <hr />\n<\/div>\n" | |
html += "</div>" | |
document.getElementById("event_list").innerHTML = html; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.loadCSS(this.doc,"<%= url_for('/stylesheet/style.css') %>"); | |
html = "<div id='events'>" | |
<% @events.each do |event| %> | |
html += "<%= escape_javascript(render :partial => event) %>" | |
<% end %> | |
html += "</div>" | |
document.getElementById("event_list").innerHTML = html; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment