This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
var $inputs = $("input"); //left as generic 'input' to acct for html5y types. | |
$inputs.each(function () { | |
if (this.value == '') { | |
this.value = sessionStorage["autosave-"+this.id]; | |
} | |
}) | |
$.fn.autosave = function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab smarttab | |
set number | |
set nofoldenable | |
set showmatch | |
set hlsearch | |
set vb | |
set smartindent | |
set nocompatible | |
set backspace=indent,eol,start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Lets hope you never have to do this, but if you're in an iframe that needs to use jQuery, | |
and you don't want to load the file a separate time in the iframe, this will let you use | |
the parent page's copy of jQuery, while also giving you the correct scope for selectors | |
to work as expected. | |
This version is SOL if you want to still be able to set a sub-scope from the iframe. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:document.getElementById('ctl00_contentBody_btnVote').addEventListener('click', function(e) { document.cookie = 'Lots2Give_Votes=; expires=Thu, 01-Jan-70 00:00:01 GMT;'; if(window.voteCount==undefined){ window.voteCount=1; document.getElementById('info').getElementsByTagName("p")[2].getElementsByTagName("span")[0].innerHTML="Vote <i>unlimited</i> times per day!<br><span id='superCount' style='font-weight: bold; font-size: 12px; color:blue;'>You have voted 1 time.</span>"; } else { window.voteCount++;} document.getElementById('ctl00_contentBody_lblVoteMessage').innerHTML="Voting...";document.getElementById('superCount').innerHTML="You have voted "+window.voteCount+" times. Nice!";}, false) |
NewerOlder