Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Main = {
- diceBtn: null,
- clockBtn: null,
- wrapper: null,
- init: function(event) {
- Main.diceBtn = document.getElementById("icon-dice");
- Main.clockBtn = document.getElementById("icon-clock");
- Main.wrapper = document.getElementById("page-content-wrapper");
- Listener.add(Main.diceBtn,"click",Main.newDiceWindow);
- },
- newDiceWindow: function(){
- var diceWindow = new DiceApplication;
- Main.wrapper.appendChild(diceWindow.wrapper);
- diceWindow.hello();
- Listener.add(diceWindow.addBtn,"click",diceWindow.add);
- Listener.add(diceWindow.removeBtn,"click",diceWindow.remove);
- Listener.add(diceWindow.rollBtn,"click",diceWindow.roll);
- Listener.add(diceWindow.closeBtn,"click",diceWindow.close);
- }
- }
- Listener.add(window,"load",Main.init);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement