WebFontConfig = { google: { families: [ 'Della+Respira', 'Muli' ] } }; /** @const */ var TESTIMONIAL_TREE_WIDGET_CSS_FILENAME = "Social1/styles/Social1_1.0.1.css?v=10"; var TT_Script = ""; TT_init(); function TT_init() { var _currentDomain = ""; var _protocol = ('https:' == document.location.protocol ? 'https' : 'http'); for (runner = 0; runner < document.getElementsByTagName('script').length; runner++) { if (document.getElementsByTagName('script')[runner].src.match(/\/widgets\/([a-zA-Z0-9-_]+\/[a-zA-Z0-9\-_\.]+)?\?widgetid=\d+/i)) { TT_Script = document.getElementsByTagName('script')[runner].src; if (TT_Script.match(/^(?:https?:)?\/\/[a-zA-z0-9\.:-]+/i)) _currentDomain = TT_Script.match(/^(?:https?:)?\/\/([a-zA-z0-9\.:-]+)/i)[1]; if (_currentDomain == "") { //for on TT pages _currentDomain = document.location.hostname; TT_Script = _protocol + "://" + _currentDomain + TT_Script; } break; }; }; if (_currentDomain == "") { //abort if no domain found return; } var url = _protocol + "://" + _currentDomain + "/Widgets/widgetInit.js"; var script = document.createElement("script"); script.type = "text/javascript"; script.src = url; document.getElementsByTagName("head")[0].appendChild(script); } function TT_createWidget(JSONObject) { if (JSONObject.testimonialtreewidget.passedusername != null && JSONObject.testimonialtreewidget.passedusername != "" && JSONObject.testimonialtreewidget.settings.usersignature != JSONObject.testimonialtreewidget.passedusername) { return; } var protocol = ('https:' == document.location.protocol ? 'https' : 'http'); var widget = TT_findWidgetContainer(JSONObject); var newEl = document.createElement('TABLE'); newEl.setAttribute('cellPadding',5); var tmp = document.createElement('TBODY'); newEl.appendChild(tmp); //Add new Testimonial var AddTestimonialLink = document.createElement('A'); AddTestimonialLink.id = 'TT_AddTestimonialLink'; AddTestimonialLink.href= protocol + '://www.testimonialtree.com/?uid=83981'; AddTestimonialLink.target = '_blank'; AddTestimonialLink.innerHTML = '
[+] Add New Testimonial
'; //Powered by TestimonialTree 2 var TestimonialLink = document.createElement('A'); TestimonialLink.href= 'https://testimonialtree.com'; TestimonialLink.target = '_blank'; TestimonialLink.innerHTML = '
Powered by TestimonialTree.com\&trade\;
'; var isViewAll = document.URL.indexOf("viewAll.aspx") != -1 ? true : false; if(isViewAll) { var _backButtonDiv = document.createElement('div'); var _backButton = document.createElement('A'); _backButtonDiv.id = 'TT_BackButtonDiv'; _backButtonDiv.id = 'TT_BackButton'; _backButton.innerHTML = "
Back
"; _backButtonDiv.appendChild(_backButton); widget.appendChild(_backButtonDiv); } widget.appendChild(AddTestimonialLink); widget.appendChild(TestimonialLink); TT_createEvent(widget); }