source:
companies/serpro/workflow/js/fckeditor/editor/dialog/fck_specialchar.html
@
903
Revision 903, 4.3 KB checked in by niltonneto, 15 years ago (diff) |
---|
Line | |
---|---|
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
2 | <!-- |
3 | * FCKeditor - The text editor for Internet - http://www.fckeditor.net |
4 | * Copyright (C) 2003-2007 Frederico Caldeira Knabben |
5 | * |
6 | * == BEGIN LICENSE == |
7 | * |
8 | * Licensed under the terms of any of the following licenses at your |
9 | * choice: |
10 | * |
11 | * - GNU General Public License Version 2 or later (the "GPL") |
12 | * http://www.gnu.org/licenses/gpl.html |
13 | * |
14 | * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
15 | * http://www.gnu.org/licenses/lgpl.html |
16 | * |
17 | * - Mozilla Public License Version 1.1 or later (the "MPL") |
18 | * http://www.mozilla.org/MPL/MPL-1.1.html |
19 | * |
20 | * == END LICENSE == |
21 | * |
22 | * Special Chars Selector dialog window. |
23 | --> |
24 | <html> |
25 | <head> |
26 | <meta name="robots" content="noindex, nofollow"> |
27 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
28 | <style type="text/css"> |
29 | .Hand |
30 | { |
31 | cursor: pointer ; |
32 | cursor: hand ; |
33 | } |
34 | .Sample { font-size: 24px; } |
35 | </style> |
36 | <script type="text/javascript"> |
37 | |
38 | var oEditor = window.parent.InnerDialogLoaded() ; |
39 | |
40 | var oSample ; |
41 | |
42 | function insertChar(charValue) |
43 | { |
44 | oEditor.FCK.InsertHtml( charValue || "" ) ; |
45 | window.parent.Cancel() ; |
46 | } |
47 | |
48 | function over(td) |
49 | { |
50 | oSample.innerHTML = td.innerHTML ; |
51 | td.className = 'LightBackground SpecialCharsOver Hand' ; |
52 | } |
53 | |
54 | function out(td) |
55 | { |
56 | oSample.innerHTML = " " ; |
57 | td.className = 'DarkBackground SpecialCharsOut Hand' ; |
58 | } |
59 | |
60 | function setDefaults() |
61 | { |
62 | // Gets the sample placeholder. |
63 | oSample = document.getElementById("SampleTD") ; |
64 | |
65 | // First of all, translates the dialog box texts. |
66 | oEditor.FCKLanguageManager.TranslatePage(document) ; |
67 | } |
68 | |
69 | </script> |
70 | </HEAD> |
71 | <BODY onload="setDefaults()" scroll="no"> |
72 | <table cellpadding="0" cellspacing="0" width="100%" height="100%"> |
73 | <tr> |
74 | <td width="100%"> |
75 | <table cellpadding="1" cellspacing="1" align="center" border="0" width="100%" height="100%"> |
76 | <script type="text/javascript"> |
77 | var aChars = ["!",""","#","$","%","&","\\'","(",")","*","+","-",".","/","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","{","|","}","~","€","‘","’","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","¬","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ü","ý","þ","ÿ","Œ","œ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"] ; |
78 | |
79 | var cols = 20 ; |
80 | |
81 | var i = 0 ; |
82 | while (i < aChars.length) |
83 | { |
84 | document.write("<TR>") ; |
85 | for(var j = 0 ; j < cols ; j++) |
86 | { |
87 | if (aChars[i]) |
88 | { |
89 | document.write('<TD width="1%" class="DarkBackground SpecialCharsOut Hand" align="center" onclick="insertChar(\'' + aChars[i].replace(/&/g, "&") + '\')" onmouseover="over(this)" onmouseout="out(this)">') ; |
90 | document.write(aChars[i]) ; |
91 | } |
92 | else |
93 | document.write("<TD class='DarkBackground SpecialCharsOut'> ") ; |
94 | document.write("<\/TD>") ; |
95 | i++ ; |
96 | } |
97 | document.write("<\/TR>") ; |
98 | } |
99 | </script> |
100 | </table> |
101 | </td> |
102 | <td nowrap> </td> |
103 | <td valign="top"> |
104 | <table width="40" cellpadding="0" cellspacing="0" border="0"> |
105 | <tr> |
106 | <td id="SampleTD" width="40" height="40" align="center" class="DarkBackground SpecialCharsOut Sample"> </td> |
107 | </tr> |
108 | </table> |
109 | </td> |
110 | </tr> |
111 | </table> |
112 | </BODY> |
113 | </HTML> |
Note: See TracBrowser
for help on using the repository browser.