Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in /home/oncampus/public_html/thinkup/_lib/extlib/Smarty-2.6.26/libs/Smarty.class.php on line 64
ThinkUp171982365856505857 = new function() { var BASE_URL = 'https://thinkup.gforsythe.ca/thinkup/'; var STYLESHEET = BASE_URL + "assets/css/thinkupembedthread.css" var CONTENT_URL = BASE_URL + 'api/embed/v1/thread_js.php?p=171982365856505857&n=twitter'; var ROOT = 'thinkup_embed_171982365856505857'; function requestStylesheet(stylesheet_url) { stylesheet = document.createElement("link"); stylesheet.rel = "stylesheet"; stylesheet.type = "text/css"; stylesheet.href = stylesheet_url; stylesheet.media = "all"; document.lastChild.firstChild.appendChild(stylesheet); } function requestContent( local ) { var script = document.createElement('script'); // How you'd pass the current URL into the request // script.src = CONTENT_URL + '&url=' + escape(local || location.href); script.src = CONTENT_URL; // IE7 doesn't like this: document.body.appendChild(script); // Instead use: document.getElementsByTagName('head')[0].appendChild(script); } this.serverResponse = function( data ) { if (!data[0].status) return; var div = document.getElementById(ROOT); var txt = ''; //console.debug(data); //console.debug('status ' + data[0].status); if ( data[0].status == 'failed') { if ( data[0].message ) txt = '
Error: ' + data[0].message + '
'; } else { // console.debug('post ' + data[0].post); // console.debug('replies ' + data[0].replies[1].text); txt += '
'; if (data[0].author_link != 'null') { txt += ''; } txt += ''; if (data[0].author_link != 'null') { txt += ''; } txt += '
'; if (data[0].post_link != 'null') { txt += ''; } txt += data[0].author; if (data[0].author_link != 'null') { txt += ''; } txt += ': ' + data[0].post + '

'; for (var i = 0; i < data[0].replies.length; i++) { if (txt.length > 0) { txt += " "; } txt += '
' if (data[0].replies[i].author_link != 'null') { txt += ''; } txt += ''; if (data[0].replies[i].author_link != 'null') { txt += ''; } txt += '
'; if (data[0].replies[i].post_link != 'null') { txt += ''; } txt += data[0].replies[i].author; if (data[0].replies[i].post_link != 'null') { txt += ''; } txt += ": " + data[0].replies[i].text + '

'; } } txt += 'Powered by ThinkUp'; div.innerHTML = txt; // assign new HTML into #ROOT div.style.display = 'block'; // make element visible } requestStylesheet(STYLESHEET); document.write(""); requestContent(); }