socialforge/app/views/users/_intro_content_ex.html.erb

22 lines
792 B
Plaintext
Raw Normal View History

2016-04-28 10:19:59 +08:00
<div class="homepagePostIntro break_word upload_img list_style table_maxWidth lh18" id="activity_description_<%= user_activity_id%>">
<div id="intro_content_<%= user_activity_id%>">
<%= content.to_s.html_safe%>
</div>
</div>
<script type="text/javascript">
2016-04-29 13:42:58 +08:00
$("#intro_content_<%= user_activity_id%>").hide();
$(function() {
2016-04-28 10:19:59 +08:00
var heightType = <%= maxheight %>;
2016-04-29 13:42:58 +08:00
if (heightType > 0) {
$("#activity_description_<%= user_activity_id%>").css("max-height", heightType + "px");
2016-04-28 10:19:59 +08:00
}
var maxWidth = <%= maxwidth %>
if (maxWidth > 0) {
$("#intro_content_<%= user_activity_id%>").css("max-width", maxWidth + "px");
}
description_showwords_ellipsis(<%=user_activity_id %>,<%= maxwordsnum %>);
2016-04-28 10:19:59 +08:00
});
</script>