From 3dd0febe7a237d68bc7691b8a56e5faf6068fd82 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Fri, 21 Oct 2005 10:25:20 +0000 Subject: fixed code. added language code to redirection url --- HTML/script.js | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'HTML') diff --git a/HTML/script.js b/HTML/script.js index 27c4730..2247169 100644 --- a/HTML/script.js +++ b/HTML/script.js @@ -1,8 +1,8 @@ /* $Id$ + * */ -var isRemoteAvail = false; -var remoteweb = 'http://start.mandriva.com/'; +var remoteweb = 'http://start.mandriva.com/'; String.prototype.rtrim = function() { return this.replace(/\s*$/, ""); }; String.prototype.ltrim = function() { return this.replace(/^\s*/, ""); }; @@ -10,28 +10,40 @@ String.prototype.trim = function() { return this.rtrim().ltrim(); }; String.prototype.encodeURI = function() { return this.replace(/\+/g,"%2B"); }; function actOnline() { + // #1 var release = ''; + var pack = ''; + var lang = ''; try { var t = document.getElementsByTagName('meta'); for( var i=0; i