Skip to content

Instantly share code, notes, and snippets.

@jampow
Created November 14, 2012 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jampow/4073755 to your computer and use it in GitHub Desktop.
Save jampow/4073755 to your computer and use it in GitHub Desktop.
special character dictionary
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>special character dictionary - by Jam-Pow!</title>
<link rel="StyleSheet" href="style.css" type="text/css" media="screen" />
<script type="text/javascript" src="script.js" charset="utf-8"></script>
</head>
<body>
<!-- http://cssdeck.com/labs/full/sxnoqvcr/0 -->
</body>
</html>
for(i=0;i<=5000;i++){
document.write(item(i));
}
function item(id){
s = "<div class=\"item\">";
s += "<span class=\"code\">#"+id+"</span>"
s += "&#"+id+";";
s += "</div>";
return s;
}
body {font-size: 50px;}
.item {
float: left;
padding: 10px;
width: 55px;
heigth: 55px;
position: relative;
}
.code {
display: none;
font-size: 14px;
background-color: #ff0;
}
.item:hover .code {
position: absolute;
display: inline-block;
padding: 5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment