Skip to content

Instantly share code, notes, and snippets.

@dnutiu
Last active June 12, 2016 19:48
Show Gist options
  • Select an option

  • Save dnutiu/60da0875c57ca093ca7f to your computer and use it in GitHub Desktop.

Select an option

Save dnutiu/60da0875c57ca093ca7f to your computer and use it in GitHub Desktop.
HTML START
width: 100px;
height: 100px;
background-color: red;
position: absolute;
top:0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
.selectDisable {-webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; }
.selectEnable { -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -o-user-select: text; user-select: text; }
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<meta name="author" content="Nuțiu Denis">
<meta name="description" content="">
<meta name="keywords" content="">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
</head>
<body>
</body>
</html>
var key = e.keyCode || e.which;
##Js
(function() {
})();
##Jquery
$(document).ready(function() {
});
##Jquery2
$(function(){
// jQuery methods go here...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment