Comments (1)
Would that save much? Every machine XML file refers in turn to ROM images (and usually 1 or more disk images) that must be preloaded before the machine can be allowed to start. How are you envisioning those resources being stored and supplied to embedXXX()?
The XML serves two purposes: defining component appearance and defining component initialization properties. Using an XSL file, each XML component tag is transformed into a set of HTML tags -- usually just DIVs -- that collectively describe the machine's appearance. For each component, one of the DIVs is usually what I consider the "object" DIV -- ie, a DIV with a class suffix "-object" and a data-value attribute containing all the parameters used to initialize an object of the appropriate class.
See the static init() function in any of the component class files; they're all very similar. The init() function calls getComponentParms() to extract the data-value attributes from the object DIV, passes them to the component's constructor, and then calls bindComponentControls() with the new object and the DIV. That function looks through all the DIV's child elements that have a "-binding" class and calls the object's setBinding() function. At a minimum, setBinding() will simply record the HTML control (button, list, or whatever) and add whatever onclick, onchange, etc, handlers it needs.
from pcjs.v1.
Related Issues (20)
- Simplify embed/weblib code with Promise and async/await HOT 1
- 386 should force reserved CR0 bits set HOT 1
- Reading DMF floppies within Win95 is slow HOT 2
- Convert the Readme into a proper wiki
- Slow boot version of Windows 1.03 does not display properly
- OS/2 1.0 serial port driver do not work
- Adjust green mono color value? HOT 13
- SELECT don't work HOT 1
- Windows 95 setup no longer works
- PC/XT machines can't read 720K floppies HOT 1
- WDEB386 from Windows 3.1 don't work
- Non-DOS diskette images cannot be saved HOT 9
- Setup fails cloning disk images HOT 3
- Feature: Re-importing of Hard Drive img HOT 1
- Fullscreen has weird behavior on Chrome HOT 2
- Electron Support?
- A reference file has expired or been deleted HOT 6
- i can't load spacewar.bas in Challenger 1P
- Disk image repos missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcjs.v1.