mirror of
https://github.com/moodle/moodle.git
synced 2025-01-23 00:28:57 +01:00
83 lines
3.5 KiB
HTML
83 lines
3.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
<html style="height:270px;">
|
||
<head>
|
||
<style type="text/css">
|
||
BODY {
|
||
background-color: buttonface;
|
||
}
|
||
|
||
</style>
|
||
<script type="text/javascript" src="popup.js"></script>
|
||
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
||
<!--
|
||
function Init() {
|
||
__dlg_init();
|
||
}
|
||
var chars = ["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","ƒ","„","…","†","‡","ˆ","\‰","Š","‹","Œ","‘","’","’","“","”","•","–","—","˜","™","š","›","œ","Ÿ","¡","¢","£","£","¤","¥","¦","§","¨","©","ª","«","¬","","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ü","ý","þ","ÿ"]
|
||
|
||
function tab(w,h) {
|
||
var strtab = ["<TABLE border='1' cellspacing='0' cellpadding='0' align='center' bordercolor='#dcdcdc' bgcolor='#C0C0C0'>"]
|
||
var k = 0;
|
||
for(var i = 0; i < w; i++) {
|
||
strtab[strtab.length] = "<TR>";
|
||
for(var j = 0; j < h; j++) {
|
||
strtab[strtab.length] = "<TD width='14' align='center' onClick='getchar(this)' onMouseOver='hover(this,true)' onMouseOut='hover(this,false)'>"+(chars[k]||'')+"</TD>";
|
||
k++;
|
||
}
|
||
strtab[strtab.length]="</TR>";
|
||
}
|
||
strtab[strtab.length] = "</TABLE>";
|
||
return strtab.join("\n");
|
||
}
|
||
|
||
function hover(obj,val) {
|
||
if (!obj.innerHTML) {
|
||
obj.style.cursor = "default";
|
||
return;
|
||
}
|
||
obj.style.border = val ? "1px solid black" : "1px solid #dcdcdc";
|
||
//obj.style.backgroundColor = val ? "black" : "#C0C0C0"
|
||
//obj.style.color = val ? "white" : "black";
|
||
}
|
||
function getchar(obj) {
|
||
if(!obj.innerHTML) return;
|
||
var sChar = obj.innerHTML || "";
|
||
__dlg_close(sChar);
|
||
return false;
|
||
}
|
||
function cancel() {
|
||
__dlg_close(null);
|
||
return false;
|
||
}
|
||
//-->
|
||
</SCRIPT>
|
||
<title>Insert Character</title>
|
||
</head>
|
||
<body onload="Init()">
|
||
<table class="dlg" cellpadding="0" cellspacing="2">
|
||
<tr><td><table width="100%"><tr><td nowrap>Choose Character</td><td valign="middle" width="100%"><hr width="100%"></td></tr></table></td></tr>
|
||
<tr>
|
||
<td>
|
||
<table border="0" align="center" cellpadding="5">
|
||
<tr valign="top">
|
||
<td>
|
||
|
||
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
||
<!--
|
||
document.write(tab(7,32))
|
||
//-->
|
||
</SCRIPT>
|
||
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<tr><td><table width="100%"><tr><td valign="middle" width="90%"><hr width="100%"></td></tr></table></td></tr>
|
||
<tr><td align="right">
|
||
<input type="button" value="Close" onclick="cancel()"></td></tr>
|
||
</table>
|
||
</body>
|
||
</body>
|
||
</html>
|