Skip to content

Stripped-down embedded p5.js sketches #1977

@tugrulsalci

Description

@tugrulsalci

Hello,

We are a platform that features student works from Creative Coding classes in Özyeğin University. You can reach the works at randomseed.cargo.site . Withing the latest update, in all of the artworks we have the white p5.js navigation bar. Of course would like to promote p5.js as we use and host our artworks. But the bar is very wide and at top. Do you think of an update which allows the usage of navigation bar at the bottom? And without the sketch/artist information. Just the logo and code button maybe. Because we already giving the artist info.

Thank you in advance,
Tuğrul

Activity

welcome

welcome commented on Nov 19, 2021

@welcome

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

catarak

catarak commented on Nov 19, 2021

@catarak
Member

Hi @tugrulsalci! Thank you for the suggestion. For context, the reason behind adding the top navigation was to prevent phishing.

I think we could think about having an embed view for a sketch that is a stripped down version of the editor, like what other similar sites do (e.g. CodePen), that just let you see the code and the sketch, and nothing else. It would also be a smaller app so it would load faster.

changed the title [-]New navigation bar on embedded p5.js sketches[/-] [+]Stripped-down embedded p5.js sketches[/+] on Nov 19, 2021
burnedsap

burnedsap commented on Nov 21, 2021

@burnedsap

I agree, the new bar breaks previous embeds and it would be nice to have an option to embed without the window.

erikDillaman

erikDillaman commented on Nov 30, 2021

@erikDillaman

I was using the P5 embedding within Canvas to host example challenges and assignments for students -- with this new top bar, it allows them an easy way to find the source and simply copy the code. I want them to be able to interact and visualize the challenge without being able to just scan through my code (at least at first...) Can there be a toggle in the editor that allows us to remove the top bar and/or such an easy link to the source code?

stungeye

stungeye commented on Dec 13, 2021

@stungeye

I would also like a way to embed only the sketch itself. I created interactive sketches for an applied math course, but the embeds are now all broken. The following screenshot shows how a 50x50px sketch now looks embedded in my notes. :)

image

alptugan

alptugan commented on Mar 8, 2022

@alptugan

Hi there,

Is there any workaround for the top bar visibility issue.
I tried many css tricks to remove the top banner. I could not make it work cause of iframe structure I guess.
@catarak, I got your point. But it would be good to have an option to enable/disable top bar as @erikDillaman suggested.

CaseyJNova

CaseyJNova commented on Aug 27, 2022

@CaseyJNova

Any solution on this topic? Would also like to be able to adjust how the embed looks.

Or, is this easier to change if self-hosted?

burnedsap

burnedsap commented on Aug 29, 2022

@burnedsap

I've been self hosting to get around the issue. Download the zip file and host it on Github Pages or Glitch.

CaseyJNova

CaseyJNova commented on Aug 29, 2022

@CaseyJNova

Agree, self-hosted is the way to go. Took me a minute but was able to get it all figured out. I'll try and do a write up on it an link it here later. Thanks!

added
Area:PreviewFor features and bugs relating to the embedded preview sketch
on Jan 16, 2024
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

    Area:PreviewFor features and bugs relating to the embedded preview sketchNeeds DiscussionRequires further conversation or consensus

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @stungeye@alptugan@burnedsap@catarak@CaseyJNova

        Issue actions

          Stripped-down embedded p5.js sketches · Issue #1977 · processing/p5.js-web-editor