Skip to content

Instantly share code, notes, and snippets.

View egyjs's full-sized avatar
:shipit:
the perfect man for the job

AbdulRahman El-zahaby egyjs

:shipit:
the perfect man for the job
View GitHub Profile
@egyjs
egyjs / shorte.st.html
Created October 31, 2017 19:48
shorte.st api javascript
<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,
@egyjs
egyjs / console.log.js
Created August 9, 2017 07:43
get all console.log in div
$("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);