mirror of
https://gitlab.com/Oreolek/salet-playground.git
synced 2024-05-29 14:28:24 +03:00
Implement together.js (https://togetherjs.com/) with button matching existing styling.
This commit is contained in:
parent
d7795a5c04
commit
4a1f9b29e1
|
@ -15,6 +15,8 @@
|
|||
<!-- Ace Editor -->
|
||||
<script src="js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="js/ace/ext-language_tools.js" type="text/javascript" charset="utf-8"></script>
|
||||
<!-- Together -->
|
||||
<script src="https://togetherjs.com/togetherjs-min.js"></script>
|
||||
<!-- JSTinker Scripts -->
|
||||
<script src="js/jstinker.js"></script>
|
||||
<!-- Bootstrap Latest compiled and minified CSS -->
|
||||
|
@ -44,6 +46,7 @@
|
|||
<ul class="nav navbar-nav">
|
||||
<li id="btnRun"><a href=""><span class="glyphicon glyphicon-play" aria-hidden="true"></span> Run</a></li>
|
||||
<li id="btnTidyUp"><a href=""><span class="glyphicon glyphicon-flash" aria-hidden="true"></span> TidyUp</a></li>
|
||||
<li id="btnTogether"><a href=""><span class="glyphicon glyphicon-star-empty" aria-hidden="true"></span> Collaborate</button></li>
|
||||
</ul>
|
||||
</div><!-- /.navbar-collapse -->
|
||||
</nav>
|
||||
|
@ -521,4 +524,4 @@
|
|||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -283,4 +283,12 @@ $("document").ready(function() {
|
|||
|
||||
ace.edit("js-editor").getSession().setValue(js2);
|
||||
});
|
||||
});
|
||||
|
||||
// Together Button
|
||||
$("#btnTogether").click(function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
TogetherJS(this);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue