sharing icons

pull/111/head
Patricio Gonzalez Vivo 8 years ago
parent 5738a92a73
commit 0e8e1ca8fb

@ -26,8 +26,8 @@ echo '
<script type="text/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslCanvas/master/build/GlslCanvas.min.js"></script>
<!-- GlslEditor -->
<link type="text/css" rel="stylesheet" href="https://rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/css/main.css">
<script type="application/javascript" src="http://rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/js/glslEditor.js"></script>
<link type="text/css" rel="stylesheet" href="https://rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/css/main.css">
<script type="application/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/js/glslEditor.js"></script>
<link type="text/css" rel="stylesheet" href="'.$path.'/css/style.css">
@ -44,4 +44,5 @@ echo '
';
?>
<!-- <script type="application/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/js/glslEditor.js"></script> -->

@ -137,7 +137,7 @@ function loadGlslElements() {
for(var i = 0; i < ccList.length; i++){
if (ccList[i].hasAttribute("data")){
var srcFile = ccList[i].getAttribute("data");
var editor = new GlslEditor(ccList[i], { canvas_size: 250, canvas_follow: true, tooltips: true });
var editor = new GlslEditor(ccList[i], { canvas_size: 250, canvas_follow: true, tooltips: true, shareIcon: true });
editor.open(srcFile);
glslEditors.push(editor);
}

Loading…
Cancel
Save