This file contains 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
<div> | |
<h1>Tweetbox</h1> | |
<form id="my-tweetbox"> | |
<p><textarea name="tweet">Write your tweet...</textarea></p> | |
<p><input type="submit" name="submit" value="Tweet!" /></p> | |
</form> | |
</div> | |
<div> | |
<h1>County Tweetbox</h1> |
This file contains 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
<a href="javascript:foo()">foo</a> | |
<script> | |
function foo() { | |
function allDone () { | |
return 'sweet, declaration at the beginning.' | |
} | |
'set a break here'; | |
'check out the scope variables'; |
This file contains 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 getQuery(s) { | |
var query = {}, i = s.indexOf('?'); | |
if (i != -1) { | |
s.substr(i+1).replace(/\+/g, ' ').replace(/([^&;=]+)=?([^&;]*)/g, function (m, k, v) { | |
query[decodeURIComponent(k)] = decodeURIComponent(v); | |
}); | |
} | |
return query; | |
} | |
//_GET = getQuery(location.href); |
NewerOlder