2019-02-27 23:49:00 +01:00
|
|
|
|
|
|
|
var createLog = function(){
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var div = document.getElementById("log");
|
|
|
|
|
|
|
|
return function createLog(){
|
|
|
|
var logDiv = document.createElement("div");
|
|
|
|
logDiv.className = "log";
|
|
|
|
div.appendChild(logDiv);
|
|
|
|
return function createLine(str){
|
|
|
|
var logLine = document.createElement("div");
|
|
|
|
logLine.className = "logLine";
|
|
|
|
logDiv.appendChild(logLine);
|
|
|
|
logLine.textContent = str;
|
|
|
|
return function updateLine(str){
|
|
|
|
logLine.textContent = str;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}();
|
|
|
|
|
|
|
|
var log = createLog();
|
|
|
|
|
2019-03-12 22:30:37 +01:00
|
|
|
log("user agent equal between server and client: " + (window.serverUserAgent === navigator.userAgent));
|
2019-02-27 23:49:00 +01:00
|
|
|
|
|
|
|
Object.keys(navigator.__proto__).sort().forEach(function(property){
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var value = navigator[property];
|
|
|
|
if ((typeof value) === "string"){
|
|
|
|
log(property + ": " + value);
|
|
|
|
}
|
|
|
|
});
|
2019-05-22 23:39:56 +02:00
|
|
|
|
|
|
|
var section = document.createElement("h2");
|
|
|
|
section.textContent = "Values in iFrame";
|
|
|
|
document.getElementById("log").append(section);
|
|
|
|
|
|
|
|
log = createLog();
|
|
|
|
|
|
|
|
var iframe = document.createElement("iframe");
|
|
|
|
document.body.appendChild(iframe);
|
|
|
|
var iframeWindow = frames[frames.length - 1];
|
|
|
|
|
|
|
|
Object.keys(navigator.__proto__).sort().forEach(function(property){
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var value = iframeWindow.navigator[property];
|
|
|
|
if ((typeof value) === "string"){
|
|
|
|
log(property + "@iframe: " + value);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
document.body.removeChild(iframe);
|