JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

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

    Development Discussions
    2
    7
    3677
    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.
    • WolfgangFahl
      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
      • gilboonet
        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
        • gilboonet
          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
          • WolfgangFahl
            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?

            gilboonet 2 Replies Last reply Reply Quote 0
            • gilboonet
              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.

              WolfgangFahl 1 Reply Last reply Reply Quote 0
              • WolfgangFahl
                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
                • WolfgangFahl
                  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
                  • First post
                    Last post
                  Powered by NodeBB | Contributors