pcjs/modules/c1pjs/templates
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeff Parsons 12b760f912 Changed the last embedPC() parameter from sStateFile to sParms, although for backward compatibility, if sParms is not a JSON object definition (ie, beginning with a brace), it continues to be treated as a state filename.
This change allows us to pass any number of additional properties to embedPC(), which in turn can override properties contained in the XML file; the only property overrides currently supported are 'state' (which overrides any 'state' property set in the XML's <computer> element) and 'automount' (which overrides any 'automount' property set in the XML's <fdc> element).  The goal is to make it easier to reuse XML machine definitions, by allowing commonly altered component attributes to be overridden.
2016-01-18 16:11:08 -08:00
..
components.css Restored analytics tracking, merged the apps menu into the machines menu, and updated the 404 page 2015-12-27 16:42:45 -08:00
components.xsl Changed the last embedPC() parameter from sStateFile to sParms, although for backward compatibility, if sParms is not a JSON object definition (ie, beginning with a brace), it continues to be treated as a state filename. 2016-01-18 16:11:08 -08:00
README.md my_modules is simply modules now 2014-11-11 08:19:48 -08:00

C1Pjs Templates

Template folders contain a variety of XML and HTML templates and supporting files, including:

  • DTD files (Document Type Definitions)
  • XSD files (XML schemas -- eventually)
  • XSL files (XML stylesheets)
  • CSS files (stylesheets that the XSL files rely upon)
  • HTML files (HTML fragments used to generate part or all of a web page)

components.xsl transforms all the elements of a machine XML file into an HTML fragment that includes a series of DIV tags with corresponding id and data-value attributes that allow our JavaScript components to bind themselves to visual elements (eg, virtual screen, virtual keyboard, control panel) on a web page.