jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [templates/] [calm/] [star-light/] [star-email.htc] - Blame information for rev 2

 

Line No. Rev Author Line
11simandl<?xml version="1.0" encoding="ISO-8859-1"?>
2<!--
3 star-light - version 1.0.2 (2005/06/06)
4 Copyright 2005, Dean Edwards
5 License: http://creativecommons.org/licenses/LGPL/2.1/
6-->
7<public:component xmlns:public="urn:HTMLComponent" lightweight="true">
8<public:attach event="ondocumentready" handler="init"/>
9<script type="text/javascript">
10//<![CDATA[
11 
12/* copied from thunderbird's nice plain text style */
13 
14var SMILIES_DIR = "smilies/"; // this should be an absolute path on a live server
15 
16var INDENT1 = "blue";
17var INDENT2 = "maroon";
18var INDENT3 = "teal";
19var INDENT4 = "purple";
20 
21function init() {
22 // default text colour
23 style.color = "black";
24 
25 // urls/email
26 urls = true;
27 email = true;
28 
29 // text styling
30 parser.add(/\b_[^_\n]+_\b/, "text-decoration:underline");
31 parser.add(/\/[^\/\n]+\//, "font-style:italic");
32 parser.add(/\*[^*\n]+\*/, "font-weight:bold");
33 
34 // smilies
35 parser.add(/:-?\)/, "vertical-align:top", "<img src='" + SMILIES_DIR + "icon_smile.gif' align='top'/>");
36 parser.add(/:-?\(/, "vertical-align:top", "<img src='" + SMILIES_DIR + "icon_sad.gif' align='top'/>");
37 parser.add(/;-\)/, "vertical-align:top", "<img src='" + SMILIES_DIR + "icon_wink.gif'/>");
38 
39 // indentation
40 var INDENT = "<b style='border-left:2px solid %1;width:1em;padding-top:1px'>&nbsp;</b>";
41 INDENT1 = "\n" + INDENT.replace(/%1/, INDENT1);
42 INDENT2 = INDENT1 + INDENT.replace(/%1/, INDENT2);
43 INDENT3 = INDENT2 + INDENT.replace(/%1/, INDENT3);
44 INDENT4 = INDENT3 + INDENT.replace(/%1/, INDENT4);
45 parser.add(/\n>>>>/, "", INDENT4);
46 parser.add(/\n>>>/, "", INDENT3);
47 parser.add(/\n>>/, "", INDENT2);
48 parser.add(/\n>/, "", INDENT1);
49};
50 
51//]]>
52</script>
53</public:component>

Powered by WebSVN 2.2.1