client-side.js revision 67d4b8e0d7b2401ae02cde1c197df565239df882
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
*/
/*
* Portions Copyrighted 2013 Syntegrity.
* Portions Copyrighted 2013-2014 ForgeRock AS.
*/
var collectScreenInfo = function () {
var screenInfo = {};
if (screen) {
}
}
if (screen.pixelDepth) {
}
} else {
}
return screenInfo;
},
collectTimezoneInfo = function () {
if (offset) {
} else {
}
return timezoneInfo;
},
collectBrowserPluginsInfo = function () {
}
return pluginsInfo;
} else {
return {};
}
},
// Getting geolocation takes some time and is done asynchronously, hence need a callback which is called once geolocation is retrieved.
collectGeolocationInfo = function (callback) {
var geolocationInfo = {};
});
} else {
}
},
collectBrowserFontsInfo = function () {
var fontsInfo = {}, i, fontsList = ["cursive","monospace","serif","sans-serif","fantasy","default","Arial","Arial Black",
"Arial Narrow","Arial Rounded MT Bold","Bookman Old Style","Bradley Hand ITC","Century","Century Gothic",
"Comic Sans MS","Courier","Courier New","Georgia","Gentium","Impact","King","Lucida Console","Lalit",
"Modena","Monotype Corsiva","Papyrus","Tahoma","TeX","Times","Times New Roman","Trebuchet MS","Verdana",
"Verona"];
}
}
return fontsInfo;
},
devicePrint = {};
}
}
if (navigator.appCodeName) {
}
if (navigator.appVersion) {
}
if (navigator.appMinorVersion) {
}
}
}
}
}
}
if (navigator.productSub) {
}
}
}
}
if (navigator.userLanguage) {
}
if (navigator.browserLanguage) {
}
if (navigator.systemLanguage) {
}
// This will cause the script to wait until the user's location has been found.
// To avoid the wait move the output.value assignment outside of the function callback
collectGeolocationInfo(function(geolocationInfo) {
});