gnuplot-JS icon indicating copy to clipboard operation
gnuplot-JS copied to clipboard

gnuplot.js on different url

Open Maurozio opened this issue 5 years ago • 0 comments

First of all, thank you! I am using gnuplot-JS and it is really useful when I am without my laptop or at home. Sorry I am just a student and a novice in javascript. Is it possible to use an external url for gnuplot.js file? I host index.html, gnuplot_api.js on https://mywebsite.com/ but I would like to use another url for gnuplot.js file (for example https://external.com/blabla/ok/no/gnuplot.js) because this file is really big!

Maybe this is the part I should edit. How? :

<script src='gnuplot_api.js'></script>
        <script>
                gnuplot = new Gnuplot('gnuplot.js');
                gnuplot.onOutput = function(text) {
                    document.getElementById('output').value += text + '\n';
                    document.getElementById('output').scrollTop = 99999;
                };

thank you for your support

Maurozio avatar Jul 24 '20 20:07 Maurozio