Created
October 29, 2012 07:26
-
-
Save cuixiping/3972121 to your computer and use it in GitHub Desktop.
webdings and wingdings preivew
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
<h1>webdings and wingdings preivew</h1> | |
<script> | |
var arr=[],s,fs=["webdings","wingdings","wingdings 2","wingdings 3"]; | |
arr['&'.charCodeAt(0)-33] = '&'; | |
arr['<'.charCodeAt(0)-33] = '<'; | |
arr['>'.charCodeAt(0)-33] = '>'; | |
for (var i=33; i<127; i++){ | |
s = arr[i-33] || String.fromCharCode(i); | |
arr[i-33] = '<span title="'+s+'\n'+i+'">'+s+'</span>'; | |
} | |
s = arr.join(''); | |
arr=['<div style="font-size:24pt;color:green;">'+s+'</div>']; | |
for(var i=0; i<fs.length; i++){ | |
arr[i+1]='<h2>'+fs[i]+'</h2><div style="font-family:\''+fs[i] | |
+'\';font-size:24pt;color:green;">'+s+'</div>'; | |
} | |
document.writeln(arr.join('')); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment