JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Displaying JScad designs in media wiki / or plain html for a start ...

    Scheduled Pinned Locked Moved Development Discussions
    7 Posts 2 Posters 4.8k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WolfgangFahlW Offline
      WolfgangFahl
      last edited by WolfgangFahl

      The current solutions I know of for displaying JSCad Designs:

      • https://www.openjscad.org/
      • https://danmarshall.github.io/jscad-gallery/
      • https://risacher.org/OpenJsCad
      • https://johnwebbcole.gitlab.io/vesa-shelf/
      • https://joostn.github.io/OpenJsCad/

      all need quite some infrastructure to work.

      I am looking for a (hopefully) much simpler solution that can be embedded in Mediawiki. For a start a plain html page with a bit of javascript would do for me.

      Would it be possible to source the necessary javascript from some other website?
      If not what would be the minimum amount of code that neeeds to reside on the server of the Mediawiki site?

      I'd be willing to create a MediaWiki extension for displaying JSCad files if there is a long-term (multi-year) future for such a solution. Will Version2 be compatible in this respect to Version 1.9?

      1 Reply Last reply Reply Quote 0
      • WolfgangFahlW Offline
        WolfgangFahl
        last edited by

        There is now a stackoverflow question about this at https://stackoverflow.com/questions/56520743/integrating-openjscad-into-mediawiki and a trial page at http://wiki.bitplan.com/index.php/ParametricLampShade

        1 Reply Last reply Reply Quote 0
        • WolfgangFahlW Offline
          WolfgangFahl
          last edited by

          There is now an issue at https://github.com/jscad/OpenJSCAD.org/issues/448

          1 Reply Last reply Reply Quote 0
          • gilboonetG Offline
            gilboonet
            last edited by

            Hello, did you try with viewer-minimal.html that is into packages/web directory ? It seems that the code you used for your demo is very old. There are minimal examples for years now.

            WolfgangFahlW 1 Reply Last reply Reply Quote 0
            • WolfgangFahlW Offline
              WolfgangFahl @gilboonet
              last edited by WolfgangFahl

              @gilboonet Thank you for the hint.
              There are probably certain assumptions about running this example that i don't know of. Simply opening the example file in browser gives:

              0_1560688038453_59fea8dd-7a30-407d-bd43-a79dbe795a8b-grafik.png

              And no OpenJSCAD.org Logo appears as the title would make you think.

              So does the example expect some environment?
              It looks like it does - the url to the logo is examples/logo.jscad while examples is not a subdirectory of web but a neighbouring - directory changing the design-url to "../examples/logo.jscad" gives not different result though. So how does this example work?

              gilboonetG 2 Replies Last reply Reply Quote 0
              • gilboonetG Offline
                gilboonet @WolfgangFahl
                last edited by

                @wolfgangfahl if you copy examples folder into web, it will work
                0_1560694037633_Capture d’écran de 2019-06-16 16-05-07.png

                1 Reply Last reply Reply Quote 0
                • gilboonetG Offline
                  gilboonet @WolfgangFahl
                  last edited by gilboonet

                  @wolfgangfahl To make it work without having to move examples folder, you can run it from your local webserver. I did so from my local apache http server 0_1560695657275_Capture d’écran de 2019-06-16 16-34-02.png

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  Powered by NodeBB | Contributors