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
<input type="text" maxlength="512" id="searchTxt" class="searchField"/> | |
<input type="button" value="Get Value" onclick="cut(searchTxt.value)"> | |
<script> | |
function cut(myurl){ | |
$.ajax({ | |
url:"https://api.shorte.st/v1/data/url", | |
type:"put", | |
async:true, | |
crossDomain:true, |
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
$("body").append('<ul style="background: #000; border: 3px groove #ccc; color: #ccc; display: block; width: 99%; height: 60px; overflow: scroll; margin: 0 auto; position: fixed; bottom: 0;" id="EL-console"></ul>'); | |
function htmlEncode(value){ | |
return $('<ul/>').text(value).html(); | |
} | |
var former = console.log; | |
console.log = function(msg){ | |
former(msg); |
NewerOlder