1/******************************************************** 2 * 3 * Custom Javascript code for AppStrap Bootstrap theme 4 * Written by Themelize.me (http://themelize.me) 5 * 6 *******************************************************/ 7(function($) { 8 $.extend($.fn, { 9 10 // =============================================================== 11 // AppStrap Javascript API 12 // =============================================================== 13 // @callbacks: 14 // 1. themePreload: Before any AppStrap Javascript has run 15 // 2. themePrePlugins: Before any AppStrap Javascript has run 16 // 3. themeLoaded: After the theme has loaded everything 17 // 18 // arguments: 19 // context = the dom in context 20 // refresh = true if ajax content, false if default page load 21 // =============================================================== 22 themePreload: function(context, refresh) { 23 //alert('themePreload'); 24 }, 25 themePrePlugins: function(context, refresh) { 26 //alert('themePrePlugins'); 27 }, 28 themeLoaded: function(context, refresh) { 29 //alert('themeLoaded'); 30 if (!refresh) { 31 // Use any standard jQuery code to alter page: 32 //$('.header-brand-text').html('test 1-2-3'); 33 } 34 }, 35 36 // =============================================================== 37 // @group: Override default plugins OR add new plugins 38 // =============================================================== 39 themePluginsExtras: { 40 // Plugin functions 41 // name pattern themePluginPLUGINNAME 42 // items: PLUGINNAMEs 43 // 44 // Used to override the themePlugins plugins list in script.js 45 // To see all default plugin functions use: 46 // var plugins = $.fn.themePluginsLoad(false); 47 // console.log(plugins); 48 // 49 // OR to define your own plugins 50 // ---------------------------------------------------------------- 51 //themePluginFakeLoader: function(context) { 52 // override default themePluginFakeLoader function 53 //}, 54 55 //themePluginMyPlugin: function(context) { 56 // My custom plugin load 57 //var $triggerElements = context.find('[data-toggle=SOMETHING]'); 58 //if ($triggerElements.length > 0) { 59 // var themePluginMyPluginInit = function() { 60 // // Init the plugin, called when Javascript & CSS are loaded 61 // }; 62 // $document.themeLoadPlugin(["PLUGIN-JAVSCRIPT-COMMA-SEPARATED"], ["PLUGIN-CSS-COMMA-SEPARATED"], themePluginMyPluginInit); 63 //} 64 //} 65 }, // end of themePluginsExtras object 66 }); 67})(jQuery); 68 69
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.