You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.5 KiB
70 lines
2.5 KiB
/********************************************************
|
|
*
|
|
* Custom Javascript code for AppStrap Bootstrap theme
|
|
* Written by Themelize.me (http://themelize.me)
|
|
*
|
|
*******************************************************/
|
|
(function($) {
|
|
$.extend($.fn, {
|
|
|
|
// ===============================================================
|
|
// AppStrap Javascript API
|
|
// ===============================================================
|
|
// @callbacks:
|
|
// 1. themePreload: Before any AppStrap Javascript has run
|
|
// 2. themePrePlugins: Before any AppStrap Javascript has run
|
|
// 3. themeLoaded: After the theme has loaded everything
|
|
//
|
|
// arguments:
|
|
// context = the dom in context
|
|
// refresh = true if ajax content, false if default page load
|
|
// ===============================================================
|
|
themePreload: function(context, refresh) {
|
|
//alert('themePreload');
|
|
},
|
|
themePrePlugins: function(context, refresh) {
|
|
//alert('themePrePlugins');
|
|
},
|
|
themeLoaded: function(context, refresh) {
|
|
//alert('themeLoaded');
|
|
if (!refresh) {
|
|
// Use any standard jQuery code to alter page:
|
|
//$('.header-brand-text').html('test 1-2-3');
|
|
}
|
|
},
|
|
|
|
// ===============================================================
|
|
// @group: Override default plugins OR add new plugins
|
|
// ===============================================================
|
|
themePluginsExtras: {
|
|
// Plugin functions
|
|
// name pattern themePluginPLUGINNAME
|
|
// items: PLUGINNAMEs
|
|
//
|
|
// Used to override the themePlugins plugins list in script.js
|
|
// To see all default plugin functions use:
|
|
// var plugins = $.fn.themePluginsLoad(false);
|
|
// console.log(plugins);
|
|
//
|
|
// OR to define your own plugins
|
|
// ----------------------------------------------------------------
|
|
//themePluginFakeLoader: function(context) {
|
|
// override default themePluginFakeLoader function
|
|
//},
|
|
|
|
//themePluginMyPlugin: function(context) {
|
|
// My custom plugin load
|
|
//var $triggerElements = context.find('[data-toggle=SOMETHING]');
|
|
//if ($triggerElements.length > 0) {
|
|
// var themePluginMyPluginInit = function() {
|
|
// // Init the plugin, called when Javascript & CSS are loaded
|
|
// };
|
|
// $document.themeLoadPlugin(["PLUGIN-JAVSCRIPT-COMMA-SEPARATED"], ["PLUGIN-CSS-COMMA-SEPARATED"], themePluginMyPluginInit);
|
|
//}
|
|
//}
|
|
}, // end of themePluginsExtras object
|
|
});
|
|
})(jQuery);
|
|
|
|
|