summaryrefslogtreecommitdiffstats
path: root/src/skin/js/firstRun.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/skin/js/firstRun.js')
-rw-r--r--src/skin/js/firstRun.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/skin/js/firstRun.js b/src/skin/js/firstRun.js
new file mode 100644
index 0000000..a21b24c
--- /dev/null
+++ b/src/skin/js/firstRun.js
@@ -0,0 +1,25 @@
+(function($) {
+
+$(window).on("load", function () {
+
+ function setSeenComic() {
+ var badger = chrome.extension.getBackgroundPage().badger;
+ var settings = badger.getSettings();
+ settings.setItem("seenComic", true);
+ }
+
+ $(".scroll-it").smoothScroll();
+
+ var alreadySet = false;
+ $(window).scroll(function () {
+ if (!alreadySet) {
+ if ($(window).scrollTop() > 400) {
+ alreadySet = true;
+ setSeenComic();
+ }
+ }
+ });
+});
+
+
+}(jQuery));