diff --git a/_includes/donate.html b/_includes/donate.html index 4ec936f..b1d3891 100644 --- a/_includes/donate.html +++ b/_includes/donate.html @@ -3,10 +3,12 @@
Hi! I'm Federico, the creator of espanso. I developed espanso in my (little) spare time +
Hi! I'm Federico, the creator of espanso. I developed espanso in my (little) spare time and I decided to make it open source because I thought it could be useful to many people.
If you liked the project, please consider making a small donation, it really helps :)
diff --git a/_includes/footer.html b/_includes/footer.html index 23ef2fb..782e520 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -2,12 +2,11 @@espanso is open source and hosted on GitHub.
- -Star + StarIf you find a bug or have an idea for a new feature, please open an issue on GitHub.
Designed and created by Federico Terzi. Copyright © Federico Terzi 2019
+Designed and created by Federico Terzi. Copyright © Federico Terzi 2019
Do you want to know more?
- Visit Documentation + Visit Documentation @@ -138,6 +138,24 @@ showParticles: True return os; } + + function isVisible(element) { + var coordinates = element.getBoundingClientRect(); + + if ( + coordinates.right > window.innerWidth || + coordinates.bottom > window.innerHeight + ) { + return false; + } + + if (coordinates.top < 0 || coordinates.left < 0) { + return false; + } + + return true; + } + function jumboText() { // Setup get started button var os = getOS(); @@ -186,8 +204,10 @@ showParticles: True } function features() { + var examples = []; + document.getElementById("feature-1").innerText = ""; - new TypeIt('#feature-1', { + var instance = new TypeIt('#feature-1', { speed: 50, startDelay: 900, loop: true, @@ -201,9 +221,10 @@ showParticles: True .pause(1500) .options({speed: 50, deleteSpeed: 7}) .go(); + examples.push({typeit: instance, element: document.getElementById("feature-1")}); document.getElementById("feature-2").innerText = ""; - new TypeIt('#feature-2', { + var instance = new TypeIt('#feature-2', { speed: 50, startDelay: 900, loop: true, @@ -217,9 +238,10 @@ showParticles: True .pause(1500) .options({speed: 50, deleteSpeed: 7}) .go(); + examples.push({typeit: instance, element: document.getElementById("feature-2")}); document.getElementById("feature-3").innerText = ""; - new TypeIt('#feature-3', { + var instance = new TypeIt('#feature-3', { speed: 50, startDelay: 900, loop: true, @@ -233,9 +255,10 @@ showParticles: True .pause(1500) .options({speed: 50, deleteSpeed: 7}) .go(); + examples.push({typeit: instance, element: document.getElementById("feature-3")}); document.getElementById("feature-4").innerText = ""; - new TypeIt('#feature-4', { + var instance = new TypeIt('#feature-4', { speed: 50, startDelay: 900, loop: true, @@ -249,9 +272,10 @@ showParticles: True .pause(1500) .options({speed: 50, deleteSpeed: 7}) .go(); + examples.push({typeit: instance, element: document.getElementById("feature-4")}); document.getElementById("feature-5").innerText = ""; - new TypeIt('#feature-5', { + var instance = new TypeIt('#feature-5', { speed: 50, startDelay: 900, loop: true, @@ -265,9 +289,10 @@ showParticles: True .pause(1500) .options({speed: 50, deleteSpeed: 7}) .go(); + examples.push({typeit: instance, element: document.getElementById("feature-5")}); document.getElementById("feature-6").innerText = ""; - new TypeIt('#feature-6', { + var instance = new TypeIt('#feature-6', { speed: 50, startDelay: 900, loop: true, @@ -281,6 +306,18 @@ showParticles: True .pause(1500) .options({speed: 50, deleteSpeed: 7}) .go(); + examples.push({typeit: instance, element: document.getElementById("feature-6")}); + + // Fix page flickering + setInterval(function() { + for (var i = 0; i