This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="station" content="width=device-width, initial-scale=1"> | |
<style> | |
/* width */ | |
::-webkit-scrollbar { | |
width: 8px; | |
} |
This file contains hidden or 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
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){ |
This file contains hidden or 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
/*! | |
* 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 |