[pypy-svn] r29476 - in pypy/dist/pypy/translator/js: demo/jsdemo/templates modules tools
ericvrp at codespeak.net
ericvrp at codespeak.net
Thu Jun 29 10:46:14 CEST 2006
Author: ericvrp
Date: Thu Jun 29 10:46:13 2006
New Revision: 29476
Modified:
pypy/dist/pypy/translator/js/demo/jsdemo/templates/bnb.kid
pypy/dist/pypy/translator/js/demo/jsdemo/templates/main.kid
pypy/dist/pypy/translator/js/demo/jsdemo/templates/xmlhttp.kid
pypy/dist/pypy/translator/js/modules/dom.py
pypy/dist/pypy/translator/js/tools/start_bnb.py
Log:
Remove scrollbar by using removeChild to remove the genjsinfo div
Modified: pypy/dist/pypy/translator/js/demo/jsdemo/templates/bnb.kid
==============================================================================
--- pypy/dist/pypy/translator/js/demo/jsdemo/templates/bnb.kid (original)
+++ pypy/dist/pypy/translator/js/demo/jsdemo/templates/bnb.kid Thu Jun 29 10:46:13 2006
@@ -22,10 +22,12 @@
</script>
</head>
<body onload="${onload}()">
- <p>This is a test!</p><br/>
- <p>Code:</p><br/>
- <pre>
- ${code}
- </pre>
+ <div id="genjsinfo">
+ <p>This is a test!</p><br/>
+ <p>Code:</p><br/>
+ <pre>
+ ${code}
+ </pre>
+ </div>
</body>
</html>
Modified: pypy/dist/pypy/translator/js/demo/jsdemo/templates/main.kid
==============================================================================
--- pypy/dist/pypy/translator/js/demo/jsdemo/templates/main.kid (original)
+++ pypy/dist/pypy/translator/js/demo/jsdemo/templates/main.kid Thu Jun 29 10:46:13 2006
@@ -21,10 +21,12 @@
</script>
</head>
<body onLoad="call_fun()">
- <p>This is a test!</p><br/>
- <p>Code:</p><br/>
- <pre>
- ${code}
- </pre>
+ <div id="genjsinfo">
+ <p>This is a test!</p><br/>
+ <p>Code:</p><br/>
+ <pre>
+ ${code}
+ </pre>
+ </div>
</body>
</html>
Modified: pypy/dist/pypy/translator/js/demo/jsdemo/templates/xmlhttp.kid
==============================================================================
--- pypy/dist/pypy/translator/js/demo/jsdemo/templates/xmlhttp.kid (original)
+++ pypy/dist/pypy/translator/js/demo/jsdemo/templates/xmlhttp.kid Thu Jun 29 10:46:13 2006
@@ -21,10 +21,12 @@
</script>
</head>
<body onLoad="call_fun()">
- <p>This is a test!</p><br/>
- <p>Code:</p><br/>
- <pre>
- ${code}
- </pre>
+ <div id="genjsinfo">
+ <p>This is a test!</p><br/>
+ <p>Code:</p><br/>
+ <pre>
+ ${code}
+ </pre>
+ </div>
</body>
</html>
Modified: pypy/dist/pypy/translator/js/modules/dom.py
==============================================================================
--- pypy/dist/pypy/translator/js/modules/dom.py (original)
+++ pypy/dist/pypy/translator/js/modules/dom.py Thu Jun 29 10:46:13 2006
@@ -77,6 +77,10 @@
def appendChild(self, elem):
self.subnodes[elem.id] = elem
+ def removeChild(self, elem):
+ #del self.subnodes[elem.id]
+ pass
+
class Form(Node):
pass
Modified: pypy/dist/pypy/translator/js/tools/start_bnb.py
==============================================================================
--- pypy/dist/pypy/translator/js/tools/start_bnb.py (original)
+++ pypy/dist/pypy/translator/js/tools/start_bnb.py Thu Jun 29 10:46:13 2006
@@ -213,12 +213,13 @@
#sc.revive()
def session_dispatcher(msgs):
- log("Something...")
+ #log("Something...")
BnbRootInstance.get_message(bnb_dispatcher)
def run_bnb():
def bnb():
- #get_document().
+ genjsinfo = get_document().getElementById("genjsinfo")
+ get_document().body.removeChild(genjsinfo)
createLoggingPane(True)
log("keys: <a>dd player, <r>emove player and <e><s><d><x> to walk around")
BnbRootInstance.initialize_session(session_dispatcher)
More information about the Pypy-commit
mailing list