Skip to content

Commit

Permalink
Merge pull request #7 from FANMixco/Upgrade
Browse files Browse the repository at this point in the history
New support
  • Loading branch information
FANMixco authored May 7, 2021
2 parents 9ccc059 + 9862c28 commit 87095a6
Show file tree
Hide file tree
Showing 13 changed files with 113 additions and 24 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ <h4 class="mdl-dialog__title" data-tag="confirmTitle"></h4>
<li class="mdl-list__item"><b>English</b>: Federico Navarrete</li>
<li class="mdl-list__item"><b>Español</b>: Federico Navarrete</li>
<li class="mdl-list__item"><b>Italiano</b>: Luisa Castellanos</li>
<li class="mdl-list__item"><b>Nederlands</b>: Heimen Stoffels</li>
<li class="mdl-list__item"><b>Polski</b>: Radosław Dąbrowski</li>
<li class="mdl-list__item"><b>Ру́сский</b>: Andrei Timofeev</li>
</ul>
Expand All @@ -236,7 +237,8 @@ <h4 class="mdl-dialog__title" data-tag="confirmTitle"></h4>
</div>
</main>
<div id="divCloseAbout" class="mdl-dialog__actions">
<button type="button" class="mdl-button close" data-tag="close"></button>
<button class="mdl-button close" data-tag="close"></button>
<button id="btnSponsor2Us" type="button" class="mdl-button close" class="mdl-button mdl-button--primary" data-tag="sponsorUs"></button>
</div>
</dialog>
<dialog class="mdl-dialog" id="changesDialog">
Expand Down Expand Up @@ -404,7 +406,7 @@ <h4 class="hCustom" data-tag="timeMaximum"></h4>
<button aria-label='close' class="mdl-snackbar__action" type="button"></button>
</div>
<footer>
<span data-tag="copyright1"></span><a rel='noreferrer' class="externalLinks" href="http://federiconavarrete.com">Federico Navarrete</a><span data-tag="copyright2"></span><a rel='noreferrer' class="externalLinks" href="http://theleadership.pl">The Leader Ship Toastmasters</a><span id='spanCopyright3' data-tag="copyright3"></span><span>.</span>
<span data-tag="copyright1"></span><a rel='noreferrer' class="externalLinks" href="http://federiconavarrete.com">Federico Navarrete</a><span data-tag="copyright2"></span><a rel='noreferrer' class="externalLinks" href="http://theleadership.pl">The Leader Ship Toastmasters</a><span id='spanCopyright3' data-tag="copyright3"></span>. <a rel='noreferrer' class="externalLinks" href="https://github.com/sponsors/FANMixco"><span id='sponsorUs' data-tag="sponsorUs"></span></a>.
</footer>
<!--Browser ONLY actions-->
<script src="browserSpecific/js/dialog-polyfill.min.js"></script>
Expand Down
7 changes: 4 additions & 3 deletions js/lang/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"timeMaximum": "Maximální čas",
"timeMinimum": "Minimální čas",
"title": "Časoměříč Toastmasters",
"installiOS": "Nainstalujte si Toastmasters Timer na váš iPhone nebo iPad: klepněte na Sdílet a pak na Přidat na domovskou obrazovku.",
"installiOS": "Chcete-li nainstalovat časovač Toastmasters na svůj iPhone nebo iPad, klepněte na Sdílet a poté Přidat na domovskou obrazovku.",
"translators": "Překladatelé",
"specialThanks": "Zvláštní poděkování všem překladatelům a recenzentům."
}
"specialThanks": "Zvláštní poděkování všem překladatelům a recenzentům.",
"sponsorUs": "Kupte nám ☕"
}
7 changes: 4 additions & 3 deletions js/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"timeMaximum": "Maximale Zeit",
"timeMinimum": "Mindestzeit",
"title": "Toastmasters Timer",
"installiOS": "Installieren Sie den Toastmasters Timer auf Ihrem iPhone oder iPad: Drϋcken Sie auf Freigeben und dann auf Zum Startbildschirm hinzufügen.",
"installiOS": "Um den Toastmasters Timer auf Ihrem iPhone oder iPad zu installieren, tippen Sie auf Teilen und dann auf Zum Startbildschirm hinzufügen.",
"translators": "Übersetzer",
"specialThanks": "Besonderer Dank an alle Übersetzer und Rezensenten."
}
"specialThanks": "Besonderer Dank an alle Übersetzer und Rezensenten.",
"sponsorUs": "Kaufen Sie uns ein ☕"
}
7 changes: 4 additions & 3 deletions js/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"timeMaximum": "Maximum",
"timeMinimum": "Minimum",
"title": "Toastmasters Timer",
"installiOS": "Install the Toastmasters Timer on your iPhone or iPad: tap Share and then Add to Home Screen.",
"installiOS": "To install the Toastmasters Timer on your iPhone or iPad, tap on Share and then Add to Home Screen.",
"translators": "Translators",
"specialThanks": "Special thanks for all translators and reviewers."
}
"specialThanks": "Special thanks for all translators and reviewers.",
"sponsorUs": "Buy us a ☕"
}
5 changes: 3 additions & 2 deletions js/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@
"title": "Toastmasters Cronómetro",
"installiOS": "Instale el Cronónometro de Toastmasters en su iPhone o iPad: toque Compartir y luego Agregar a la pantalla de inicio.",
"translators": "Traductores",
"specialThanks": "Agradecimientos especiales a todos los traductores y verificadores."
}
"specialThanks": "Agradecimientos especiales a todos los traductores y verificadores.",
"sponsorUs": "Cómpranos un ☕"
}
5 changes: 3 additions & 2 deletions js/lang/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@
"title": "Timer di Toastmasters",
"installiOS": "Installa il Timer Toastmasters sul tuo iPhone o iPad: tocca Condividi e poi Aggiungi alla schermata Home.",
"translators": "Traduttori",
"specialThanks": "Un ringraziamento speciale a tutti i traduttori e revisori."
}
"specialThanks": "Un ringraziamento speciale a tutti i traduttori e revisori.",
"sponsorUs": "Compraci un ☕"
}
63 changes: 63 additions & 0 deletions js/lang/nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"about": "Over ons",
"about1": "Toastmasters-tijdklok is een app, ontwikkeld door Supernova IC, om uw vergaderingen met alle essentiële functies te vergemakkelijken.",
"about2": "Als u vragen heeft, kunt u contact opnemen met de hoofdontwikkelaar:",
"about3": "© Alle rechten voorbehouden Supernova IC, 2013 - {0}.",
"about4": "Als u geïnteresseerd bent in meer innovatieve en unieke projecten, kunt u onze website bekijken:",
"cancelBtn": "Annuleren",
"cancel": "Nee",
"changesBody": "Wilt u de wijzigingen opslaan?",
"changesTitle": "Wijzigingen",
"chooseSpeech": "Soort voordracht",
"chooseTime": "Kies een voordracht",
"clapping": "Applaus",
"clear": "Wissen",
"close": "Sluiten",
"confirm": "Ja",
"confirmTitle": "Bevestigen",
"copyright1": "Met ♥ gemaakt door ",
"copyright2": " van ",
"copyright3": "Vertaald door <a href='mailto:[email protected]'>Heimen Stoffels</a>",
"deleteConfirmation": "Wilt u de geselecteerde items verwijderen?",
"emptyCustom": "De aangepaste tijden zijn 0. Wijzig dit of kies een andere optie.",
"errorHalf": "De minimale tijd kan niet groter zijn dan of gelijk zijn aan de maximale tijd.",
"errorMax": "De optimale tijd kan niet groter zijn dan of gelijk aan de maximale tijd.",
"errorMin": "De minimale tijd kan niet groter zijn dan of gelijk aan de optimale tijd.",
"lblExportMsg": "Agenda exporteren",
"meetingAt": "Vergadering om",
"ninjaDisabled": "Ninja-modus uitgeschakeld",
"ninjaEnabled": "Ninja-modus ingeschakeld",
"noHints": "Let op: er zijn geen extra hints tijdens de wedstrijden",
"noSpeakers": "Er zijn geen voordrachten",
"notSaved": "Uw aangepaste tijden zijn niet opgeslagen - controleer ze",
"opt1": "Vraag van de dag (30 sec.)",
"opt10": "13 tot 15 min.",
"opt11": "18 tot 20 min.",
"opt12": "Aangepast",
"opt13": "1 minuut",
"opt2": "4 tot 6 min. (ijsbreker)",
"opt3": "5 tot 7 min. (gebruikelijk)",
"opt4": "8 tot 10 min.",
"opt5": "1 tot 1:30 min. (introductie)",
"opt6": "2 tot 3 min. (evaluatie)",
"opt7": "5 tot 6 min. (algemene evaluatie)",
"opt8": "1 tot 2 min. (tafelgesprekken)",
"opt9": "10 tot 12 min.",
"pMember": "Spreker",
"pin": "Vastmaken",
"recorded": "Genoteerde tijd",
"resetWarning": "Weet u zeker dat u opnieuw wilt beginnen?",
"save": "Opslaan",
"set": "Instellen",
"setTime": "Tijd instellen",
"stickMsg": "Uw reis om een kampioen te worden is begonnen, en deze tijdklok kan u helpen de tijd te verbergen. U kunt deze altijd aan- en uitzetten, maar let op: tijdens de laatste voordracht zijn er geen extra hints!<br /><h5><strong>Bent u klaar voor de uitdaging?</strong></h5>",
"stickMsgTitle": "Welkom!",
"time": "Tijd",
"timeHalfway": "Optimale tijd",
"timeMaximum": "Maximale tijd",
"timeMinimum": "Minimale tijd",
"installiOS": "Om de Toastmasters Timer op uw iPhone of iPad te installeren, tikt u op Delen en vervolgens op Toevoegen aan startscherm.",
"translators": "Vertalers",
"specialThanks": "Met dank aan alle vertalers en recensenten.",
"sponsorUs": "Koop ons een ☕"
}
5 changes: 3 additions & 2 deletions js/lang/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"timeMaximum": "Maksymalny czas",
"timeMinimum": "Minimalny czas",
"title": "Toastmasters Chronometrażysta",
"installiOS": "Zainstaluj Timer Toastmasters na swoim iPhonie lub iPadzie: stuknij Udostępnij, a następnie Dodaj do ekranu głównego.",
"installiOS": "Aby zainstalować Timer Toastmasters na iPhonie lub iPadzie, dotknij Udostępnij, a następnie Dodaj do ekranu głównego.",
"translators": "Tłumacze",
"specialThanks": "Specjalne podziękowania dla wszystkich tłumaczy i recenzentów."
"specialThanks": "Specjalne podziękowania dla wszystkich tłumaczy i recenzentów.",
"sponsorUs": "Kup nam ☕"
}
5 changes: 3 additions & 2 deletions js/lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"timeMaximum": "Максимальное время",
"timeMinimum": "Минимальное время",
"title": "Таймер Toastmasters",
"installiOS": "Установите таймер Toastmasters на свой iPhone или iPad, нажмите «Поделиться» а затем «Добавить на главный экран».",
"installiOS": "Чтобы установить таймер Toastmasters на свой iPhone или iPad, нажмите «Поделиться», а затем «Добавить на главный экран».",
"translators": "Переводчики",
"specialThanks": "Отдельное спасибо всем переводчикам и рецензентам."
"specialThanks": "Отдельное спасибо всем переводчикам и рецензентам.",
"sponsorUs": "Купите нам ☕"
}
2 changes: 1 addition & 1 deletion js/lib/translate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let langs = ["en", "es", "pl", "cs", "ru", "it", "de"];
let langs = ["en", "es", "pl", "cs", "ru", "it", "de", "nl"];
let lang = "en";
let lngObject;

