Closed djplaner closed 4 years ago
What might the contentInterface method look like?
Get the parameters and other page details into an object, including
- editModeOn - T|F
- tweak_bb - current object
- contentInterface - jQuery object ??
- wordDoc - jQuery object
- params
- TERM, YEAR, PERIOD
Make modifications to the study guide HTML. All the current cards, readings etc.
Currently adding the accordions
model = new ciModel();
view = new ciView();
view.transformContent( );
view.finaliseInterface( );
view.setUpEdit();
Actually better to separate out these concerns into separate views?
Would enable factory classes for each task and then allow mixing and matching of various different approaches.
Though perhaps the jQuery reliance would move into the view, rather than in the HTML tweak.
model = new ciModel();
contentView = new ciContentView( model );
contentView.view();
interfaceView = new ciInterfaceView( model );
interfaceView.view();
tweakView = new tweakView( model);
tweakView.view();
This would need to eventually be improved. e.g. strategy factory or some such.
Move the steps of reading the HTML and transforming it into models. Perhaps into a model/view type separation.
Controller
Model
View
There are actually three parts of the view