|
From: <tre...@us...> - 2007-10-22 23:44:06
|
Revision: 541
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=541&view=rev
Author: trevorolio
Date: 2007-10-22 16:44:09 -0700 (Mon, 22 Oct 2007)
Log Message:
-----------
In lieu of an all-in-one installer, tweaked the browser tests to send folks to the slick Java installer and directly to the Windows Java3D installer.
Modified Paths:
--------------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/browserTests.js
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js
Added Paths:
-----------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/java3d-1_5_1-windows-i586.exe
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/browserTests.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/browserTests.js 2007-10-22 23:43:01 UTC (rev 540)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/browserTests.js 2007-10-22 23:44:09 UTC (rev 541)
@@ -60,9 +60,9 @@
}
return false;
}
-var javaErrorMessage = "<br/><br/>Please check that Java support is enabled in your browser preferences.";
-javaErrorMessage += "<br/>If your computer needs Java, use the online installer from <a href='http://java.com/en/download/manual.jsp'>Java.com</a>.<br/>";
-javaErrorMessage += "<br/>If your computer needs Java3D, a quick installer is available <a href='http://java.sun.com/products/java-media/3D/download.html'>here</a>.";
+var javaErrorMessage = "<br/><br/>Please check that Java support is enabled in your browser preferences.<br/>";
+javaErrorMessage += "<br/>If your computer needs Java, use the free installer from <a href='http://java.com/en/download/'>Java.com</a>.<br/>";
+javaErrorMessage += "<br/>If your computer needs Java3D, a free installer is available <a href='java3d-1_5_1-windows-i586.exe'>here</a>.";
requirementTests[requirementTests.length] = new PlatformTest("Checking for Java support", "Java displays the 3D views.", javaErrorMessage, testJava);
var currentTestIndex = -1;
Added: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/java3d-1_5_1-windows-i586.exe
===================================================================
(Binary files differ)
Property changes on: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/java3d-1_5_1-windows-i586.exe
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2007-10-22 23:43:01 UTC (rev 540)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2007-10-22 23:44:09 UTC (rev 541)
@@ -84,7 +84,7 @@
var serviceURI = getServiceURI();
- var html = "<applet id='viewer' archive='ogoglio-common.jar,ogoglio-viewer-applet.jar' codebase='" + serviceURI + "' code='com.ogoglio.viewer.applet.ViewerApplet' archive='/ogoglio-viewer-applet-0.0.1.jar' width='" + viewerWidth + "' height='" + viewerHeight + "' mayscript='true'>";
+ var html = "<applet id='viewer' archive='ogoglio-common.jar,ogoglio-viewer-applet.jar' codebase='" + serviceURI + "' code='com.ogoglio.viewer.applet.ViewerApplet' width='" + viewerWidth + "' height='" + viewerHeight + "' mayscript='true'>";
html += "<param name='loginCookie' value='" + loginCookie + "' />";
html += "<param name='serviceURI' value='" + serviceURI + "' />";
html += "<param name='spaceID' value='" + locationParameters['spaceID'] + "' />";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <tre...@us...> - 2007-11-17 16:36:27
|
Revision: 587
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=587&view=rev
Author: trevorolio
Date: 2007-11-17 08:36:31 -0800 (Sat, 17 Nov 2007)
Log Message:
-----------
Tweaked the Java3D setup to fall back to aliased, single buffered if the graphics board doesn't support it, which makes us run on lesser machines and also on the Parallels emulator on OS X Intel machines, making life much easier for Macish developers who want to maintain support WinIE.
Used this fact to fix IE+Java quirks (e.g. no String[] passing over liveconnect) so that the majority of browser installations can once again use Ogoglio.
Modified Paths:
--------------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js 2007-11-17 16:36:17 UTC (rev 586)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js 2007-11-17 16:36:31 UTC (rev 587)
@@ -64,43 +64,42 @@
}
bodyDataListXML = xml;
- setTimeout("awaitInitialLoad();", 1000);
+ awaitInitialLoad();
}
function awaitInitialLoad(){
var editor = document.getElementById("viewer");
- if(editor != null && editor.completedInitialLoad()){
+ if(typeof editor != "undefined" && editor != null && typeof editor.completedInitialLoad != "undefined" && editor.completedInitialLoad()){
initControls();
return;
}
- setTimeout("awaitInitialLoad();", 500);
+ window.setTimeout("awaitInitialLoad()", 1000);
}
function initControls(){
var editor = document.getElementById("viewer");
- var morphNames = editor.getMorphNames();
- var textureNames = editor.getBaseTextureNames();
var baseTextureName = bodyXML.getAttribute("basetexturename");
var defaultBodyID = +bodyXML.getAttribute("bodyconfigurationid");
var ownerUsername = bodyXML.getAttribute("ownerusername");
var morphHTML = "";
- for(var i = morphNames.length - 1; i >= 0; i--){
- var settingValue = editor.getMorphSetting(morphNames[i]);
- morphHTML += "<h4>" + morphNames[i] + ":</h4>";
- morphHTML += "<form onsubmit='changeMorph(\"" + morphNames[i] + "\", 0.1);return false;'><input type='submit' value='+' name='" + morphNames[i] + "'></form>";
- morphHTML += " <span id='" + morphNames[i] + " setting'>" + formatSettingValue(settingValue) + "</span> ";
- morphHTML += "<form onsubmit='changeMorph(\"" + morphNames[i] + "\", -0.1);return false;'><input type='submit' value='-' name='" + morphNames[i] + "'></form>";
+ for(var i = editor.getMorphCount() - 1; i >= 0; i--){
+ var morphName = editor.getMorphName(i);
+ var settingValue = editor.getMorphSetting(morphName);
+ morphHTML += "<h4>" + morphName + ":</h4>";
+ morphHTML += "<form onsubmit='changeMorph(\"" + morphName + "\", 0.1);return false;'><input type='submit' value='+' name='" + morphName + "'></form>";
+ morphHTML += " <span id='" + morphName + " setting'>" + formatSettingValue(settingValue) + "</span> ";
+ morphHTML += "<form onsubmit='changeMorph(\"" + morphName + "\", -0.1);return false;'><input type='submit' value='-' name='" + morphName + "'></form>";
}
morphControls.innerHTML = morphHTML;
- var animationNames = editor.getAnimationNames();
var animationHTML = "";
- for(var i = 0; i < animationNames.length; i++){
- if(animationNames[i] == "default"){
+ for(var i = 0; i < editor.getAnimationCount(); i++){
+ var name = editor.getAnimationName(i);
+ if(name == "default"){
continue;
}
- animationHTML += "<form onsubmit='playAnimation(\"" + animationNames[i] + "\"); return false;'><input type='submit' value='" + animationNames[i] + "'/></form>";
+ animationHTML += "<form onsubmit='playAnimation(\"" + name + "\"); return false;'><input type='submit' value='" + name + "'/></form>";
}
animationControls.innerHTML = animationHTML;
@@ -111,9 +110,10 @@
} else {
textureHTML += "<option value='Default'>Default</option>";
}
- for(var i=0; i < textureNames.length; i++){
- var selectedText = textureNames[i] == baseTextureName ? "selected='selected'" : "";
- textureHTML += "<option " + selectedText + " value='" + textureNames[i] + "'>" + textureNames[i] + "</option>";
+ for(var i=0; i < editor.getBaseTextureCount(); i++){
+ var name = editor.getBaseTextureName(i);
+ var selectedText = name == baseTextureName ? "selected='selected'" : "";
+ textureHTML += "<option " + selectedText + " value='" + name + "'>" + name + "</option>";
}
textureHTML += "</select></form>";
textureSelectionDiv.innerHTML = textureHTML;
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js 2007-11-17 16:36:17 UTC (rev 586)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js 2007-11-17 16:36:31 UTC (rev 587)
@@ -172,19 +172,25 @@
return text.substring(0, maxLength - eLength) + (elipseText == null ? "" : elipseText);
}
-function popUp(URL, decorated, width, height) {
- var id = "page-" + new Date().getTime();
+function popUp(url, decorated, width, height) {
+ var id = "page" + new Date().getTime();
var params = "";
if(typeof width != "undefined"){
- params += ",width=" + width;
+ params += "width=" + width;
}
if(typeof height != undefined){
- params += ",height=" + height;
+ if(params.length > 0){
+ params += ",";
+ }
+ params += "height=" + height;
}
- if(decorated == null || decorated == true){
- params += ',toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1';
+ if(typeof decorated == "undefined" || decorated == null || decorated == true){
+ if(params.length > 0){
+ params += ",";
+ }
+ params += 'toolbar=yes,scrollbars=yes,location=yes,statusbar=yes,menubar=yes,resizable';
}
- return window.open(URL, id, params);
+ return window.open(url, id, params);
}
function getLoginCookie(){
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2007-11-17 16:36:17 UTC (rev 586)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2007-11-17 16:36:31 UTC (rev 587)
@@ -119,7 +119,7 @@
displayName = displayName + "";
link = link + "";
- displayChatMessage("Link: <a onclick='popUp(this.href, true); return false;' href='" + link + "'>" + escapeHTML(displayName) + "</a>");
+ displayChatMessage("Link: <a onclick='popUp(\"" + link + "\", true); return false;' href='javascript:void(0);'>" + escapeHTML(displayName) + "</a>");
}
//called by the viewer applet
@@ -240,10 +240,11 @@
infoActionDiv.style.width = "100%";
infoActionDiv.style.textAlign = "right";
var closeActionAnchor = document.createElement("a");
- closeActionAnchor.setAttribute("href", "error.html");
- closeActionAnchor.setAttribute("onclick", "removeInfoPanel(" + id + "); return false;");
+ closeActionAnchor.setAttribute("href", "javascript:void(0);");
+ closeActionAnchor.setAttribute("onclick", "removeInfoPanel('" + id + "'); return false;");
closeActionAnchor.appendChild(document.createTextNode("close"));
infoActionDiv.appendChild(closeActionAnchor);
+ closeActionAnchor.parentNode.innerHTML = closeActionAnchor.parentNode.innerHTML; //THIS LOOKS POINTLESS, but it fixes IE's broken DOM for anchor onclick
infoPanelElement.appendChild(infoActionDiv);
var panelHTMLWrapper = document.createElement("iframe");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <tre...@us...> - 2007-12-30 23:25:54
|
Revision: 654
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=654&view=rev
Author: trevorolio
Date: 2007-12-30 15:15:30 -0800 (Sun, 30 Dec 2007)
Log Message:
-----------
Added the ability to update the account photo using the body editor
Modified Paths:
--------------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/account.html
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.css
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.html
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/account.html
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/account.html 2007-12-30 23:15:18 UTC (rev 653)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/account.html 2007-12-30 23:15:30 UTC (rev 654)
@@ -52,6 +52,7 @@
var spaceMembershipTable = null;
var profileTable = null;
var profileGoButton = null;
+var accountPhotoElement = null;
function handleAuth(){
if(requestedUsername == null){
@@ -65,7 +66,7 @@
}
inventoryLink.innerHTML = "<a href='inventory.html?username=" + requestedUsername + "'>Check your inventory »</a>"
-
+ accountPhotoElement.innerHTML = "<img width='210' src='" + appPath + "/account/" + requestedUsername + "/photo' />";
requestAccountDocument(requestedUsername, handleAccount);
requestSpaceList(requestedUsername, handleSpaceList);
requestAccountMembership(requestedUsername, handleMembership);
@@ -208,7 +209,8 @@
spaceMembershipTable = document.getElementById("spaceMembershipTable");
profileGoButton = document.getElementById("profileGoButton");
profileTable = document.getElementById("profileTable");
-
+ accountPhotoElement = document.getElementById("accountPhotoElement");
+
addAuthListeners(handleAuth, handleAuth);
}
</script>
@@ -252,12 +254,15 @@
<form onsubmit="createNewSpace('New Space'); return false;"><input type="submit" value="create a new space"/></form>
</div>
- <p class="navLink" id="bodyLink"><a href='body.html'>Edit your body »</a></p>
<p class="navLink" id="inventoryLink"></p>
</div><!-- end content -->
<div id="rail">
<div class="section">
+ <span id="accountPhotoElement"> </span>
+ <p class="navLink" id="bodyLink"><a href='body.html'>Edit your body »</a></p>
+ </div>
+ <div class="section">
<h3>Space membership:</h3>
<div id="spaceMembershipTable">
loading...
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.css
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.css 2007-12-30 23:15:18 UTC (rev 653)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.css 2007-12-30 23:15:30 UTC (rev 654)
@@ -48,6 +48,10 @@
visibility: hidden;
}
+#bottomControlDiv form {
+ display: inline;
+}
+
#morphControls form {
display: inline;
}
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.html
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.html 2007-12-30 23:15:18 UTC (rev 653)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.html 2007-12-30 23:15:30 UTC (rev 654)
@@ -32,7 +32,6 @@
margin: 10px 0px 10px 0px;
}
-
</style>
<script type="text/javascript">
@@ -85,6 +84,7 @@
<div id="bottomControlDiv" style="text-align: center;">
<form onsubmit="doSave(); return false"><input type="submit" value="save" /></form>
+ <form onsubmit="doSaveAccountPhoto(); return false"><input type="submit" value="save profile photo" /></form>
</div>
</div> <!-- end main -->
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js 2007-12-30 23:15:18 UTC (rev 653)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js 2007-12-30 23:15:30 UTC (rev 654)
@@ -316,6 +316,14 @@
appletDiv.innerHTML = html;
}
+function doSaveAccountPhoto(){
+ var editor = document.getElementById("viewer");
+ if(editor == null){
+ return;
+ }
+ editor.saveAccountPhoto();
+}
+
function doSave(){
var editor = document.getElementById("viewer");
if(editor == null){
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <tre...@us...> - 2008-02-09 11:53:53
|
Revision: 730
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=730&view=rev
Author: trevorolio
Date: 2008-02-09 03:53:58 -0800 (Sat, 09 Feb 2008)
Log Message:
-----------
Fixed a bug in the js revealed by IE. Tweaked the body menu margins for IE.
Modified Paths:
--------------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.css
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.css
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.css 2008-02-08 20:27:01 UTC (rev 729)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.css 2008-02-09 11:53:58 UTC (rev 730)
@@ -28,7 +28,7 @@
}
.tab {
- margin: 0px 0px 10px 0px;
+ margin: 0px 10px 10px 0px;
padding: 0px;
width: 75px;
height: 100px;
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js 2008-02-08 20:27:01 UTC (rev 729)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js 2008-02-09 11:53:58 UTC (rev 730)
@@ -13,7 +13,7 @@
var bodyControlDiv = null;
var morphControlDiv = null;
var animationControlDiv = null;
-var attachmentDiv = null;
+var attachmentControlDiv = null;
var bodyXML = null;
var bodyListXML = null;
@@ -100,6 +100,7 @@
function awaitInitialLoad(){
var editor = document.getElementById("viewer");
if(typeof editor != "undefined" && editor != null && typeof editor.completedInitialLoad != "undefined" && editor.completedInitialLoad()){
+
initControls();
return;
}
@@ -435,16 +436,13 @@
appletDiv = document.getElementById("appletDiv");
bodyControlDiv = document.getElementById("bodyControlDiv");
- if(bodyControlDiv == null){
- alert("no control div");
- return;
- }
- tabbedControlDivs[tabbedControlDivs.length] = bodyControlDiv;
morphControlDiv = document.getElementById("morphControlDiv");
- tabbedControlDivs[tabbedControlDivs.length] = morphControlDiv;
animationControlDiv = document.getElementById("animationControlDiv");
- tabbedControlDivs[tabbedControlDivs.length] = animationControlDiv;
attachmentControlDiv = document.getElementById("attachmentControlDiv");
+
+ tabbedControlDivs[tabbedControlDivs.length] = bodyControlDiv;
+ tabbedControlDivs[tabbedControlDivs.length] = morphControlDiv;
+ tabbedControlDivs[tabbedControlDivs.length] = animationControlDiv;
tabbedControlDivs[tabbedControlDivs.length] = attachmentControlDiv;
bodyListControl = document.getElementById("bodyListControl");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <tre...@us...> - 2008-02-13 14:20:54
|
Revision: 748
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=748&view=rev
Author: trevorolio
Date: 2008-02-13 06:20:56 -0800 (Wed, 13 Feb 2008)
Log Message:
-----------
Yet another tweak to try and convince the viewer applet not to throw security exceptions when running against round robin DNS.
Modified Paths:
--------------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js 2008-02-13 04:20:59 UTC (rev 747)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js 2008-02-13 14:20:56 UTC (rev 748)
@@ -439,14 +439,24 @@
}
function writeApplet(){
+ var loginCookie = getLoginCookie();
if(loginCookie == null){
appletDiv.innerHTML = "No cookie. Please sign in or register as a guest.";
return;
}
- var serviceURI = getServiceURI();
- var html = "<applet id='viewer' codebase='" + serviceURI + "' code='com.ogoglio.bodyeditor.BodyEditorApplet' archive='ogoglio-common.jar,ogoglio-body-editor-applet.jar' width='300' height='400' mayscript='true'>";
+ requestService(handleService);
+}
+
+function handleService(serviceXML){
+ if(serviceXML == null){
+ appletDiv.innerHTML = "There was an error and I could not talk to the server. Sorry.";
+ return;
+ }
+ var loginCookie = getLoginCookie();
+ var serverIP = serviceXML.getAttribute("serverip"); //we pass this in because Firefox and Applets on XP can resolve different IPs using load balanced DNS
+ var html = "<applet id='viewer' codebase='" + getCodeBase(serverIP) + "' code='com.ogoglio.bodyeditor.BodyEditorApplet' archive='ogoglio-common.jar,ogoglio-body-editor-applet.jar' width='300' height='400' mayscript='true'>";
html += "<param name='loginCookie' value='" + loginCookie + "' />";
- html += "<param name='serviceURI' value='" + getServiceURI() + "' />";
+ html += "<param name='serviceURI' value='" + getCodeBase(serverIP) + "' />";
html += "<param name='image' value='" + appPath + "/icons/32x32/face-monkey.png' />";
html += "</applet>";
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js 2008-02-13 04:20:59 UTC (rev 747)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/ogoglio.js 2008-02-13 14:20:56 UTC (rev 748)
@@ -8,6 +8,11 @@
return locLink.protocol + "//" + locLink.host + appPath;
}
+function getCodeBase(serverIP){
+ var locLink = document.location;
+ return locLink.protocol + "//" + serverIP + (locLink.port == "" ? "" : ":" + locLink.port) + appPath;
+}
+
// Ignores Firebug (http://www.getfirebug.com/) console calls for browsers without firebug
if(!window.console || !console.firebug){
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2008-02-13 04:20:59 UTC (rev 747)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/spaceui.js 2008-02-13 14:20:56 UTC (rev 748)
@@ -99,11 +99,11 @@
}
var loginCookie = getLoginCookie();
var serverIP = serviceXML.getAttribute("serverip"); //we pass this in because Firefox and Applets on XP can resolve different IPs using load balanced DNS
- var serviceURI = getServiceURI();
+ var codeBase = getCodeBase(serverIP);
- var html = "<applet id='viewer' archive='ogoglio-common.jar,ogoglio-viewer-applet.jar' codebase='" + serviceURI + "' code='com.ogoglio.viewer.applet.ViewerApplet' width='" + viewerWidth + "' height='" + viewerHeight + "' mayscript='true'>";
+ var html = "<applet id='viewer' archive='ogoglio-common.jar,ogoglio-viewer-applet.jar' codebase='" + codeBase + "' code='com.ogoglio.viewer.applet.ViewerApplet' width='" + viewerWidth + "' height='" + viewerHeight + "' mayscript='true'>";
html += "<param name='loginCookie' value='" + loginCookie + "' />";
- html += "<param name='serviceURI' value='" + serviceURI + "' />";
+ html += "<param name='serviceURI' value='" + codeBase + "' />";
html += "<param name='serverIP' value='" + serverIP + "' />";
html += "<param name='spaceID' value='" + locationParameters['spaceID'] + "' />";
html += "<param name='image' value='" + appletLoadingImagePath + "' />";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <tre...@us...> - 2008-02-27 22:56:40
|
Revision: 778
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=778&view=rev
Author: trevorolio
Date: 2008-02-27 14:56:28 -0800 (Wed, 27 Feb 2008)
Log Message:
-----------
The compiled flex widget which can talk with Wowza (or any flash media server clone).
Added Paths:
-----------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/AC_OETags.js
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat-debug.html
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat-debug.swf
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat.html
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat.swf
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.htm
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.js
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.swf
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/playerProductInstall.swf
Added: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/AC_OETags.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/AC_OETags.js (rev 0)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/AC_OETags.js 2008-02-27 22:56:28 UTC (rev 778)
@@ -0,0 +1,269 @@
+// Flash Player Version Detection - Rev 1.5
+// Detect Client Browser type
+// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
+var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
+var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
+var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
+
+function ControlVersion()
+{
+ var version;
+ var axo;
+ var e;
+
+ // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
+
+ try {
+ // version will be set for 7.X or greater players
+ axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
+ version = axo.GetVariable("$version");
+ } catch (e) {
+ }
+
+ if (!version)
+ {
+ try {
+ // version will be set for 6.X players only
+ axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
+
+ // installed player is some revision of 6.0
+ // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
+ // so we have to be careful.
+
+ // default to the first public version
+ version = "WIN 6,0,21,0";
+
+ // throws if AllowScripAccess does not exist (introduced in 6.0r47)
+ axo.AllowScriptAccess = "always";
+
+ // safe to call for 6.0r47 or greater
+ version = axo.GetVariable("$version");
+
+ } catch (e) {
+ }
+ }
+
+ if (!version)
+ {
+ try {
+ // version will be set for 4.X or 5.X player
+ axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
+ version = axo.GetVariable("$version");
+ } catch (e) {
+ }
+ }
+
+ if (!version)
+ {
+ try {
+ // version will be set for 3.X player
+ axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
+ version = "WIN 3,0,18,0";
+ } catch (e) {
+ }
+ }
+
+ if (!version)
+ {
+ try {
+ // version will be set for 2.X player
+ axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
+ version = "WIN 2,0,0,11";
+ } catch (e) {
+ version = -1;
+ }
+ }
+
+ return version;
+}
+
+// JavaScript helper required to detect Flash Player PlugIn version information
+function GetSwfVer(){
+ // NS/Opera version >= 3 check for Flash plugin in plugin array
+ var flashVer = -1;
+
+ if (navigator.plugins != null && navigator.plugins.length > 0) {
+ if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
+ var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
+ var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
+ var descArray = flashDescription.split(" ");
+ var tempArrayMajor = descArray[2].split(".");
+ var versionMajor = tempArrayMajor[0];
+ var versionMinor = tempArrayMajor[1];
+ if ( descArray[3] != "" ) {
+ tempArrayMinor = descArray[3].split("r");
+ } else {
+ tempArrayMinor = descArray[4].split("r");
+ }
+ var versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
+ var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
+ }
+ }
+ // MSN/WebTV 2.6 supports Flash 4
+ else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
+ // WebTV 2.5 supports Flash 3
+ else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
+ // older WebTV supports Flash 2
+ else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
+ else if ( isIE && isWin && !isOpera ) {
+ flashVer = ControlVersion();
+ }
+ return flashVer;
+}
+
+// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
+function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
+{
+ versionStr = GetSwfVer();
+ if (versionStr == -1 ) {
+ return false;
+ } else if (versionStr != 0) {
+ if(isIE && isWin && !isOpera) {
+ // Given "WIN 2,0,0,11"
+ tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
+ tempString = tempArray[1]; // "2,0,0,11"
+ versionArray = tempString.split(","); // ['2', '0', '0', '11']
+ } else {
+ versionArray = versionStr.split(".");
+ }
+ var versionMajor = versionArray[0];
+ var versionMinor = versionArray[1];
+ var versionRevision = versionArray[2];
+
+ // is the major.revision >= requested major.revision AND the minor version >= requested minor
+ if (versionMajor > parseFloat(reqMajorVer)) {
+ return true;
+ } else if (versionMajor == parseFloat(reqMajorVer)) {
+ if (versionMinor > parseFloat(reqMinorVer))
+ return true;
+ else if (versionMinor == parseFloat(reqMinorVer)) {
+ if (versionRevision >= parseFloat(reqRevision))
+ return true;
+ }
+ }
+ return false;
+ }
+}
+
+function AC_AddExtension(src, ext)
+{
+ if (src.indexOf('?') != -1)
+ return src.replace(/\?/, ext+'?');
+ else
+ return src + ext;
+}
+
+function AC_Generateobj(objAttrs, params, embedAttrs)
+{
+ var str = '';
+ if (isIE && isWin && !isOpera)
+ {
+ str += '<object ';
+ for (var i in objAttrs)
+ str += i + '="' + objAttrs[i] + '" ';
+ for (var i in params)
+ str += '><param name="' + i + '" value="' + params[i] + '" /> ';
+ str += '></object>';
+ } else {
+ str += '<embed ';
+ for (var i in embedAttrs)
+ str += i + '="' + embedAttrs[i] + '" ';
+ str += '> </embed>';
+ }
+
+ document.write(str);
+}
+
+function AC_FL_RunContent(){
+ var ret =
+ AC_GetArgs
+ ( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
+ , "application/x-shockwave-flash"
+ );
+ AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
+}
+
+function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
+ var ret = new Object();
+ ret.embedAttrs = new Object();
+ ret.params = new Object();
+ ret.objAttrs = new Object();
+ for (var i=0; i < args.length; i=i+2){
+ var currArg = args[i].toLowerCase();
+
+ switch (currArg){
+ case "classid":
+ break;
+ case "pluginspage":
+ ret.embedAttrs[args[i]] = args[i+1];
+ break;
+ case "src":
+ case "movie":
+ args[i+1] = AC_AddExtension(args[i+1], ext);
+ ret.embedAttrs["src"] = args[i+1];
+ ret.params[srcParamName] = args[i+1];
+ break;
+ case "onafterupdate":
+ case "onbeforeupdate":
+ case "onblur":
+ case "oncellchange":
+ case "onclick":
+ case "ondblClick":
+ case "ondrag":
+ case "ondragend":
+ case "ondragenter":
+ case "ondragleave":
+ case "ondragover":
+ case "ondrop":
+ case "onfinish":
+ case "onfocus":
+ case "onhelp":
+ case "onmousedown":
+ case "onmouseup":
+ case "onmouseover":
+ case "onmousemove":
+ case "onmouseout":
+ case "onkeypress":
+ case "onkeydown":
+ case "onkeyup":
+ case "onload":
+ case "onlosecapture":
+ case "onpropertychange":
+ case "onreadystatechange":
+ case "onrowsdelete":
+ case "onrowenter":
+ case "onrowexit":
+ case "onrowsinserted":
+ case "onstart":
+ case "onscroll":
+ case "onbeforeeditfocus":
+ case "onactivate":
+ case "onbeforedeactivate":
+ case "ondeactivate":
+ case "type":
+ case "codebase":
+ ret.objAttrs[args[i]] = args[i+1];
+ break;
+ case "id":
+ case "width":
+ case "height":
+ case "align":
+ case "vspace":
+ case "hspace":
+ case "class":
+ case "title":
+ case "accesskey":
+ case "name":
+ case "tabindex":
+ ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
+ break;
+ default:
+ ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
+ }
+ }
+ ret.objAttrs["classid"] = classid;
+ if (mimeType) ret.embedAttrs["type"] = mimeType;
+ return ret;
+}
+
+
Added: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat-debug.html
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat-debug.html (rev 0)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat-debug.html 2008-02-27 22:56:28 UTC (rev 778)
@@ -0,0 +1,107 @@
+<!-- saved from url=(0014)about:internet -->
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title></title>
+<script src="AC_OETags.js" language="javascript"></script>
+<style>
+body { margin: 0px; overflow:hidden }
+</style>
+<script language="JavaScript" type="text/javascript">
+<!--
+// -----------------------------------------------------------------------------
+// Globals
+// Major version of Flash required
+var requiredMajorVersion = 9;
+// Minor version of Flash required
+var requiredMinorVersion = 0;
+// Minor version of Flash required
+var requiredRevision = 0;
+// -----------------------------------------------------------------------------
+// -->
+</script>
+</head>
+
+<body scroll="no">
+<script language="JavaScript" type="text/javascript" src="history.js"></script>
+<script language="JavaScript" type="text/javascript">
+<!--
+// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
+var hasProductInstall = DetectFlashVer(6, 0, 65);
+
+// Version check based upon the values defined in globals
+var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
+
+
+// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
+if ( hasProductInstall && !hasRequestedVersion ) {
+ // MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
+ // This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
+ // DO NOT MODIFY THE FOLLOWING FOUR LINES
+ // Location visited after installation is complete if installation is required
+ var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
+ var MMredirectURL = window.location;
+ document.title = document.title.slice(0, 47) + " - Flash Player Installation";
+ var MMdoctitle = document.title;
+
+ AC_FL_RunContent(
+ "src", "playerProductInstall",
+ "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
+ "width", "215",
+ "height", "140",
+ "align", "middle",
+ "id", "OgoglioChat",
+ "quality", "high",
+ "bgcolor", "#869ca7",
+ "name", "OgoglioChat",
+ "allowScriptAccess","sameDomain",
+ "type", "application/x-shockwave-flash",
+ "pluginspage", "http://www.adobe.com/go/getflashplayer"
+ );
+} else if (hasRequestedVersion) {
+ // if we've detected an acceptable version
+ // embed the Flash Content SWF when all tests are passed
+ AC_FL_RunContent(
+ "src", "OgoglioChat-debug",
+ "width", "215",
+ "height", "140",
+ "align", "middle",
+ "id", "OgoglioChat",
+ "quality", "high",
+ "bgcolor", "#869ca7",
+ "name", "OgoglioChat",
+ "flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id,
+ "allowScriptAccess","sameDomain",
+ "type", "application/x-shockwave-flash",
+ "pluginspage", "http://www.adobe.com/go/getflashplayer"
+ );
+ } else { // flash is too old or we can't detect the plugin
+ var alternateContent = 'Alternate HTML content should be placed here. '
+ + 'This content requires the Adobe Flash Player. '
+ + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
+ document.write(alternateContent); // insert non-flash content
+ }
+// -->
+</script>
+<noscript>
+ <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
+ id="OgoglioChat" width="215" height="140"
+ codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
+ <param name="movie" value="OgoglioChat-debug.swf" />
+ <param name="quality" value="high" />
+ <param name="bgcolor" value="#869ca7" />
+ <param name="allowScriptAccess" value="sameDomain" />
+ <embed src="OgoglioChat-debug.swf" quality="high" bgcolor="#869ca7"
+ width="215" height="140" name="OgoglioChat" align="middle"
+ play="true"
+ loop="false"
+ quality="high"
+ allowScriptAccess="sameDomain"
+ type="application/x-shockwave-flash"
+ pluginspage="http://www.adobe.com/go/getflashplayer">
+ </embed>
+ </object>
+</noscript>
+<iframe name="_history" src="history.htm" frameborder="0" scrolling="no" width="22" height="0"></iframe>
+</body>
+</html>
Added: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat-debug.swf
===================================================================
(Binary files differ)
Property changes on: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat-debug.swf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat.html
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat.html (rev 0)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat.html 2008-02-27 22:56:28 UTC (rev 778)
@@ -0,0 +1,107 @@
+<!-- saved from url=(0014)about:internet -->
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title></title>
+<script src="AC_OETags.js" language="javascript"></script>
+<style>
+body { margin: 0px; overflow:hidden }
+</style>
+<script language="JavaScript" type="text/javascript">
+<!--
+// -----------------------------------------------------------------------------
+// Globals
+// Major version of Flash required
+var requiredMajorVersion = 9;
+// Minor version of Flash required
+var requiredMinorVersion = 0;
+// Minor version of Flash required
+var requiredRevision = 0;
+// -----------------------------------------------------------------------------
+// -->
+</script>
+</head>
+
+<body scroll="no">
+<script language="JavaScript" type="text/javascript" src="history.js"></script>
+<script language="JavaScript" type="text/javascript">
+<!--
+// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
+var hasProductInstall = DetectFlashVer(6, 0, 65);
+
+// Version check based upon the values defined in globals
+var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
+
+
+// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
+if ( hasProductInstall && !hasRequestedVersion ) {
+ // MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
+ // This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
+ // DO NOT MODIFY THE FOLLOWING FOUR LINES
+ // Location visited after installation is complete if installation is required
+ var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
+ var MMredirectURL = window.location;
+ document.title = document.title.slice(0, 47) + " - Flash Player Installation";
+ var MMdoctitle = document.title;
+
+ AC_FL_RunContent(
+ "src", "playerProductInstall",
+ "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
+ "width", "215",
+ "height", "140",
+ "align", "middle",
+ "id", "OgoglioChat",
+ "quality", "high",
+ "bgcolor", "#869ca7",
+ "name", "OgoglioChat",
+ "allowScriptAccess","sameDomain",
+ "type", "application/x-shockwave-flash",
+ "pluginspage", "http://www.adobe.com/go/getflashplayer"
+ );
+} else if (hasRequestedVersion) {
+ // if we've detected an acceptable version
+ // embed the Flash Content SWF when all tests are passed
+ AC_FL_RunContent(
+ "src", "OgoglioChat",
+ "width", "215",
+ "height", "140",
+ "align", "middle",
+ "id", "OgoglioChat",
+ "quality", "high",
+ "bgcolor", "#869ca7",
+ "name", "OgoglioChat",
+ "flashvars","historyUrl=history.htm",
+ "allowScriptAccess","sameDomain",
+ "type", "application/x-shockwave-flash",
+ "pluginspage", "http://www.adobe.com/go/getflashplayer"
+ );
+ } else { // flash is too old or we can't detect the plugin
+ var alternateContent = 'Alternate HTML content should be placed here. '
+ + 'This content requires the Adobe Flash Player. '
+ + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
+ document.write(alternateContent); // insert non-flash content
+ }
+// -->
+</script>
+<noscript>
+ <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
+ id="OgoglioChat" width="215" height="140"
+ codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
+ <param name="movie" value="OgoglioChat.swf" />
+ <param name="quality" value="high" />
+ <param name="bgcolor" value="#869ca7" />
+ <param name="allowScriptAccess" value="sameDomain" />
+ <embed src="OgoglioChat.swf" quality="high" bgcolor="#869ca7"
+ width="215" height="140" name="OgoglioChat" align="middle"
+ play="true"
+ loop="false"
+ quality="high"
+ allowScriptAccess="sameDomain"
+ type="application/x-shockwave-flash"
+ pluginspage="http://www.adobe.com/go/getflashplayer">
+ </embed>
+ </object>
+</noscript>
+<iframe name="_history" src="history.htm" frameborder="0" scrolling="no" width="22" height="0"></iframe>
+</body>
+</html>
Added: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat.swf
===================================================================
(Binary files differ)
Property changes on: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/OgoglioChat.swf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.htm
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.htm (rev 0)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.htm 2008-02-27 22:56:28 UTC (rev 778)
@@ -0,0 +1,21 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<script type='text/javascript' language='JavaScript1.2' charset='utf-8'>
+var v = new top.Vars(top.getSearch(window));
+var fv = v.toString('$_');
+</script>
+</head>
+<body >
+<script type='text/javascript' language='JavaScript1.2' charset='utf-8'>
+document.writeln('<object id=\"utility\" name=\" \" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"" + activexDownloadURL + "#version=7,0,14,0\" width=\"100\" height=\"50\">');
+document.writeln('<param name=\"movie\" value=\"history.swf\" />');
+document.writeln('<param name=\"FlashVars\" value=\"'+fv+'&$_lconid='+top.lc_id+'\"/>');
+document.writeln('<param name=\"quality\" value=\"high\" />');
+document.writeln('<param name=\"bgcolor\" value=\"#FFFFFF\" />');
+document.writeln('<param name=\"profile\" value=\"false\" />');
+document.writeln('<embed id=\"utilityEmbed\" name=\"history.swf\" src=\"history.swf\" type=\"application/x-shockwave-flash\" flashvars=\"'+fv+'&$_lconid='+top.lc_id+'\" profile=\"false\" quality=\"high\" bgcolor=\"#FFFFFF\" width=\"100\" height=\"50\" align=\"\" pluginspage=\"" + pluginDownloadURL + "\"></embed>');
+document.writeln('</object>');
+</script>
+</body>
+</html>
\ No newline at end of file
Added: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.js (rev 0)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.js 2008-02-27 22:56:28 UTC (rev 778)
@@ -0,0 +1,56 @@
+// $Revision: 1.49 $
+// Vars
+try {
+Vars = function(qStr) {
+ this.numVars = 0;
+ if(qStr != null) {
+ var nameValue, name;
+ var pairs = qStr.split('&');
+ var pairLen = pairs.length;
+ for(var i = 0; i < pairLen; i++) {
+ var pair = pairs[i];
+ if( (pair.indexOf('=')!= -1) && (pair.length > 3) ) {
+ var nameValue = pair.split('=');
+ var name = nameValue[0];
+ var value = nameValue[1];
+ if(this[name] == null && name.length > 0 && value.length > 0) {
+ this[name] = value;
+ this.numVars++;
+ }
+ }
+ }
+ }
+}
+Vars.prototype.toString = function(pre) {
+ var result = '';
+ if(pre == null) { pre = ''; }
+ for(var i in this) {
+ if(this[i] != null && typeof(this[i]) != 'object' && typeof(this[i]) != 'function' && i != 'numVars') {
+ result += pre + i + '=' + this[i] + '&';
+ }
+ }
+ if(result.length > 0) result = result.substr(0, result.length-1);
+ return result;
+}
+function getSearch(wRef) {
+ var searchStr = '';
+ if(wRef.location.search.length > 1) {
+ searchStr = new String(wRef.location.search);
+ searchStr = searchStr.substring(1, searchStr.length);
+ }
+ return searchStr;
+}
+var lc_id = Math.floor(Math.random() * 100000).toString(16);
+if (this != top)
+{
+ try {
+ top.Vars = Vars;
+ top.getSearch = getSearch;
+ top.lc_id = lc_id;
+ } catch (e){
+ console.log("Error: " + e);
+ }
+}
+} catch (e) {
+ console.log("Error: " + e);
+}
Added: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.swf
===================================================================
(Binary files differ)
Property changes on: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/history.swf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/playerProductInstall.swf
===================================================================
(Binary files differ)
Property changes on: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/av/playerProductInstall.swf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|