mirror of
https://github.com/cregit/cregit.git
synced 2026-10-23 06:15:11 +02:00
41 lines
2.1 KiB
JavaScript
41 lines
2.1 KiB
JavaScript
function windowpop(url) {
|
|
var leftPosition, topPosition;
|
|
var width = 800;
|
|
var height = 1200;
|
|
leftPosition = (window.screen.width / 2) - ((width / 2) + 10);
|
|
//Allow for title and status bars.
|
|
topPosition = (window.screen.height / 2) - ((height / 2) + 50);
|
|
//Open the window.
|
|
window.open(url, "cregit", "status=no,height=" + height + ",width=" + width + ",resizable=yes,left=" + leftPosition + ",top=" + topPosition + ",screenX=" + leftPosition + ",screenY=" + topPosition);
|
|
}
|
|
function windowpopLinux(cid) {
|
|
var leftPosition, topPosition;
|
|
var width = 800;
|
|
var height = 1200;
|
|
leftPosition = (window.screen.width / 2) - ((width / 2) + 10);
|
|
//Allow for title and status bars.
|
|
topPosition = (window.screen.height / 2) - ((height / 2) + 50);
|
|
//Open the window.
|
|
window.open("https://github.com/git/git/commit/" + cid, "cregit", "status=no,height=" + height + ",width=" + width + ",resizable=yes,left=" + leftPosition + ",top=" + topPosition + ",screenX=" + leftPosition + ",screenY=" + topPosition);
|
|
}
|
|
function windowpopBitkeeper(cid) {
|
|
var leftPosition, topPosition;
|
|
var width = 800;
|
|
var height = 1200;
|
|
leftPosition = (window.screen.width / 2) - ((width / 2) + 10);
|
|
//Allow for title and status bars.
|
|
topPosition = (window.screen.height / 2) - ((height / 2) + 50);
|
|
//Open the window.
|
|
window.open("https://github.com/git/git/commit/" + cid, "cregit", "status=no,height=" + height + ",width=" + width + ",resizable=yes,left=" + leftPosition + ",top=" + topPosition + ",screenX=" + leftPosition + ",screenY=" + topPosition);
|
|
}
|
|
function windowpopPreHist(cid) {
|
|
var leftPosition, topPosition;
|
|
var width = 800;
|
|
var height = 1200;
|
|
leftPosition = (window.screen.width / 2) - ((width / 2) + 10);
|
|
//Allow for title and status bars.
|
|
topPosition = (window.screen.height / 2) - ((height / 2) + 50);
|
|
//Open the window.
|
|
window.open("https://github.com/git/git/commit/" + cid, "cregit", "status=no,height=" + height + ",width=" + width + ",resizable=yes,left=" + leftPosition + ",top=" + topPosition + ",screenX=" + leftPosition + ",screenY=" + topPosition);
|
|
}
|