Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37319653c4 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +0,0 @@
|
||||
*~
|
||||
*.bak
|
||||
@@ -10,7 +10,7 @@ change line
|
||||
|
||||
var current_version = "1.8.0 (4114)";
|
||||
|
||||
to whichever is the latest version is available on the main site
|
||||
to whichever is thelatest version is available on the main site
|
||||
<http://www.singularityviewer.org/>
|
||||
|
||||
All of the work is done on "gh-pages" branch so that the pages can be
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
{
|
||||
"release":{
|
||||
"url":"http://www.singularityviewer.org/",
|
||||
"recommended":{
|
||||
"windows":"1.8.9 (8338)",
|
||||
"apple":"1.8.9 (8709)",
|
||||
"linux":"1.8.9 (8338)"
|
||||
},
|
||||
"minimum":{
|
||||
"windows":"1.8.9 (8338)",
|
||||
"apple":"1.8.9 (8709)",
|
||||
"linux":"1.8.9 (8338)"
|
||||
}
|
||||
},
|
||||
"alpha":{
|
||||
"url":"http://www.singularityviewer.org/kb/nightly-builds",
|
||||
"recommended":{
|
||||
"windows":"1.8.9 (8382)",
|
||||
"apple":"1.8.9 (8709)",
|
||||
"linux":"1.8.9 (8382)"
|
||||
},
|
||||
"minimum":{
|
||||
"windows":"1.8.7 (8193)",
|
||||
"apple":"1.8.9 (8709)",
|
||||
"linux":"1.8.7 (8193)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,151 +0,0 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset=utf-8 />
|
||||
<title>Singularity Quick Download</title>
|
||||
<style>
|
||||
body{
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
background-color: #1b1b1b;
|
||||
}
|
||||
|
||||
a{
|
||||
display: block;
|
||||
width: 224px;
|
||||
height: 44px;
|
||||
padding-left: 64px;
|
||||
padding-top: 56px;
|
||||
padding-bottom: 12px;
|
||||
padding-right: 96px;
|
||||
margin: 0px;
|
||||
border: 0px;
|
||||
font-family: sans-serif;
|
||||
font-size: 16px;
|
||||
color: white;
|
||||
line-height: 48px;
|
||||
text-decoration: none;
|
||||
background-image: url(http://www.singularityviewer.org/home/sg_download_unknown.png);
|
||||
}
|
||||
|
||||
|
||||
#windows{
|
||||
display: none;
|
||||
background-image: url(http://www.singularityviewer.org/home/sg_download_windows.png);
|
||||
}
|
||||
|
||||
#windows64{
|
||||
display: none;
|
||||
background-image: url(http://www.singularityviewer.org/home/sg_download_windows.png);
|
||||
}
|
||||
|
||||
#windows_chrome{
|
||||
display: none;
|
||||
background-image: url(http://www.singularityviewer.org/home/sg_download_windows.png);
|
||||
}
|
||||
|
||||
#mac{
|
||||
display: none;
|
||||
background-image: url(http://www.singularityviewer.org/home/sg_download_mac.png);
|
||||
}
|
||||
|
||||
#linux{
|
||||
display: none;
|
||||
background-image: url(http://www.singularityviewer.org/home/sg_download_linux.png);
|
||||
}
|
||||
|
||||
#linux64{
|
||||
display: none;
|
||||
background-image: url(http://www.singularityviewer.org/home/sg_download_linux64.png);
|
||||
}
|
||||
|
||||
span{
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a id="windows"
|
||||
href="https://github.com/singularity-viewer/SingularityViewer/releases/download/sv-1.8.9.8338-release/Singularity_1_8_9_8338_i686_Setup.exe"><span>
|
||||
Singularity 1.8.9 (8338)<br/>
|
||||
1 Apr 2020
|
||||
for Windows
|
||||
</span></a>
|
||||
<a id="windows64"
|
||||
href="https://github.com/singularity-viewer/SingularityViewer/releases/download/sv-1.8.9.8338-release/Singularity_1_8_9_8338_x86_64_Setup.exe"><span>
|
||||
Singularity 1.8.9 (8338)<br/>
|
||||
1 Apr 2020
|
||||
for Windows
|
||||
</span></a>
|
||||
<a id="windows_chrome"
|
||||
href="http://www.singularityviewer.org/downloads/#windows" target="_top"><span>
|
||||
Singularity 1.8.9 (8338)<br/>
|
||||
Latest Builds
|
||||
for Windows
|
||||
</span></a>
|
||||
<a id="mac"
|
||||
href="https://bitbucket.org/router_gray/singularityviewer/downloads/Singularity_Alpha_1_8_9_8709_x86_64.dmg"><span>
|
||||
Singularity 1.8.9 (8709)<br/>
|
||||
7 May 2020
|
||||
for OS X
|
||||
</span></a>
|
||||
<a id="linux64"
|
||||
href="https://github.com/singularity-viewer/SingularityViewer/releases/download/sv-1.8.9.8338-release/Singularity_1_8_9_8338_x86_64.tar.xz"><span>
|
||||
Singularity 1.8.9 (8338)<br/>
|
||||
1 Apr 2020
|
||||
for Linux64
|
||||
</span></a>
|
||||
<a id="linux"
|
||||
href="https://bitbucket.org/SingularityViewer/singularityviewer/downloads/Singularity-i686-1.8.6.6157.tar.bz2"><span>
|
||||
Singularity 1.8.6(6157)<br/>
|
||||
27 Feb 2015
|
||||
for Obsolete Linux
|
||||
</span></a>
|
||||
<a id="unknown" href="http://www.singularityviewer.org/downloads"><span>
|
||||
Unable to detect your system. <br/> Please visit Download section.</span></a>
|
||||
|
||||
<script type="text/javascript">
|
||||
var p = navigator.platform;
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
var is_64 = ua.indexOf("x86_64") != -1 || ua.indexOf("x86-64") != -1 || ua.indexOf("win64") != -1 ||
|
||||
ua.indexOf("x64;") != -1 || ua.indexOf("amd64") != -1 || ua.indexOf("wow64") != -1 || ua.indexOf("x64_64") != -1;
|
||||
if ((p.indexOf("Win32")!= -1) || (p.indexOf("Win64")!= -1)) {
|
||||
if (ua.indexOf('chrome')!= -1) {
|
||||
document.getElementById("windows_chrome").style.display = "block";
|
||||
} else {
|
||||
if (is_64) {
|
||||
document.getElementById("windows64").style.display = "block";
|
||||
}
|
||||
else {
|
||||
document.getElementById("windows").style.display = "block";
|
||||
}
|
||||
}
|
||||
document.getElementById("unknown").style.display = "none";
|
||||
}
|
||||
else if (p.indexOf("Linux")!= -1) {
|
||||
if (is_64) {
|
||||
document.getElementById("linux64").style.display = "block";
|
||||
}
|
||||
else {
|
||||
document.getElementById("linux").style.display = "block";
|
||||
}
|
||||
document.getElementById("unknown").style.display = "none";
|
||||
}
|
||||
else if (p.indexOf("MacIntel")!= -1) {
|
||||
document.getElementById("mac").style.display = "block";
|
||||
document.getElementById("unknown").style.diplay = "none";
|
||||
}
|
||||
|
||||
function nightly_page() { window.top.location.href = 'http://nightly.singularityviewer.org' }
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
BIN
login/alert.png
BIN
login/alert.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.0 KiB |
171
login/index.html
171
login/index.html
@@ -1,171 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Singularity Viewer</title>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
/*
|
||||
* Source: https://github.com/singularity-viewer/login-page
|
||||
*/
|
||||
var toolbarShown = true;
|
||||
var urlParams = {};
|
||||
|
||||
// Replace addition symbols with space
|
||||
function parseUrlParams() {
|
||||
function decode(s) { return decodeURIComponent(s.replace(/\+/g, " ")); }
|
||||
const search = /([^&=]+)=?([^&]*)/g;
|
||||
const query = window.location.search.substring(1);
|
||||
let match = undefined;
|
||||
|
||||
while (match = search.exec(query))
|
||||
urlParams[decode(match[1])] = decode(match[2]);
|
||||
}
|
||||
|
||||
function pageY(elem)
|
||||
{
|
||||
return elem.offsetParent ? (elem.offsetTop + pageY(elem.offsetParent)) : elem.offsetTop;
|
||||
}
|
||||
|
||||
function resizeIframe()
|
||||
{
|
||||
let height = document.documentElement.clientHeight;
|
||||
let orig = document.getElementById('origpage');
|
||||
height -= pageY(orig);
|
||||
height = (height < 0) ? 0 : height;
|
||||
orig.style.height = height + 'px';
|
||||
}
|
||||
|
||||
function setVisible(e, visible)
|
||||
{
|
||||
var elem = document.getElementById(e);
|
||||
if (!elem) return;
|
||||
|
||||
elem.style.display = visible ? "block" : "none";
|
||||
}
|
||||
|
||||
function updateVisibility(visible)
|
||||
{
|
||||
setVisible("opentoolbar", !visible);
|
||||
setVisible("singtoolbar", visible);
|
||||
resizeIframe();
|
||||
}
|
||||
|
||||
function toggleToolbar()
|
||||
{
|
||||
toolbarShown = !toolbarShown;
|
||||
updateVisibility(toolbarShown);
|
||||
}
|
||||
|
||||
// Main
|
||||
window.onload = function()
|
||||
{
|
||||
parseUrlParams();
|
||||
if (!urlParams["original_page"] || !urlParams["channel"]) return;
|
||||
window.onresize = resizeIframe;
|
||||
let orig = document.getElementById('origpage');
|
||||
orig.onload = resizeIframe;
|
||||
orig.setAttribute("src", urlParams["original_page"]);
|
||||
document.getElementById('closetoolbar').onclick = toggleToolbar;
|
||||
document.getElementById('opentoolbar').onclick = toggleToolbar;
|
||||
|
||||
// Customize message per channel
|
||||
const channel = urlParams["channel"];
|
||||
setVisible(
|
||||
channel == "Singularity Alpha" ? "alpha_updateavail" :
|
||||
channel == "Singularity Zero" ? urlParams["lang"] == "fr" ? "zero_updatetoalpha_fr" : "zero_updatetoalpha" :
|
||||
"updateavail",
|
||||
true);
|
||||
|
||||
updateVisibility(toolbarShown);
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<style media="screen" type="text/css">
|
||||
html, body
|
||||
{
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
color: #bbb;
|
||||
background-color: #212121;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
a
|
||||
{
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover
|
||||
{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#origpage
|
||||
{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#singtoolbar
|
||||
{
|
||||
display: none;
|
||||
margin-top: 25px;
|
||||
}
|
||||
#opentoolbar
|
||||
{
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
display: none;
|
||||
}
|
||||
#closetoolbar
|
||||
{
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
margin-top: 19px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="opentoolbar" title="Version check"><img src="down_arrow.png" /></div>
|
||||
<div id="singtoolbar">
|
||||
<div id="closetoolbar"><img src="x.png"/></div>
|
||||
<div id="toolbarcontent" style="margin: 0px 4px 10px 12px;">
|
||||
<div id="updateavail" style="display: none;">
|
||||
<img src="alert.png" style="vertical-align: bottom;" />
|
||||
An updated version of Singularity is available. Please visit the
|
||||
<a href="http://www.singularityviewer.org/" target="_external">Singularity main site</a>
|
||||
to download it.
|
||||
</div>
|
||||
<div id="alpha_updateavail" style="display: none;">
|
||||
<img src="alert.png" style="vertical-align: bottom;" />
|
||||
An updated version of Singularity is available. Please visit the
|
||||
<a href="http://www.singularityviewer.org/kb/nightly-builds" target="_external">Singularity Nightly builds page</a>
|
||||
to download it.
|
||||
</div>
|
||||
<div id="zero_updatetoalpha" style="display: none;">
|
||||
<img src="alert.png" style="vertical-align: bottom;" />
|
||||
Thank you kindly, for testing Singularity Zero, please migrate to Singularity nightly from the
|
||||
<a href="http://www.singularityviewer.org/kb/nightly-builds" target="_external">nightly builds page</a>
|
||||
~
|
||||
</div>
|
||||
<div id="zero_updatetoalpha_fr" style="display: none;">
|
||||
<img src="alert.png" style="vertical-align: bottom;" />
|
||||
Nous remercions, grandement les gens qui ont aidé en testant la zero, maintenant elle est basculée sur une nightly:
|
||||
<a href="http://www.singularityviewer.org/kb/nightly-builds" target="_external">nightly builds page</a>
|
||||
~
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<iframe id="origpage"/>
|
||||
</body>
|
||||
</html>
|
||||
BIN
login/x.png
BIN
login/x.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 KiB |
Reference in New Issue
Block a user