Skip to content

Instantly share code, notes, and snippets.

@bsullins
Created October 10, 2013 18:20
Show Gist options
  • Save bsullins/6923034 to your computer and use it in GitHub Desktop.
Save bsullins/6923034 to your computer and use it in GitHub Desktop.
Add togetherjs to your Tableau Server implementation for real-time collaboration on data visualizations
<script src="https://togetherjs.com/togetherjs-min.js"></script>
<script type="text/javascript">
// add button for viz talk
window.onload = function() {
var buttons=document.getElementsByClassName('tab-masthead-toolbar')[0];
var new_button=document.createElement('a');
var new_button_text=document.createTextNode('VizTalk');
new_button.setAttribute('onclick','TogetherJS(this); return false;');
new_button.setAttribute('class','tab-masthead-toolbar-button');
new_button.setAttribute('style','padding: 4px 8px; border: 1px solid transparent; text-decoration: none; cursor: pointer; display: inline-block; vertical-align: top; font-size: 12px; color: rgb(90, 90, 90); background-color: transparent;');
new_button.appendChild(new_button_text);
buttons.appendChild(new_button,buttons);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment