Compare commits
73 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0e1f69b91 | ||
|
|
95de43f5b6 | ||
|
|
93e15177a4 | ||
|
|
c5361e277d | ||
|
|
4dcfd0bc00 | ||
|
|
6366593db1 | ||
|
|
2f32e5ae35 | ||
|
|
33a6a29bc8 | ||
|
|
9083b09468 | ||
|
|
e87088a8e0 | ||
|
|
3831cb8831 | ||
|
|
1632dc2d87 | ||
|
|
7f64d893a4 | ||
|
|
7e6a1461bd | ||
|
|
b4b189c486 | ||
|
|
5d3e0d3ab6 | ||
|
|
bd51f53299 | ||
|
|
bcc1ff0dc1 | ||
|
|
105afdf19c | ||
|
|
87242bc288 | ||
|
|
fbf510b5c1 | ||
|
|
1bc762d1b1 | ||
|
|
f453a8f1a0 | ||
|
|
e726c00b61 | ||
|
|
be9c9a02b3 | ||
|
|
a519bda2f1 | ||
|
|
a7c81ca33f | ||
|
|
ee6b05f95f | ||
|
|
21a7292039 | ||
|
|
fef374262a | ||
|
|
55c1a90113 | ||
|
|
a645bf03d9 | ||
|
|
77732d1cf9 | ||
|
|
65d7e2b816 | ||
|
|
3b1257177a | ||
|
|
21bd4b2ec1 | ||
|
|
9cb391c7db | ||
|
|
24d8acc143 | ||
|
|
80242142c1 | ||
|
|
2c822bf38a | ||
|
|
836537c922 | ||
|
|
58e212d110 | ||
|
|
73c111ac47 | ||
|
|
6f7448b9bc | ||
|
|
de82314240 | ||
|
|
0ed82aeb2e | ||
|
|
e01cca312f | ||
|
|
a0b2d58099 | ||
|
|
6c6899ebcd | ||
|
|
7040e25769 | ||
|
|
6db317033f | ||
|
|
6b6dfb597b | ||
|
|
29166a13e6 | ||
|
|
a896e3ce54 | ||
|
|
7bc1ae350f | ||
|
|
bd0246838a | ||
|
|
98a83ced7a | ||
|
|
b9a20960f9 | ||
|
|
5167d7928b | ||
|
|
95e36d7200 | ||
|
|
9ad05711c9 | ||
|
|
afd110c000 | ||
|
|
0597fec87d | ||
|
|
b006ca5681 | ||
|
|
2d5cf46e51 | ||
|
|
f294ca6708 | ||
|
|
6d68c2b023 | ||
|
|
849fbee70e | ||
|
|
d837af8158 | ||
|
|
66f35a1db0 | ||
|
|
5549837145 | ||
|
|
f547f7e01e | ||
|
|
23f912c28e |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*~
|
||||
*.bak
|
||||
@@ -10,7 +10,7 @@ change line
|
||||
|
||||
var current_version = "1.8.0 (4114)";
|
||||
|
||||
to whichever is thelatest version is available on the main site
|
||||
to whichever is the latest 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
|
||||
|
||||
28
api/get_update_info.json
Normal file
28
api/get_update_info.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"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)"
|
||||
}
|
||||
}
|
||||
}
|
||||
151
downloads/index.html
Normal file
151
downloads/index.html
Normal file
@@ -0,0 +1,151 @@
|
||||
<?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
Normal file
BIN
login/alert.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
BIN
login/down_arrow.png
Normal file
BIN
login/down_arrow.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
171
login/index.html
Normal file
171
login/index.html
Normal file
@@ -0,0 +1,171 @@
|
||||
<!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
Normal file
BIN
login/x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
Reference in New Issue
Block a user