-
-
-
- Cloud hosting for the last hour so you can follow your dreams.
-
-
Get Started
-
+
diff --git a/js/back-to-top.js b/js/back-to-top.js
new file mode 100644
index 0000000..3401b89
--- /dev/null
+++ b/js/back-to-top.js
@@ -0,0 +1,13 @@
+$(document).ready(function () {
+ $(window).scroll(function () {
+ if ($(this).scrollTop() > 100) {
+ $("#back-to-top").addClass("show");
+ } else {
+ $("#back-to-top").removeClass("show");
+ }
+ });
+
+ $("#back-to-top").click(function () {
+ $("html, body").animate({ scrollTop: 0 }, "slow");
+ });
+});