Skip to content

Instantly share code, notes, and snippets.

View bilalucar's full-sized avatar
💭
I may be slow to respond.

Bilal Ucar bilalucar

💭
I may be slow to respond.
View GitHub Profile
@bilalucar
bilalucar / okayNav
Created August 14, 2017 08:31
okayNav
var navigation = $('#nav-main').okayNav();
@bilalucar
bilalucar / Crop and Resize Images With This Simple jQuery Plugin
Created July 25, 2017 14:38
Crop and Resize Images With This Simple jQuery Plugin
$('#image').cropper({
aspectRatio: 16 / 9,
crop: function(e) {
// Output the result data for cropping image.
console.log(e.x);
console.log(e.y);
console.log(e.width);
console.log(e.height);
console.log(e.rotate);
console.log(e.scaleX);
@bilalucar
bilalucar / TypeIt
Created July 21, 2017 14:50
TypeIt
$('.type-it').typeIt({
strings: ['This is my string!']
});
@bilalucar
bilalucar / Don’t Go script
Created July 6, 2017 10:08
Don’t Go script
ontGo({
title: 'Alternative title text right here!',
faviconSrc: 'path/to/Alternative/favicon.ico',
timeout: 5000 //5 seconds
});
@bilalucar
bilalucar / MediumLightbox
Created July 11, 2017 15:43
MediumLightbox
MediumLightbox('figure.zoom-effect');
@bilalucar
bilalucar / Push.js
Created July 5, 2017 09:37
Push.js
Push.create("Hello world!", {
body: "How's it hangin'?",
icon: 'icon.png',
timeout: 4000,
onClick: function () {
window.focus();
this.close();
}
});
@bilalucar
bilalucar / justContext.js
Created June 25, 2017 04:30
justContext.js
<ul class="jctx jctx-id-foo jctx-black jctx-black-shadow">
<li data-action="cut">Cut</li>
<li data-action="copy">Copy</li>
<li data-action="paste">Paste</li>
<hr>
<li data-action="new_pkg">New package</li>
<li data-action="new_cls">New class</li>
<li data-action="new_intf" class="disabled">New interface
(a disabled entry)</li>
</ul>
@bilalucar
bilalucar / İcoFont
Created June 20, 2017 18:55
İcoFont
i class="icofont icofont-castle"></i>
@bilalucar
bilalucar / Medium Menu -11
Created June 7, 2017 12:46
Medium Menu -11
function onShareClick() {
window.open(`https://twitter.com/intent/tweet?text=${this.shareTxt}`);
this.remove();
document.getSelection().removeAllRanges()
}
@bilalucar
bilalucar / Medium Menu -10
Created June 7, 2017 12:45
Medium Menu -10
var shareBtn = shareBox.querySelector('button');
shareBtn['shareTxt'] = txt;
shareBtn.addEventListener('mousedown', onShareClick, true);