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 themePluginsCustom: function(context) { 40 // Plugin functions 41 // name pattern themePluginPLUGINNAME 42 // items: PLUGINNAMEs 43 // 44 // Used to override the themePluginsDefault plugins list in script.js 45 // To see all default plugin functions use: 46 // var plugins = $.fn.themePlugins(false); 47 // console.log(plugins); 48 // 49 // OR to define your own plugins 50 // ---------------------------------------------------------------- 51 //return { 52 // themePluginFakeLoader: function() { 53 // // override default themePluginFakeLoader function 54 // }, 55 // 56 // themePluginMyPlugin: function() { 57 // // My custom plugin load 58 // var $triggerElements = context.find('[data-toggle=SOMETHING]'); 59 // if ($triggerElements.length > 0) { 60 // var themePluginMyPluginInit = function() { 61 // // Init the plugin, called when Javascript & CSS are loaded 62 // }; 63 // $document.themeLoadPlugin(["PLUGIN-JAVSCRIPT-COMMA-SEPARATED"], ["PLUGIN-CSS-COMMA-SEPARATED"], themePluginMyPluginInit); 64 // } 65 // } 66 //}; // end of plugins object 67 }, 68 }); 69})(jQuery); 70 71
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.