Ignore:
Timestamp:
Feb 1, 2017, 10:38:41 AM (4 years ago)
Author:
Juanma
Message:

Updated to 3.2.1

Location:
jclic/trunk/fuentes/dist
Files:
54 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • jclic/trunk/fuentes/dist/jclic/jclicplugin.js

    r116 r3466  
    1 var player_files =    "jclic.jar" /* + ",jmfhandlers.jar" */;
    2 var player_versions = "0.2.1.0"   /* + ",        1.0.1.6" */;
     1var player_files =    "jclic.jar";
     2var player_versions = "0.3.2.0";
    33
    44var author_files =    "jclicauthor.jar";
    5 var author_versions = "0.2.1.0";
     5var author_versions = "0.3.2.0";
    66
    77var jar_cache_files = player_files;
     
    122122      useTrace=true;
    123123   }
     124}
     125
     126var useMyURL=true;
     127var myURL=window.location.href;
     128
     129var isFile=false;
     130if(myURL.indexOf("file:")==0){
     131    isFile=true;
    124132}
    125133
     
    141149
    142150function writePlugin(project, width, height, rWidth, rHeight){
     151   document.writeln(getPlugin(project, width, height, rWidth, rHeight));
     152}
     153
     154function writeCacheInfo(p){
     155  document.writeln(getCacheInfo(p));
     156}
     157
     158function writeDownloadPageInfo(){
     159  document.writeln(getDownloadPageInfo());
     160}
     161
     162function writeParams(project, p){
     163  document.writeln(getParams(project, p));
     164}
     165
     166
     167function writeTable(w, h, nsw, nsh, s){
     168  document.write(getTable(w, h, nsw, nsh, s));
     169}
     170
     171function getPlugin(project, width, height, rWidth, rHeight){
    143172   var w=width.toString();
    144173   var h=height.toString();
     
    148177   if(rHeight!=null) h=rHeight.toString();
    149178
     179   var htmlcode = '';
    150180   if (_ie == true){
    151       document.writeln(
    152         '<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"' +
    153         ' width="' +w+ '" height="' +h+ '">');
    154       document.writeln('<param name="code" value="' +mainClass+ '">');
    155       document.writeln('<param name="codebase" value="' +jarBase+ '">');
    156       writeCacheInfo(true);
    157       document.writeln('<param name="type" value="application/x-java-applet;jpi-version=1.4">');
    158       document.writeln('<param name="scriptable" value="false">');
    159       writeParams(project, true);
    160       writeDownloadPageInfo();
    161       document.writeln('</object>');
     181      htmlcode = '<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"' +
     182        ' width="' +w+ '" height="' +h+ '">' +
     183      '<param name="code" value="' +mainClass+ '">' +
     184      '<param name="codebase" value="' +jarBase+ '">' +
     185      getCacheInfo(true) +
     186      '<param name="type" value="application/x-java-applet;jpi-version=1.6">' +
     187      '<param name="scriptable" value="false">' +
     188      getParams(project, true) +
     189      getDownloadPageInfo() +
     190      '</object>';
    162191   }
    163192   else if (_ns == true){
    164       document.write(
    165         '<embed type="application/x-java-applet;version=1.4"'+
    166         ' code="' +mainClass+ '" codebase="' +jarBase+ '"'+
    167         ' width="' +nsw+ '" height="' +nsh +'" ');
    168       writeCacheInfo(false);
    169       writeParams(project, false);
    170       document.writeln(
    171         ' scriptable="false"'+
    172         ' pluginspage="http://www.java.com/">');
    173       document.writeln('<noembed>');
    174       writeDownloadPageInfo();
    175       document.writeln('</noembed>');     
    176       document.writeln("</embed>");
     193      htmlcode = '<embed type="application/x-java-applet;version=1.6"'+
     194      ' code="' +mainClass+ '" codebase="' +jarBase+ '"'+
     195      ' width="' +nsw+ '" height="' +nsh +'" ' +
     196      getCacheInfo(false) +
     197      getParams(project, false) +
     198      ' scriptable="false"'+
     199      ' pluginspage="http://www.java.com/">' +
     200      '<noembed>' + getDownloadPageInfo() + '</noembed>' +
     201      '</embed>';
    177202   }
    178203   else{
    179      document.write('<applet code="' +mainClass+ '" codebase="' +jarBase+ '"');
    180      document.write(' archive="'+ jar_cache_files +'"');
    181      document.writeln(' width="' +nsw+ '" height="' +nsh+ '">');
    182      document.writeln('<param name="type" value="application/x-java-applet;version=1.4">');
    183      document.writeln('<param name="scriptable" value="false">');
    184      writeParams(project, true);
    185      document.writeln('</applet>');
    186   }
    187 }
    188 
    189 function writeCacheInfo(p){
     204     htmlcode = '<applet code="' +mainClass+ '" codebase="' +jarBase+ '"' +
     205     ' archive="'+ jar_cache_files +'"' +
     206     ' width="' +nsw+ '" height="' +nsh+ '">' +
     207     '<param name="type" value="application/x-java-applet;version=1.6">' +
     208     '<param name="scriptable" value="false">' +
     209     getParams(project, true) +
     210     '</applet>';
     211  }
     212  return htmlcode;
     213}
     214
     215function getCacheInfo(p){
     216  var htmlcode = '';
    190217  if(p){
    191     document.writeln('<param name="cache_option" value="Plugin">');
    192     document.writeln('<param name="cache_archive" value="' +jar_cache_files+ '">');
    193     document.writeln('<param name="cache_version" value="' +jar_cache_versions+ '">');
     218    htmlcode = '<param name="cache_option" value="Plugin">' +
     219               '<param name="cache_archive" value="' +jar_cache_files+ '">';
     220    if(!isFile){
     221      htmlcode += '<param name="cache_version" value="' +jar_cache_versions+ '">';
     222    }
    194223  }else{
    195     document.write(' cache_option="Plugin"');
    196     document.write(' cache_archive="' +jar_cache_files+ '"');
    197     document.write(' cache_version="' +jar_cache_versions+ '"');
    198   }
    199 }
    200 
    201 function writeDownloadPageInfo(){
     224    htmlcode = ' cache_option="Plugin"' +
     225               ' cache_archive="' +jar_cache_files+ '"';
     226    if(!isFile){
     227      htmlcode += ' cache_version="' +jar_cache_versions+ '"';
     228    }
     229  }
     230  return htmlcode;
     231}
     232
     233
     234function getParams(project, p){
     235  var htmlcode = '';
     236
     237  if(p) htmlcode += '<param name="activityPack" value="' +project+ '">';
     238  else htmlcode += ' activityPack="' +project+ '"';
     239
     240  if(useSequence){
     241    if(p) htmlcode += '<param name="sequence" value="' +sequence+ '">';
     242    else htmlcode += ' sequence="' +sequence+ '" ';
     243  }
     244
     245  if(useLanguage){
     246    if(p){
     247      htmlcode += '<param name="language" value="' +language+ '">' +
     248                  '<param name="country" value="' +country+ '">' +
     249                  '<param name="variant" value="' +variant+ '">';
     250    }
     251    else htmlcode += ' language="' +language+ '" country="' +country+ '" variant="' +variant+ '" ';
     252  }
     253
     254  if(useSkin){
     255    if(p) htmlcode += '<param name="skin" value="' +skinName+ '">';
     256    else htmlcode += ' skin="' +skinName+ '" ';
     257  }
     258
     259  if(useExitUrl){
     260    if(p) htmlcode += '<param name="exitUrl" value="' +exitUrl+ '">';
     261    else htmlcode += ' exitUrl="' +exitUrl+ '" ';
     262  }
     263
     264  if(useInfoUrlFrame){
     265    if(p) htmlcode += '<param name="infoUrlFrame" value="' +infoUrlFrame+ '">';
     266    else htmlcode += ' infoUrlFrame="' +infoUrlFrame+ '" ';
     267  }
     268
     269  if(useReporter){
     270    if(p){
     271      htmlcode += '<param name="reporter" value="' +reporterClass+ '">' +
     272                  '<param name="reporterParams" value="' +reporterParams+ '">';
     273    }
     274    else htmlcode += ' reporter="' +reporterClass+ '" reporterParams="' +reporterParams+ '" ';
     275  }
     276
     277  if(useCookie){
     278    if(p) htmlcode += '<param name="cookie" value="' +cookie+ '">';
     279    else htmlcode += ' cookie="' +cookie+ '" ';
     280  }
     281
     282  if(useSystemSounds){
     283    if(p) htmlcode += '<param name="systemSounds" value="' +systemSounds+ '">';
     284    else htmlcode += ' systemSounds="' +systemSounds+ '" ';
     285  }
     286
     287  if(useCompressImages){
     288    if(p) htmlcode += '<param name="compressImages" value="' +compressImages+ '">';
     289    else htmlcode += ' compressImages="' +compressImages+ '" ';
     290  }
     291
     292  if(useTrace){
     293    if(p) htmlcode += '<param name="trace" value="' +trace+ '">';
     294    else htmlcode += ' trace="' +trace+ '" ';
     295  }
     296
     297  if(useMyURL){
     298    if(p) htmlcode += '<param name="myurl" value="' +myURL+ '">';
     299    else htmlcode += ' myurl="' +myURL+ '" ';
     300  }
     301
     302  return htmlcode;
     303}
     304
     305function getDownloadPageInfo(){
     306  var htmlcode = '';
     307
    202308  var pluginBase="http://clic.xtec.cat/";
    203309  var pluginCat=pluginBase+"ca/jclic/instjava.htm";
    204310  var pluginEsp=pluginBase+"es/jclic/instjava.htm";
    205311  var pluginEng=pluginBase+"en/jclic/instjava.htm";
    206   document.writeln(
    207     '<span style="background-color: #F5DEB3; color: Black; display: block; padding: 10; font-family: Verdana,Arial; border-style: solid; border-width: thin; font-size: 12px; text-align: center; font-weight: bold;">'+
     312
     313  htmlcode += '<span style="background-color: #F5DEB3; color: Black; display: block; padding: 10; font-family: Verdana,Arial; border-style: solid; border-width: thin; font-size: 12px; text-align: center; font-weight: bold;">'+
    208314    'Per utilitzar aquesta aplicaci&oacute; cal instal&middot;lar un plug-in Java&#153; actualitzat<br><a href="'+pluginCat+'" target="_blank">Feu clic aqu&iacute; per descarregar-lo</a><br>&nbsp;<br>'+
    209315    'Para utilizar esta aplicaci&oacute;n es necesario un plug-in Java&#153; actualizado<br><a href="'+pluginEsp+'" target="_blank">Haga clic aqu&iacute; para descargarlo</a><br>&nbsp;<br>'+
    210316    'In order to run this program you need an updated Java&#153; plug-in<br><a href="'+pluginEng+'" target="_blank">Click here to download it</a><br>'+
    211     '</span>');
    212 }
    213 
    214 function writeParams(project, p){
    215 
    216   if(p) document.writeln('<param name="activityPack" value="' +project+ '">');
    217   else document.write(' activityPack="' +project+ '"');
    218 
    219   if(useSequence){
    220     if(p) document.writeln('<param name="sequence" value="' +sequence+ '">');
    221     else document.write(' sequence="' +sequence+ '" ');
    222   }
    223 
    224   if(useLanguage){
    225     if(p){
    226       document.writeln('<param name="language" value="' +language+ '">');
    227       document.writeln('<param name="country" value="' +country+ '">');
    228       document.writeln('<param name="variant" value="' +variant+ '">');
    229     }
    230     else document.write(' language="' +language+ '" country="' +country+ '" variant="' +variant+ '" ');
    231   }
    232 
    233   if(useSkin){
    234     if(p) document.writeln('<param name="skin" value="' +skinName+ '">');
    235     else document.write(' skin="' +skinName+ '" ');
    236   }
    237 
    238   if(useExitUrl){
    239     if(p) document.writeln('<param name="exitUrl" value="' +exitUrl+ '">');
    240     else document.write(' exitUrl="' +exitUrl+ '" ');
    241   }
    242 
    243   if(useInfoUrlFrame){
    244     if(p) document.writeln('<param name="infoUrlFrame" value="' +infoUrlFrame+ '">');
    245     else document.write(' infoUrlFrame="' +infoUrlFrame+ '" ');
    246   }
    247 
    248   if(useReporter){
    249     if(p){
    250       document.writeln('<param name="reporter" value="' +reporterClass+ '">');
    251       document.writeln('<param name="reporterParams" value="' +reporterParams+ '">');
    252     }
    253     else document.write(' reporter="' +reporterClass+ '" reporterParams="' +reporterParams+ '" ');
    254   }
    255 
    256   if(useCookie){
    257     if(p) document.writeln('<param name="cookie" value="' +cookie+ '">');
    258     else document.write(' cookie="' +cookie+ '" ');
    259   }
    260 
    261   if(useSystemSounds){
    262     if(p) document.writeln('<param name="systemSounds" value="' +systemSounds+ '">');
    263     else document.write(' systemSounds="' +systemSounds+ '" ');
    264   }
    265 
    266   if(useCompressImages){
    267     if(p) document.writeln('<param name="compressImages" value="' +compressImages+ '">');
    268     else document.write(' compressImages="' +compressImages+ '" ');
    269   }
    270 
    271   if(useTrace){
    272     if(p) document.writeln('<param name="trace" value="' +trace+ '">');
    273     else document.write(' trace="' +trace+ '" ');
    274   }
    275 
    276 }
    277 
    278 function writeTable(w, h, nsw, nsh, s){
    279         document.write('<table '+ s);
    280     if(_ie == true){
    281           if(w!=null) document.write(' width='+ w);
    282           if(h!=null) document.write(' height='+ h);
    283         }
    284         else{
    285           if(nsw!=null) document.write(' width='+ nsw);
    286           if(nsh!=null) document.write(' height='+ nsh);
    287         }
    288         document.writeln('>');
    289 }
     317    '</span>';
     318
     319  return htmlcode;
     320}
     321
     322function getTable(w, h, nsw, nsh, s){
     323  var htmlcode = '';
     324  htmlcode += '<table '+ s;
     325  if(_ie == true){
     326    if(w!=null) htmlcode += ' width='+ w;
     327    if(h!=null) htmlcode += ' height='+ h;
     328  }
     329  else{
     330    if(nsw!=null) htmlcode += ' width='+ nsw;
     331    if(nsh!=null) htmlcode += ' height='+ nsh;
     332  }
     333  htmlcode += '>';
     334  return htmlcode;
     335}
  • jclic/trunk/fuentes/dist/jnlp/author.jnlp

    r116 r3466  
    2121  </security>
    2222  <resources>
    23     <j2se version="1.4+" max-heap-size="128m"/>
    24     <jar href="jclicauthor.jar" main="true" version="1.2.1.0"/>
    25     <jar href="jclic.jar" version="1.2.1.0"/>
     23    <j2se version="1.6+" max-heap-size="128m"/>
     24    <jar href="jclicauthor.jar" main="true" version="1.3.1.0.01"/>
     25    <jar href="jclic.jar" version="1.3.1.0.01"/>
    2626  </resources>
    2727  <application-desc/>
  • jclic/trunk/fuentes/dist/jnlp/install.jnlp

    r116 r3466  
    1616  </security>
    1717  <resources>
    18     <j2se version="1.4+"/>
    19     <jar href="jclic.jar" version="1.2.1.0"/>
     18    <j2se version="1.6+"/>
     19    <jar href="jclic.jar" version="1.3.1.0.01"/>
    2020  </resources>
    2121  <application-desc main-class="JClicInstaller">
  • jclic/trunk/fuentes/dist/jnlp/player.jnlp

    r116 r3466  
    2121  </security>
    2222  <resources>
    23     <j2se version="1.4+"/>
    24     <jar href="jclic.jar" main="true" version="1.2.1.0"/>
     23    <j2se version="1.6+"/>
     24    <jar href="jclic.jar" main="true" version="1.3.1.0.01"/>
    2525  </resources>
    2626  <application-desc/>
  • jclic/trunk/fuentes/dist/jnlp/reportServer.jnlp

    r116 r3466  
    2121  </security>
    2222  <resources>
    23     <j2se version="1.4+"/>
    24     <jar href="jclicreports.jar" main="true" version="1.2.1.0"/>
    25     <jar href="jclic.jar" version="1.2.1.0"/>
     23    <j2se version="1.6+"/>
     24    <jar href="jclicreports.jar" main="true" version="1.3.1.0.01"/>
     25    <jar href="jclic.jar" version="1.3.1.0.01"/>
    2626  </resources>
    2727  <application-desc/>
Note: See TracChangeset for help on using the changeset viewer.