Subversion Repositories wimsdev

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
<head>
2
<title>DynAPI Compressor</title>
3
<script language="javascript" src="compressor.js"></script>
4
<script language="javascript" src="compressor.init.js"></script>
5
<script language="vbscript" src="fsobject.vbs"></script>
6
</head>
7
 
8
<body bgcolor="#FFFFFF">
9
<form name="frmcompressor" method="POST">
10
  <table border="0" style="border-left: 2 solid #EEEEEE; border-right: 2 solid #999999; border-top: 2 solid #EEEEEE; border-bottom: 2 solid #999999" width="100%" bgcolor="#D6D3CE">
11
    <tr>
12
      <td bgcolor="#336699" width="100%" ><b><font face="Arial" size="2" color="#FFFFFF">&nbsp;DynAPI
13
        Compressor&nbsp;</font></b></td>
14
    </tr>
15
    <tr>
16
      <td valign="top" width="100%" align="right">
17
        <table border="0" width="100%">
18
          <tr>
19
            <td width="50%"><font size="2" face="Arial">Compression Level:<br>
20
              </font><select size="1" name="cbolevel" style="width: 98%; height: 23">
21
          <option value="high" selected>High</option>
22
          <option value="low">Low</option>
23
          <option value="none">None</option>
24
        </select></td>
25
            <td width="50%"><a href="javascript:;" onclick="showHideAbout()" style="text-decoration:none;font-family: Arial"><img border="0" src="dc_icon.gif" width="32" height="32" align="absmiddle">
26
              <b><font size="4" color="#000080">About DynAPI Compressor&nbsp;</font></b></a></td>
27
          </tr>
28
        </table>
29
      </td>
30
    </tr>
31
    <tr>
32
      <td valign="top" width="100%">
33
        <table border="0" width="100%" cellpadding="2" cellspacing="1">
34
          <tr>
35
            <td width="50%"><font size="2" face="Arial">Source Path<br>
36
              <input type="text" name="txtsource" size="20" style="width: 100%"></font></td>
37
            <td width="50%"><font size="2" face="Arial">Destination Path<br>
38
              <input type="text" name="txttarget" size="20" style="width: 100%">
39
              </font></td>
40
          </tr>
41
        </table>
42
        <table border="0" width="100%" cellpadding="2" cellspacing="1">
43
          <tr>
44
            <td colspan="3" style="font-size: 8pt; font-family: Arial; font-weight: bold; border-bottom: 2 solid #C0C0C0"><font size="2" face="Arial">Modules</font></td>
45
          </tr>
46
          <tr>
47
            <td width="33%"><font size="2" face="Arial"><input type="checkbox" name="chk" value="api" checked>API
48
              Libraries</font></td>
49
            <td width="33%"><font size="2" face="Arial"><input type="checkbox" name="chk" value="fx" checked>FX
50
              Libraries</font></td>
51
            <td width="33%"><font size="2" face="Arial"><input type="checkbox" name="chk" value="util" checked>UTIL
52
              Libraries</font></td>
53
          </tr>
54
          <tr>
55
            <td width="33%"><font size="2" face="Arial"><input type="checkbox" name="chk" value="ext" checked>EXT
56
              (Extension) Libraries</font></td>
57
            <td width="33%"><font size="2" face="Arial"><input type="checkbox" name="chk" value="gui" checked>GUI&nbsp;</font><font size="2" face="Arial">Libraries</font></td>
58
            <td width="33%"></td>
59
          </tr>
60
          <tr>
61
            <td style="border-top: 2 solid #C0C0C0" width="33%"><font size="2" face="Arial"><input type="checkbox" name="chkcvs" value="true" checked>Ignore
62
              CVS folders</font></td>
63
            <td style="border-top: 2 solid #C0C0C0" width="33%"><font size="2" face="Arial"><input type="checkbox" name="chkdebug" value="true">
64
              Include Debugger</font></td>
65
            <td style="border-top: 2 solid #C0C0C0" width="33%"><font size="2" face="Arial"><input type="checkbox" name="chkns4" value="true" checked>NS4
66
              Support</font></td>
67
          </tr>
68
        </table>
69
  <table border="0"  cellspacing="0" cellpadding="0" width="100%">
70
    <tr>
71
      <td width="100%" >
72
        &nbsp;
73
      </td>
74
    </tr>
75
    <tr>
76
      <td width="100%" ><font size="2" face="Arial"><input type="text" name="txtstatus" size="74" style="background-color: #D6D3CE; border-style: solid; border-width: 0" value="Ready"></font></td>
77
    </tr>
78
    <tr>
