Only portrait mode is currently supported - please rotate your device.
Page History
...
HTML |
---|
<script>
function renderAndInsertMarkup(markup, containingElement) {
var dataObj = {};
dataObj.representation = "storage";
dataObj.content = {};
dataObj.content.id = AJS.params.pageId;
dataObj.value = markup;
jQuery.ajax({dataType: 'json',
contentType: 'application/json',
type: 'POST',
url: '/rest/api/contentbody/convert/view',
data: JSON.stringify(dataObj),
success: function(response) {
jQuery(containingElement).append(response.value);
}
});
}
var topic_id = getQueryVariableFromUrl("topicid");
topic_id = topic_id == "notfound" ? "2" : topic_id;
console.log("topic_id", topic_id)
renderAndInsertMarkup(` <ac:structured-macro ac:macro-id="ad2a6246-f132-447c-9d41-134a863d6d38" ac:name="globaltimeline" ac:schema-version="1">
<ac:parameter ac:name="topic">`+topic_id+`</ac:parameter>
<ac:parameter ac:name="source">topic</ac:parameter>
</ac:structured-macro>`, "#chat-container");
</script>
<div id="chat-container"> </div>
|
...