Giter VIP home page Giter VIP logo

Comments (4)

bramp avatar bramp commented on May 18, 2024

I think your webserver is serving the JS with the wrong charset headers.

This is because I'm using an accented character in one of my class names. Either you fix your webserver, change the tag to say charset=... or I stop using funny characters in my class names.

I'll most likely do the later.

from js-sequence-diagrams.

aguynamedben avatar aguynamedben commented on May 18, 2024

@bramp Cool, FWIW, I'm opening a local HTML file in Chrome using OS X's Finder. No web server involved. That is probably causing the difference. This was my use case because I'm making a one-off sequence diagram for a presentation, so I didn't go through the trouble to setup a web server for it, and just decided to use HTML/JS file in a directory.

It looks good, though, so thanks for that!

-Ben

from js-sequence-diagrams.

bramp avatar bramp commented on May 18, 2024

This has been fixed in 6912c48

from js-sequence-diagrams.

rex avatar rex commented on May 18, 2024

@bramp - Just so you know, the current CDNJS version of this file (hosted here) still has the invalid character in it. Snippet follows:

RaphaëlTheme=function(diagram){this.init(diagram)};_.extend(RaphaëlTheme.prototype
,BaseTheme.prototype,{init_font:function(){this._font={"font-size":16,
"font-family":"Andale Mono, monospace"}}});var HandRaphaëlTheme=function(diagram)
{this.init(diagram)};_.extend(HandRaphaëlTheme.prototype,
BaseTheme.prototype,{init_font:function(){this._font={"font-

Just so you know :) I'm going to use the JS from the link you provided at raw.githubusercontent.com for now, but let me know if I can be any more help!

cc @aguynamedben

from js-sequence-diagrams.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.