Skip to content

Instantly share code, notes, and snippets.

View iamshareque's full-sized avatar

Shareque iamshareque

View GitHub Profile
@iamshareque
iamshareque / scrollbar touch screen devices
Created June 1, 2020 12:54
scrollbar touch screen devices
<!DOCTYPE html>
<html>
<head>
<meta name="station" content="width=device-width, initial-scale=1">
<style>
/* width */
::-webkit-scrollbar {
width: 8px;
}
1) Avoid using let for variable declaration use var
let x=10; or const x=10;
var x=10; (compatibale)
2) Avoid using default value for funcation parameter
function add(a,b=20){
}
//instead use this way
funcation add(a,b){
@iamshareque
iamshareque / jquery.pjax.js
Created March 12, 2021 07:25 — forked from oh-ren/jquery.pjax.js
pjax hacked, so it works with jQuery 3.0
/*!
* Copyright 2012, Chris Wanstrath
* Released under the MIT License
* https://github.com/defunkt/jquery-pjax
*/
(function($){
// When called on a container with a selector, fetches the href with
// ajax into the container or with the data-pjax attribute on the link