Skip to content

Instantly share code, notes, and snippets.

@sogimu
Created February 19, 2014 15:13
Show Gist options
  • Select an option

  • Save sogimu/9094036 to your computer and use it in GitHub Desktop.

Select an option

Save sogimu/9094036 to your computer and use it in GitHub Desktop.
<?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