Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // HTML
- <script type="text/javascript" src="system/scripts/mootools-core.js"></script>
- <script type="text/javascript" src="system/scripts/mootools-more.js"></script>
- <script type="text/javascript" src="system/scripts/jquery-1.7.1.min.js"></script>
- <script type="text/javascript" src="system/scripts/jquery.noConflict.js"></script>
- <script type="text/javascript" src="system/scripts/Contaolove.js"></script>
- // jquery.noConflict.js
- jQuery.noConflict();
- // Contaolove.js:
- // jQuery in noConflict mode starts here
- (function($) {
- /**
- * Contaolove object
- */
- var Contaolove = {
- /**
- * Contaolove is initialized?
- * @var boolean
- */
- initialized: false,
- /**
- * File path to HTML folder
- * @var string
- */
- strFilePath: 'system/modules/contaolove/html/',
- /**
- * Initialize Contaolove
- */
- __construct: function()
- {
- this.initialized = true;
- // Prepare plugins list
- this.preparePlugins(this.strFilePath);
- //this.showBox();
- $('.testc').hide();
- },
- /**
- * Test
- */
- showBox: function()
- {
- alert('box');
- },
- /**
- * Define plugins list and load them
- * @param string
- */
- preparePlugins: function(strPath)
- {
- $.plugins({ path: strPath, plugins:
- [
- { id:'browser', js: 'j/CvBrowser.js' },
- { id:'chat', js: 'j/CvChat.js', css: 'c/chat.css' },
- { id:'language', js: 'j/CvLanguage.js' },
- { id:'ui', js: 'j/CvUserInterface.js' },
- ]
- });
- },
- /**
- * Load a plugin from plugin list
- * @param string
- * @param string
- */
- loadPlugin: function(strPluginId, strCallback)
- {
- $.requires(strPluginId, strCallback);
- },
- /**
- * Include an script into header or body (blnForce)
- * @param string
- * @param boolean
- * @param string
- * @return boolean
- */
- includeFile: function(strFile, blnForce, strCallback)
- {
- $.include(strFile, blnForce, strCallback);
- return ($.included(strFile)) ? true : false;
- }
- };
- /**
- * We initialize Contaolove object
- */
- if (!Contaolove.initialized)
- {
- Contaolove.__construct();
- }
- // jQuery in noConflict mode ends here
- })(jQuery);
Add Comment
Please, Sign In to add comment