Skip to content

gnuplot.js on different url #4

Description

@Maurozio

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions