Open samreid opened 9 years ago
This is handled in afterRequirejsBuild.js, search for "htmlHeader =".
Recommended to move the HTML header text to chipper/build.json, where it can be loaded by brand.
Question for developer meeting: Should we move the HTML header text to chipper/build.json? The alternative is a hard-coded switch on all phet brand names ('phet', 'phet-io', 'adapted-from-phet').
Move it to the brand itself?
Move it to the brand's hash in chipper/build.json. Here's an example for 'phet-io', note the {0}
for filling in the current year.
{
...
"phet-io": {
"preload": [
"../sherpa/lib/jsondiffpatch-0.1.31.js",
"../together/js/together.js",
"../together/js/SimIFrameAPI.js",
"../together/js/togetherEvents.js",
"../together/js/datamite.js",
"../together/js/api/TogetherCommon.js"
],
"licenseKeys": [
"jsondiffpatch-0.1.31.js"
],
"htmlHeader": 'Copyright 2002-{0}, Regents of the University of Colorado ... '
}
What do we want the header to read if it's a non-phet brand?
8/25/15 dev meeting consensus: To proceed, we need @ariel-phet or @kathy-phet to tell us:
What should the copyright header read for non-phet brands? (e.g., "my-company")
Should it default to the 'phet' brand header, blank, something else?
Should the custom brand be able to specify its own html header?
Discuss at 8/27/15 interoperability meeting.
@kathy-phet is going to talk to the TTO people and get back to us about us.
@kathy-phet reviewed license things with Molly and we are in good shape. @kathy-phet will double check whether this a special case.
When building a simulation with a non-phet brand, the copyright header in the html reads like so: I built an "adapted-from-phet hooke's law":
For custom brands and non-phet brands, we should have different statements here.