User:Najevi/monaco.js

$(function {     $("div .vskonlineservers").append(" return to this ");      $("div.vskonlineservers").css("background-color","grey");     $(".vskonlineservers").append(" or even this ");    } ); /* $(document).ready(function {     $("div .vskonlineservers").append(" debug this ");      $("div.vskonlineservers").css("background-color","red");   } );

importScriptPage('Scripts/vskonlineservers.js', 'test-najevi'); //importScriptPage('scripts/vskonlineservers.js'); function vskonlineservers { $("div .vskonlineservers").prepend(" this has got to work sooner or later! "); //$(".vskonlineservers").css("background-color":"red","color":"red"); $(".vskonlineservers").css("background-color":"yellow"); } $( vskonlineservers );

function xyzzy { $("div .xyzzy").prepend(" this has got to work sooner or later! "); //$(".xyzzy").css("background-color":"red","color":"red"); $(".xyzzy").css("background-color":"yellow"); } $( xyzzy);

// Simply insert HTML at any DIV tag with a prescribed class $(".simpleGadget").prepend(" Sentence before (via monaco.js). Paragraph after. ");

// ==== WIP above ====

/* Configure ShowHide buttons for collapsible page content var ShowHideConfig = { brackets: '', autoCollapse: 2, userLang: false, en: { show: "more", hide: "less", showAll: "expand all", hideAll: "collapse all" } };

var ShowHideConfig = { };

/** quickly switch in whichever javascript I want to test **/ importScriptPage('ShowHide2/code.js', 'dev'); /* importScriptPage('ShowHide/code.js', 'dev'); importScriptPage('ShowHide2/code.js', 'dev'); importScriptPage('ShowHide usage/jQ-Dantman.js', 'test-najevi'); importScriptPage('ShowHide usage/jQ-najevi.js', 'test-najevi'); importScriptPage('ShowHide usage/yui-rappelz.js', 'test-najevi'); importScriptPage('ShowHide usage/yui-wikipedia.js', 'test-najevi'); importScriptPage('ShowHide usage/yui-cizagna.js', 'test-najevi');

/* Verified versions (derivatives of Dan's code)

1. removes square brackets from code for buttons but adds square brackets to the default strings - i.e. no net change to button appearance http://test-najevi.wikia.com/index.php?title=ShowHide_usage/jQ-najevi.js&oldid=3861 importScriptPage('ShowHide usage/jQ-najevi-v1.js', 'test-najevi');

2. prepend the button span element within a NavHead container to grossly simplify float:right styling via CSS alone http://test-najevi.wikia.com/wiki/ShowHide_usage/jQ-najevi-v2.js importScriptPage('ShowHide usage/jQ-najevi-v2.js', 'test-najevi');

3. derived from v1 (v2 was discarded) Makes use of div.NavToggle as container for the Show/Hide button and also div.NavClear to   permit the user to specify any  alignment of the toggle button independent of the heading alignment. http://test-najevi.wikia.com/wiki/ShowHide_usage/jQ-najevi-v3.js importScriptPage('ShowHide usage/jQ-najevi-v3.js', 'test-najevi');