Przeglądaj źródła

updates home view banners

main
Keith Daulton 2 lat temu
rodzic
commit
253ed09bd6
2 zmienionych plików z 4 dodań i 2 usunięć
  1. +1
    -1
      src/webviews/apps/home/home.html
  2. +3
    -1
      src/webviews/apps/home/home.ts

+ 1
- 1
src/webviews/apps/home/home.html Wyświetl plik

@ -93,7 +93,7 @@
}
</style>
<div class="ribbon-banner-container" data-banner="cyberweek2022" hidden>
<a href="#" class="ribbon-banner">
<a href="https://bit.ly/3V2uvVY" class="ribbon-banner">
<h2>
<strong>50% off</strong>
<span class="ribbon-banner__subtext">GitLens Pro &amp; all GitKraken products!</span>

+ 3
- 1
src/webviews/apps/home/home.ts Wyświetl plik

@ -357,9 +357,11 @@ function toggleArrayItem(list: string[] = [], item: string, add = true) {
return list;
}
const cyberweekStart = Date.parse('2022-11-28T07:00:00.000-08:00');
const cyberweekEnding = Date.parse('2022-12-06T00:00:00.000-08:00');
function showCyberWeek() {
return Date.now() < cyberweekEnding;
const now = Date.now();
return now < cyberweekEnding && now >= cyberweekStart;
}
new HomeApp();

Ładowanie…
Anuluj
Zapisz