Skip to content

Instantly share code, notes, and snippets.

View mrkacan's full-sized avatar
🏠
Working from home

Emre Kaçan mrkacan

🏠
Working from home
View GitHub Profile
@mrkacan
mrkacan / escapeShortcustListener.js
Created April 20, 2018 07:24
Javascript escape shortcuts listener
window.addEventListener('keydown', (keyboardEvent) => {
if ((keyboardEvent.key === "Escape" || keyboardEvent.key === "Esc")) {
//Do something...
}
});
@mrkacan
mrkacan / dotNetMvcIOSClickRenderProblem.js
Created April 20, 2018 07:15
C# MVC Iphone click button render problem solved (.NET MVC)
function onClickBuyButton() {
function reClick(){
let asd = setTimeout(function () {
$('.buyButton').click();
lock = false;
}, 200);
return true;
}
if ($('#termsofservice').is(':checked')) {
if (!lock) {