79
      <td width="100%" >
80
        <table border="0" width="100%">
81
          <tr>
82
            <td style="border: 1 solid #000000" bgcolor="#FFFFFF"><img name="bar" border="0" src="../examples/images/pixel.gif" width="10" height="20" style="visibility:hidden;background-color: #0000FF"></td>
83
          </tr>
84
        </table>
85
      </td>
86
    </tr>
87
    <tr>
88
      <td width="100%" >
89
        &nbsp;<font size="2" face="Arial"><input type="text" name="txtsizestatus" size="74" style="background-color: #D6D3CE; border-style: solid; border-width: 0"></font>
90
      </td>
91
    </tr>
92
    <tr>
93
      <td width="100%" >
94
        <table border="0" width="100%">
95
          <tr>
96
            <td width="100%" align="right">
97
        <hr>
98
            </td>
99
          </tr>
100
          <tr>
101
            <td width="100%" align="right">
102
        <input language="javascript" type="button" value="Check semi-colons" name="cmdtrace" onclick="compress(true)">
103
              <input language="javascript" type="button" value="Compile" name="cmdcompress" onclick="compress()">
104
            </td>
105
          </tr>
106
        </table>
107
      </td>
108
    </tr>
109
  </table>
110
      </td>
111
    </tr>
112
    <tr id="dvscreenrow" style="display:none"><td bgcolor="#FFFFFF" style="font-family: Arial; border-style: inset; border-width: 2"><div id="dvscreen"></div></td></tr>
113
    <tr id="dvabout" style="display:none">
114
      <td  bgcolor="#D6D3CE" valign="top" width="100%">
115
        <table border="0" style="font-family: Arial; font-size: 10pt; border-style: inset; border-width: 2" cellspacing="1" cellpadding="2">
116
          <tr>
117
            <td bgcolor="#FFFFFF" valign="top">
118
              <p>The DynAPI Compressor&nbsp; is used to compress the DynAPI source
119
              code by removing comments, white spaces, etc from the source files.
120
              It's based on the JavaScript compressor used at <a href="http://www.brainjar.com">Brainjar.com</a>.
121
              Please visit <a href="http://www.brainjar.com">Brainjar.com</a>
122
              for more information on how to write scripts that are&nbsp; JavaScript
123
              compressor friendly.</p>
124
              <p>&nbsp;This version only
125
              works the Internet Explorer (version 5+).</p>
126
              <ul>
127
                <li><b>Compression Level</b> - Sets the level of compression to
128
                  use when compressing files or modules.&nbsp;Three levels of compression are
129
                  supported:<br>
130
                  <blockquote>
131
                  High - Removes comments and white spaces from the
132
                  files/modules<br>
133
                  Low - Removes only&nbsp; comments from the files/modules<br>
134
                  None - Makes a copy of the files/modules&nbsp;&nbsp;</blockquote>Note:
135
                  Conditional statements will be included or excluded regardless
136
                  of the compression level selected<br>
137
                  &nbsp;
138
                  </li>
139
                <li>
140
              <b>Source Path</b> - Path where the uncompressed files are.&nbsp;For
141
              example c:\developer\dynapi\src<br>
142
                  &nbsp;</li>
143
                <li>
144
              <b>Destination Path </b>- Path where newly compressed files are to
145
              be placed. For example c:\production\dynapi\src<br>
146
                  &nbsp;</li>
147
                <li>
148
              <b>Modules</b> - These are modules to&nbsp; be included or excluded from the
149
              compressed output.<br>
150
                  &nbsp;</li>
151
                <li>
152
              <b>Compressor Directives</b> - By placing directives inside
153
              the source code the compressor can remove blocks of codes if it
154
              is not needed after compression</li>
155
              </ul>
156
              <blockquote>
157
              <blockquote>
158
                <p><font face="Arial" size="2">//@IF:DEBUG[&nbsp;<br>
159
                &nbsp;&nbsp;&nbsp;&nbsp; // Some debugging code here.&nbsp;<br>
160
                &nbsp;&nbsp;&nbsp;&nbsp; This line of code will remain if the
161
                Include Debugger check box&nbsp; is checked&nbsp;<br>
162
                //]:DEBUG<br>
163
                <br>
164
                //@IF:NS4[<br>
165
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Some ns4 code here. <br>
166
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This lines of code will remain if
167
                the NS4 support check box is checked<br>
168
                //]:NS4</font></p>
169
              </blockquote>
170
              </blockquote>
171
            </td>
172
          </tr>
173
        </table>
174
      </td>
175
    </tr>
176
  </table>
177
</form>
178
</body>