User:Locke/common.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(revised Tabs script that should work with tabs that are added to the DOM after page load (e.g. edit preview, mobile))
m (add some logging so I know if the script is even running)
Line 28: Line 28:
   --for example, data-tab-selection="April" in selector 0 plus data-tab-selection="1st" in selector 1 will match data-tab-content="April 1st"
   --for example, data-tab-selection="April" in selector 0 plus data-tab-selection="1st" in selector 1 will match data-tab-content="April 1st"
*/
*/
 
console.log('outside function');
$( function() {
$( function() {
console.log('inside function');
var tabstate = {};
var tabstate = {};
var autoTargetCtr = 0;
var autoTargetCtr = 0;