diff --git a/getting-started/index.html b/getting-started/index.html index a56f6c1c..da4a89ec 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -18,9 +18,10 @@ Dogecoin - Getting Started - - + + + diff --git a/imgs/doge-ogimage.png b/imgs/doge-ogimage.png new file mode 100644 index 00000000..7922b15a Binary files /dev/null and b/imgs/doge-ogimage.png differ diff --git a/imgs/icons/icon-128x128.png b/imgs/icons/icon-128x128.png new file mode 100644 index 00000000..1091b84d Binary files /dev/null and b/imgs/icons/icon-128x128.png differ diff --git a/imgs/icons/icon-144x144.png b/imgs/icons/icon-144x144.png new file mode 100644 index 00000000..5338ccac Binary files /dev/null and b/imgs/icons/icon-144x144.png differ diff --git a/imgs/icons/icon-152x152.png b/imgs/icons/icon-152x152.png new file mode 100644 index 00000000..ce9fa9de Binary files /dev/null and b/imgs/icons/icon-152x152.png differ diff --git a/imgs/icons/icon-192x192.png b/imgs/icons/icon-192x192.png new file mode 100644 index 00000000..b2883c19 Binary files /dev/null and b/imgs/icons/icon-192x192.png differ diff --git a/imgs/icons/icon-384x384.png b/imgs/icons/icon-384x384.png new file mode 100644 index 00000000..f5bac680 Binary files /dev/null and b/imgs/icons/icon-384x384.png differ diff --git a/imgs/icons/icon-512x512.png b/imgs/icons/icon-512x512.png new file mode 100644 index 00000000..a11b63db Binary files /dev/null and b/imgs/icons/icon-512x512.png differ diff --git a/imgs/icons/icon-72x72.png b/imgs/icons/icon-72x72.png new file mode 100644 index 00000000..afb8a09d Binary files /dev/null and b/imgs/icons/icon-72x72.png differ diff --git a/imgs/icons/icon-96x96.png b/imgs/icons/icon-96x96.png new file mode 100644 index 00000000..78cc45a8 Binary files /dev/null and b/imgs/icons/icon-96x96.png differ diff --git a/index.html b/index.html index 221cad35..b7f1556f 100755 --- a/index.html +++ b/index.html @@ -13,11 +13,40 @@ --> - Dogecoin + Dogecoin - Open source peer to peer digital currency - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -61,6 +90,8 @@ + + @@ -532,7 +563,6 @@

+{% comment %} + + +{% endcomment %} diff --git a/js/dogecoin-i18n.js b/js/dogecoin-i18n.js index e4c72a83..9bc325a1 100644 --- a/js/dogecoin-i18n.js +++ b/js/dogecoin-i18n.js @@ -2,10 +2,10 @@ function enablei18n() { 'use strict'; var i18n = $.i18n(); var localeFromURL = getUrlParameter('lng'); - if(localeFromURL) { + if(localeFromURL) { i18n.locale = localeFromURL; } - + i18n.load('/i18n', i18n.locale).done( function() { $('[data-i18n]').each(function(index) { @@ -18,10 +18,10 @@ function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); - for (var i = 0; i < sURLVariables.length; i++) + for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); - if (sParameterName[0] == sParam) + if (sParameterName[0] == sParam) { return sParameterName[1]; } diff --git a/manifest.json b/manifest.json new file mode 100644 index 00000000..ada717fc --- /dev/null +++ b/manifest.json @@ -0,0 +1,52 @@ +{ + "name": "dogecoin.com", + "short_name": "dogecoin.com", + "theme_color": "#fff", + "background_color": "#fff", + "display": "browser", + "orientation": "portrait", + "scope": "/", + "start_url": "/", + "icons": [ + { + "src": "imgs/icons/icon-72x72.png", + "sizes": "72x72", + "type": "image/png" + }, + { + "src": "imgs/icons/icon-96x96.png", + "sizes": "96x96", + "type": "image/png" + }, + { + "src": "imgs/icons/icon-128x128.png", + "sizes": "128x128", + "type": "image/png" + }, + { + "src": "imgs/icons/icon-144x144.png", + "sizes": "144x144", + "type": "image/png" + }, + { + "src": "imgs/icons/icon-152x152.png", + "sizes": "152x152", + "type": "image/png" + }, + { + "src": "imgs/icons/icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "imgs/icons/icon-384x384.png", + "sizes": "384x384", + "type": "image/png" + }, + { + "src": "imgs/icons/icon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} \ No newline at end of file diff --git a/robots.txt b/robots.txt new file mode 100644 index 00000000..7ad924cc --- /dev/null +++ b/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Allow: / +Sitemap: https://dogecoin.com/sitemap.xml diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 00000000..8b83da59 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,13 @@ + + + + https://dogecoin.com/ + + + https://dogecoin.com/getting-started + + \ No newline at end of file diff --git a/sw.js b/sw.js new file mode 100644 index 00000000..a7e733ba --- /dev/null +++ b/sw.js @@ -0,0 +1,76 @@ +/* +Copyright 2015, 2019 Google Inc. All Rights Reserved. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +// Incrementing OFFLINE_VERSION will kick off the install event and force +// previously cached resources to be updated from the network. +const OFFLINE_VERSION = 1; +const CACHE_NAME = 'offline'; +// Customize this with a different URL if needed. +const OFFLINE_URL = 'offline.html'; + +self.addEventListener('install', (event) => { + event.waitUntil((async () => { + const cache = await caches.open(CACHE_NAME); + // Setting {cache: 'reload'} in the new request will ensure that the response + // isn't fulfilled from the HTTP cache; i.e., it will be from the network. + await cache.add(new Request(OFFLINE_URL, {cache: 'reload'})); + })()); +}); + +self.addEventListener('activate', (event) => { + event.waitUntil((async () => { + // Enable navigation preload if it's supported. + // See https://developers.google.com/web/updates/2017/02/navigation-preload + if ('navigationPreload' in self.registration) { + await self.registration.navigationPreload.enable(); + } + })()); + + // Tell the active service worker to take control of the page immediately. + self.clients.claim(); +}); + +self.addEventListener('fetch', (event) => { + // We only want to call event.respondWith() if this is a navigation request + // for an HTML page. + if (event.request.mode === 'navigate') { + event.respondWith((async () => { + try { + // First, try to use the navigation preload response if it's supported. + const preloadResponse = await event.preloadResponse; + if (preloadResponse) { + return preloadResponse; + } + + const networkResponse = await fetch(event.request); + return networkResponse; + } catch (error) { + // catch is only triggered if an exception is thrown, which is likely + // due to a network error. + // If fetch() returns a valid HTTP response with a response code in + // the 4xx or 5xx range, the catch() will NOT be called. + console.log('Fetch failed; returning offline page instead.', error); + + const cache = await caches.open(CACHE_NAME); + const cachedResponse = await cache.match(OFFLINE_URL); + return cachedResponse; + } + })()); + } + + // If our if() condition is false, then this fetch handler won't intercept the + // request. If there are any other fetch handlers registered, they will get a + // chance to call event.respondWith(). If no fetch handlers call + // event.respondWith(), the request will be handled by the browser as if there + // were no service worker involvement. +}); \ No newline at end of file