cs10 / bjc-r

The Beauty and Joy of Computing public resource repository.
https://beautyjoy.github.io/bjc-r
30 stars 101 forks source link

Making Files Run In Snap #180

Closed cycomachead closed 10 years ago

cycomachead commented 10 years ago

So, we have the class="run" thing, but how should we reference files when things will be served from multiple URLs / servers?

I just ran into an issue because there's files not on bjc.EECS but thats where the normal URLs point. (I 'fixed' it by pointing to CS10..)

xtitter commented 10 years ago

Check out getSnapRunURL() inside admin/bjc-library.js. IIRC, we special cased things because there was no easy answer, iirc. You could add the particular domain you want handled in there, maybe?

<-><=><-><=><-><=><-><=><-><=><-><=><-><=><-><=><-><=><-><=><-> Nathaniel Titterton, Ph.D. nate@berkeley.edu Computer Science Education U.C. Berkeley, 329 Soda Hall

On 1/23/2014 1:53 PM, Michael Ball wrote:

So, we have the |class="run"| thing, but how should we reference files when things will be served from multiple URLs / servers?

I just ran into an issue because there's files not on bjc.EECS but thats where the normal URLs point. (I 'fixed' it by pointing to CS10..)

— Reply to this email directly or view it on GitHub https://github.com/beautyjoy/bjc-r/issues/180.