You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
This simple example of hello is quite astoundingly easy to understand. I wonder what would I need to do have a html page replace that hello country string with its js and css.
The text was updated successfully, but these errors were encountered:
You can place CSS into your extension by listing the files in the content_scripts section of your extension's manifest.json.
You could also put an HTML file into your extension and append it in an iframe if you specifically wanted the isolation that gives, but it's more work.
We'll add this soon to the docs and add some examples for best practicing
HTML/CSS loading.
ᐧ
On Thu, Jul 9, 2015 at 10:42 AM, Chris Cowan [email protected]
wrote:
You can append whatever elements you want to the view:
var div = document.createElement('div');
div.innerHTML = 'foo';
customRouteView.getElement().appendChild(div);
You can place CSS into your extension by listing the files in the
content_scripts section of your extension's manifest.json.
You could also put an HTML file into your extension and append it in an
iframe if you specifically wanted the isolation that gives, but it's more
work.
—
Reply to this email directly or view it on GitHub #1 (comment)
.
'chrome.runtime.getURL' was the thing I was missing. Thanks a ton and yes, a simple example would be really helpful, for newbies. How to go on about having js associated to that html being loaded into the context?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This simple example of hello is quite astoundingly easy to understand. I wonder what would I need to do have a html page replace that hello country string with its js and css.
The text was updated successfully, but these errors were encountered: