User:JustLeafy/wikia.js

// @author: w:c:dev:User:Original Authority // @staff: Reject if this note is still here and is submitted. $('#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': buttoncolor,    'font-style': 'italic' }); $('#btnClear').css({   'float': 'right' });