diff options
author | Romain d'Alverny <rdalverny@mandriva.org> | 2006-02-23 13:38:15 +0000 |
---|---|---|
committer | Romain d'Alverny <rdalverny@mandriva.org> | 2006-02-23 13:38:15 +0000 |
commit | f04259272a7d15b2b8904320345a93bbc7f8148a (patch) | |
tree | fe68158bf3c024bf04b2581a3d6a796c923f86a4 /HTML | |
parent | 078269ff55381829c886361c3adcd981fc249e48 (diff) | |
download | indexhtml-f04259272a7d15b2b8904320345a93bbc7f8148a.tar indexhtml-f04259272a7d15b2b8904320345a93bbc7f8148a.tar.gz indexhtml-f04259272a7d15b2b8904320345a93bbc7f8148a.tar.bz2 indexhtml-f04259272a7d15b2b8904320345a93bbc7f8148a.tar.xz indexhtml-f04259272a7d15b2b8904320345a93bbc7f8148a.zip |
Fixed system info (release, product, language) settings in index.html
Diffstat (limited to 'HTML')
-rw-r--r-- | HTML/index.html | 57 | ||||
-rw-r--r-- | HTML/script.js | 6 |
2 files changed, 34 insertions, 29 deletions
diff --git a/HTML/index.html b/HTML/index.html index 396e8cc..0f772c2 100644 --- a/HTML/index.html +++ b/HTML/index.html @@ -1,31 +1,32 @@ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <meta http-equiv="Content-Style-Type" content="text/css" /> - <meta http-equiv="Pragma" content="no-cache" /> - <meta http-equiv="Expires" content="0" /> - <meta http-equiv="Cache-Control" content="no-cache" /> - <meta name="mdv:release" content="XXXXX" /> - <meta name="mdv:pack" content="" /> - <title>Mandriva Linux</title> - <link rel="stylesheet" type="text/css" media="screen, projection" href="file:///usr/share/mdk/indexhtml/screen.css" /> - <link rel="stylesheet" type="text/css" media="print, handheld" href="file:///usr/share/mdk/indexhtml/print.css" /> - <script type="text/javascript" src="file:///usr/share/mdk/indexhtml/script.js"></script> - </head> - <body onload="try{run();}catch(e){}"> - <div id="page"> - <h1><a href="http://www.mandriva.com/"><span>Mandriva</span></a></h1> - <ul> - <li id="mandriva_com"><a href="http://www.mandriva.com/"><span>mandriva.com</span></a></li> - <li id="club"><a href="http://club.mandriva.com/"><span>club.mandriva.com</span></a></li> - <li id="store"><a href="http://store.mandriva.com/"><span>store.mandriva.com</span></a></li> - <li id="online"><a href="http://online.mandriva.com/"><span>online.mandriva.com</span></a></li> - <li id="support"><a href="http://support.mandriva.com/"><span>support.mandriva.com</span></a></li> - </ul> - </div> - </body> -</html> +<html xmlns="http://www.w3.org/1999/xhtml" lang="#LANG" xml:lang="#LANG"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Script-Type" content="text/javascript" /> + <meta http-equiv="Content-Style-Type" content="text/css" /> + <meta http-equiv="Pragma" content="no-cache" /> + <meta http-equiv="Expires" content="0" /> + <meta http-equiv="Cache-Control" content="no-cache" /> + <meta name="mdv:release" content="#MDV_RELEASE" /> + <meta name="mdv:product" content="#MDV_PRODUCT" /> + <meta name="mdv:pack" content="#MDV_PACK" /> + <title>Mandriva Linux</title> + <link rel="stylesheet" type="text/css" media="screen, projection" href="file:///usr/share/mdk/indexhtml/screen.css" /> + <link rel="stylesheet" type="text/css" media="print, handheld" href="file:///usr/share/mdk/indexhtml/print.css" /> + <script type="text/javascript" src="file:///usr/share/mdk/indexhtml/script.js"></script> + </head> + <body onload="try{run();}catch(e){}"> + <div id="page"> + <h1><a href="http://www.mandriva.com/"><span>Mandriva</span></a></h1> + <ul> + <li id="mandriva_com"><a href="http://www.mandriva.com/"><span>mandriva.com</span></a></li> + <li id="club"><a href="http://club.mandriva.com/"><span>club.mandriva.com</span></a></li> + <li id="store"><a href="http://store.mandriva.com/"><span>store.mandriva.com</span></a></li> + <li id="online"><a href="http://online.mandriva.com/"><span>online.mandriva.com</span></a></li> + <li id="support"><a href="http://support.mandriva.com/"><span>support.mandriva.com</span></a></li> + </ul> + </div> + </body> +</html>
\ No newline at end of file diff --git a/HTML/script.js b/HTML/script.js index 2247169..71e40e6 100644 --- a/HTML/script.js +++ b/HTML/script.js @@ -13,6 +13,7 @@ function actOnline() { // #1 var release = ''; var pack = ''; + var product = ''; var lang = ''; try { var t = document.getElementsByTagName('meta'); @@ -21,6 +22,8 @@ function actOnline() { release = t.item(i).getAttribute('content'); } else if( t.item(i).getAttribute('name') == 'mdv:pack' ) { pack = t.item(i).getAttribute('content'); + } else if( t.item(i).getAttribute('name') == 'mdv:product' ) { + product = t.item(i).getAttribute('content'); } } lang = parent.window.document.documentElement.attributes.getNamedItem('lang').value; @@ -30,8 +33,9 @@ function actOnline() { // #2 var args = ''; - if( release !== '' ) { args = 'r='+release.trim().encodeURI(); } + if( release !== '' ) { args = 'r='+release.trim().encodeURI(); } if( pack !== '' ) { if( args !== '' ) { args += '&'; } args += 'p='+pack.trim().encodeURI(); } + if( product !== '' ) { if( args !== '' ) { args += '&'; } args += 'p='+product.trim().encodeURI(); } if( lang !== '' ) { if( args !== '' ) { args += '&'; } args += 'l='+lang.trim(); } if( args !== '' ) { remoteweb += '?' + args; } |