User:Original Authority/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:de.trollocool:VanguardTools.js', // Not Vanguard, but very useful links to have.        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:AjaxBatchDelete/code.2.js',        'u:dev:UsefulDropdown/code.js',        'u:dev:AbuseLogRC.js',        'u:dev:NotesModule/code.js'    ] });

$('#WikiaRail').append('Notes:  Save Clear! '); for (var i = 0; i < localStorage.length; i++){ if(localStorage.key(i).indexOf("note") !== -1){ $('#notes').append('' + localStorage.getItem(localStorage.key(i)) + ''); }  }  var buttoncolor = $('#ca-edit').css('color').toString; var noteCount = 1; $("#btnSave").on("click", function{    var noteVal = $('#txtNote').val;     if(noteVal.trim !== ""){       localStorage.setItem("note" + noteCount, noteVal);       var notevaluehtml = $('' + noteVal + '').css({'background': wgSassParams["color-buttons"],'padding': '10px', 'margin': '5px','color': buttoncolor, 'text-align': 'center','font-size': '17px','font-style': 'italic','border': '1px solid'});       $(notevaluehtml).hide.appendTo("#notes").fadeIn(1000);       noteCount++;     }    $("#btnClear").on("click", function{ localStorage.clear; $('.actualnotes').fadeOut(1000) });  }); $('.headernote').css({    'margin': '0 !important',    'text-align': 'center',    'font-size': '25px !important',    'font-style': 'italic', }); $('.actualnotes li').css({   'background': wgSassParams["color-buttons"],    'padding': '10px',    'margin': '5px',    'text-align': 'center',    'font-size': '17px',    'font-style': 'italic',    'border': '1px solid' }); $('#txtNote').css({   'background': 'transparent',    'border': 'none',    'text-align': 'center',    'margin-left': '20%',    'float': 'center',    'color': 'white',    'font-style': 'italic' }); $('#btnClear').css({   'float': 'right' });