This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

jquery namespaces

By: a guest on Jan 26th, 2011  |  syntax: JavaScript  |  size: 0.56 KB  |  views: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // register namespace
  2. var codeho = codeho || {};
  3. codeho.global = codeho.global || {};
  4.  
  5. // some global variables
  6. codeho.global.register_or_signin = null;
  7.  
  8. //init
  9. codeho.global.init = function() {
  10.        
  11.     codeho.global.load_welcome_text();
  12.     codeho.global.click_listeners();
  13. }
  14.  
  15. //functions
  16. codeho.global.load_welcome_text = function() {
  17.     //display website welcome message for first time visitors...
  18. }
  19.  
  20. codeho.global.click_listeners = function() {
  21.    //all the click listeners go in here
  22. }
  23.  
  24. $(document).ready(function() {
  25.         codeho.global.init();
  26. });
clone this paste RAW Paste Data