Skip to content

Conversation

@darkwing
Copy link
Contributor

@darkwing darkwing commented Aug 8, 2016

re: #798

Added as an attribute to not muddle the CSS classes, while still able to select with QSA. This also adds to only a- elements as well as the <video> created by material.js.

Purposely did not add to meta tag, the original canvas, or the vr-mode-ui elements as they're simply for VR mode in/out.

Let me know what you think of this.

warn('`$s` is not a valid video', src);
}, true);
videoEl.src = src;
videoEl.setAttribute('aframe-injected', '');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These videos are never injected to the DOM so don't need it here.

@ngokevin
Copy link
Member

ngokevin commented Aug 8, 2016

@fernandojsg The inspector is involved with this. Thoughts?

@fernandojsg
Copy link
Member

It's ok for me, as I could look for those aframe-injected and remove them before exporting or copying to clipboard the scene.

@darkwing
Copy link
Contributor Author

darkwing commented Aug 9, 2016

Updated!

@ngokevin
Copy link
Member

ngokevin commented Aug 9, 2016

@fernandojsg Do you want the aframe-injected also on the VR mode UI, canvas, meta tags?

@fernandojsg
Copy link
Member

Yep that would be great! As right now I'm removing them by hand:
https://github.com/aframevr/aframe-inspector/blob/b9e46216e005a1117a708943342cb589aed81524/src/lib/exporter.js#L39-L47
So what you said VR Mode UI, canvas, metatags, CSS, ...

@ngokevin
Copy link
Member

ngokevin commented Aug 9, 2016

@darkwing would you mind remove those as well? I think the issue was primarily for @fernandojsg's inspector to generate HTML

@darkwing
Copy link
Contributor Author

darkwing commented Aug 9, 2016

Added to VR elements and metas, updated test.

@ngokevin ngokevin merged commit 263dcff into aframevr:master Aug 9, 2016
@ngokevin
Copy link
Member

ngokevin commented Aug 9, 2016

thanks!

@fernandojsg
Copy link
Member

@ngokevin @darkwing ops, sorry I was a little bit late to the conversation, maybe it could be another PR, but what about including aframe-injected to the CSS?
<style type="text/css" data-href="src/style/aframe.css">

And probably for the stats too?
<style type="text/css" data-href="src/style/rStats.css">

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

4 participants