diff --git a/_includes/homepage_content.html b/_includes/homepage_content.html index d9b6e70d..49dfdb5c 100644 --- a/_includes/homepage_content.html +++ b/_includes/homepage_content.html @@ -1,5 +1,3 @@ - -
Windows | - 64 Bit + .exe | |||
Debian/Ubuntu | - 32 Bit | - 64 Bit + .deb | |||
').text('Action'), $(' | ').text('Price ('+buildTKR(pair)+')'), $(' | ').text('Trade Size (BTC)'), - $(' | ').text('Trade Size ('+buildTKR(pair)+')'), + $(' | ').text('Trade Size ('+buildTKR(pair)+')')
).appendTo('#trade-history-header');
}else{
@@ -253,7 +251,7 @@ function buildData(jsonUrl){
pair = 'btc';
jsonUrl = "https://markets.bisq.network/api/volumes?basecurrency=btc&milliseconds=true×tamp=no&format=jscallback&fillgaps=&callback=?&interval=day";
- console.log("chart volumes: " + pair);
+ //console.log("chart volumes: " + pair);
getTrades('all');
}else{
@@ -263,12 +261,6 @@ function buildData(jsonUrl){
getOffers(pair);
}
-
-
-
- console.log(jsonUrl);
-
-
$.getJSON(jsonUrl, function (data) {
diff --git a/js/scripts.js b/js/scripts.js
index 453de051..60025844 100644
--- a/js/scripts.js
+++ b/js/scripts.js
@@ -1,66 +1,86 @@
-$(document).ready(function() {
-
-
-
-
- //OS detection
- var OSName = "Unknown OS";
- if (navigator.userAgent.indexOf("Win") != -1) OSName = "Windows";
- else if (navigator.userAgent.indexOf("Mac") != -1) OSName = "MacOS";
- else if (navigator.userAgent.indexOf("Linux") != -1) OSName = "Linux";
- else if (navigator.userAgent.indexOf("X11") != -1) OSName = "UNIX";
-
- switch (OSName) {
- case "MacOS":
- $('.dl-mac').addClass('selected');
- $('.id-mac').removeClass('hidden').addClass('shown');
- break;
- case "Windows":
- if (navigator.userAgent.indexOf("WOW64") != -1 || navigator.userAgent.indexOf("Win64") != -1) {
- $('.dl-win64').addClass('selected');
- $('.id-win64').removeClass('hidden').addClass('shown');
- }
- break;
- case "Linux":
- var is64 = navigator.userAgent.indexOf("x86_64") != -1;
- if (navigator.userAgent.indexOf("Ubuntu") != -1 || navigator.userAgent.indexOf("Debian") != -1) {
- $(is64 ? '.dl-deb64' : '.dl-deb32').addClass('selected');
- $(is64 ? '.id-deb64' : '.id-deb32').removeClass('hidden').addClass('shown');
- } else if (navigator.userAgent.indexOf("Redhat") != -1 ||
- navigator.userAgent.indexOf("CentOS") != -1 ||
- navigator.userAgent.indexOf("Fedora") != -1) {
- $(is64 ? '.dl-rpm64' : '.dl-rpm32').addClass('selected');
- $(is64 ? '.id-rpm64' : '.id-rpm32').removeClass('hidden').addClass('shown');
- }
- break;
- }
-
-
- var userAgent = navigator.userAgent || navigator.vendor || window.opera;
- if (/windows phone/i.test(userAgent)) {
- //nothing yet
- }
- if (/android/i.test(userAgent)) {
- $('.downloads-android').removeClass('hidden').addClass('shown');
- $('.id-all').removeClass('hidden').addClass('shown');
- }
- if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
- $('.downloads-ios').removeClass('hidden').addClass('shown');
- $('.id-all').removeClass('hidden').addClass('shown');
- }
-
-
-
- //console.log(OSName);
-
- // add virtual pageview and event tracking for download attempts
- $('.dl-win64, .dl-mac, .dl-deb32, .dl-deb64').click(function() {
- ga('send', 'pageview', location.pathname + 'release');
- ga('send', 'event', 'Release Build', 'download', $(this).attr('class').split('-').pop());
- });
-
-
-
+$( document ).ready( function() {
+
+
+ /**************************************************
+ detect os to show correct download links
+ **************************************************/
+
+ var desktop = true;
+ var uAgent = navigator.userAgent || navigator.vendor || window.opera;
+ var osName = "unknown";
+ var downloadLink = " |
---|