Created
February 19, 2014 15:13
-
-
Save sogimu/9094036 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $my_module_title = _("my_module"); | |
| function my_moduleJS() { | |
| ?> | |
| // wiki = new WIKI("wiki_div"); | |
| function myModuleJS() | |
| { | |
| console.log("Spawing my_module..."); | |
| }; | |
| myModuleJS.prototype.AdjustGeometry = function(width, height, hend, vend) { | |
| /* | |
| This was rougher approach | |
| domAdjustGeometry(this.frame, width, height - (this.selector?this.selector.offsetHeight:0), true); | |
| */ | |
| // otherwise we are probably not on display | |
| } | |
| my_module = new myModuleJS(); | |
| <? | |
| return "my_module"; | |
| } | |
| function my_modulePage() { | |
| ?> | |
| <div id="my_module_div" class="my_module">Loading... my_module</div> | |
| <?}?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment