client-side.js revision 444985316bc63f83512ed2251cd427e3aa0262e5
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
a24665de9d5c773115a5918e60ed587aafe67d5cTimo Sirainen * Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
a24665de9d5c773115a5918e60ed587aafe67d5cTimo Sirainen * The contents of this file are subject to the terms
a24665de9d5c773115a5918e60ed587aafe67d5cTimo Sirainen * of the Common Development and Distribution License
a24665de9d5c773115a5918e60ed587aafe67d5cTimo Sirainen * (the License). You may not use this file except in
75a32ef74f52fd17728cf25ccc6309d35ae65dc2Timo Sirainen * compliance with the License.
a24665de9d5c773115a5918e60ed587aafe67d5cTimo Sirainen * You can obtain a copy of the License at
a24665de9d5c773115a5918e60ed587aafe67d5cTimo Sirainen * https://opensso.dev.java.net/public/CDDLv1.0.html or
75a32ef74f52fd17728cf25ccc6309d35ae65dc2Timo Sirainen * See the License for the specific language governing
75a32ef74f52fd17728cf25ccc6309d35ae65dc2Timo Sirainen * permission and limitations under the License.
75a32ef74f52fd17728cf25ccc6309d35ae65dc2Timo Sirainen * When distributing Covered Code, include this CDDL
75a32ef74f52fd17728cf25ccc6309d35ae65dc2Timo Sirainen * Header Notice in each file and include the License file
2de709376eddc50ec5fa470358bb57cf0a87bb1fTimo Sirainen * If applicable, add the following below the CDDL Header,
a24665de9d5c773115a5918e60ed587aafe67d5cTimo Sirainen * with the fields enclosed by brackets [] replaced by
2de709376eddc50ec5fa470358bb57cf0a87bb1fTimo Sirainen * your own identifying information:
a24665de9d5c773115a5918e60ed587aafe67d5cTimo Sirainen * "Portions Copyrighted [year] [name of copyright owner]"
a24665de9d5c773115a5918e60ed587aafe67d5cTimo Sirainen * Portions Copyrighted 2013 Syntegrity.
2de709376eddc50ec5fa470358bb57cf0a87bb1fTimo Sirainen * Portions Copyrighted 2013-2014 ForgeRock AS.
2de709376eddc50ec5fa470358bb57cf0a87bb1fTimo Sirainenvar collectScreenInfo = function () {
687d1dee0e92229232aa8be416897b640df67d07Timo Sirainen screenInfo.screenColourDepth = screen.pixelDepth;
687d1dee0e92229232aa8be416897b640df67d07Timo Sirainen console.warn("Cannot collect screen information. screen is not defined.");
return screenInfo;
collectTimezoneInfo = function () {
if (offset) {
return timezoneInfo;
collectBrowserPluginsInfo = function () {
return pluginsInfo;
// Getting geolocation takes some time and is done asynchronously, hence need a callback which is called once geolocation is retrieved.
var geolocationInfo = {};
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",
return fontsInfo;
devicePrint = {};