Expand Down
2 changes: 1 addition & 1 deletion js/lib/translate.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 19 additions & 2 deletions js/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const displayOutput = document.querySelector('.display-remain-time'),
btnYesChallenge = document.getElementById('btnYesChallenge'),
btnYesConfirm = document.getElementById('btnYesConfirm'),
btnYesChanges = document.getElementById('btnYesChanges'),
btnSponsor2Us = document.getElementById('btnSponsor2Us'),
btnSave = document.getElementById('btnSave'),
btnSaveClap = document.getElementById('btnSaveClap'),
btnAbout = document.getElementById('btnAbout'),
Expand Down Expand Up @@ -861,6 +862,10 @@ btnYesChanges.addEventListener('click', function() {
dialogChanges.close();
});

btnSponsor2Us.addEventListener('click', function() {
window.open("https://github.com/sponsors/FANMixco");
});

btnShare.addEventListener('click', function() {});

btnEmail.addEventListener('click', function() {});
Expand Down Expand Up @@ -1157,9 +1162,21 @@ tickAll.addEventListener('change', (event) => {
isFirstTime = true;

if (deviceDetector.device === 'desktop') {
dialogTimeTable.classList.add('centeredDialog');
try {
var isFirefox = navigator.userAgent.indexOf("Firefox") != -1 ? true : false;

// Safari 3.0+ "[object HTMLElementConstructor]"
var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification));

if (isFirefox || isSafari)
{
dialogTimeTable.classList.add('centeredDialog');
dialogAbout.classList.add('centeredDialog');
}
}
catch {
}
dialogTimeTable.classList.add('fullscreen-dialog-tablet');
dialogAbout.classList.add('centeredDialog');
dialogAbout.classList.add('fullscreen-dialog-desktop');
document.getElementById('divSpeakers').style.height = `${document.body.clientHeight * 0.53}px`;
} else if (deviceDetector.device === 'tablet') {
Expand Down
2 changes: 1 addition & 1 deletion js/timer.min.js

Large diffs are not rendered by default.

0 comments on commit 87095a6

Please sign in to comment.