From 34f0a05177540d4129b5f2790ec11ebecf44fa63 Mon Sep 17 00:00:00 2001 From: qt31415926 Date: Sun, 29 Mar 2015 22:57:26 -0400 Subject: [PATCH] small changes --- background.html | 19 +++++++++---------- css/main.css | 2 ++ js/verify.js | 17 ++++++++--------- manifest.json | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/background.html b/background.html index 6a63451..9f65059 100644 --- a/background.html +++ b/background.html @@ -14,26 +14,25 @@
-

Type word for word the following if you REALLY HAVE to go to your site:

+

Read and type the text below if you REALLY HAVE to go to your site:

+
-

+

- -

+
-
- - Go Back -

+ + + Enter Site
-

Change the Habit

+

Do something more rewarding instead!


diff --git a/css/main.css b/css/main.css index f243d49..84b7b13 100644 --- a/css/main.css +++ b/css/main.css @@ -1,9 +1,11 @@ body{ + color: #0A7ED7; font-family: 'Open Sans', sans-serif; } blockquote{ + color: #F50042; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; diff --git a/js/verify.js b/js/verify.js index ff26c38..e21275a 100644 --- a/js/verify.js +++ b/js/verify.js @@ -5,11 +5,12 @@ function set(el,text){ var defSayings = [ "I am in control over my actions", - "I have done my main goals, and need to use this website", - "This site is simply a small tool", + "I have done my main goals for the day, and need to use this website", + "Sites are simply tools, they don't control me", "Resisting this site is easy", - "I ain't gonna get tricky tricked", - "Life's boo boo, but I'll get through too", + "I ain't gonna get tricky tricked by my mindless monotony", + "This site is boo boo", + "I am going here not out of habit, but for a solid purpose", "Imma take a second and think" ] /* setupUpdater will be called once, on page load. @@ -28,17 +29,15 @@ window.onload = function setupUpdater(){ set(target, targetText); -/* handleChange is called 200ms after the user stops - typing. */ function handleChange(){ var newText=input.value; var score = a.get(newText)[0][0]; if (score>0.91) { - set(count, ""); + // set(count, ""); passed = true; return; } else if (score> 0.1){ - set(count, "You are " + score*100 + "% accurate (need >91)"); + //debug set(count, "You are " + score*100 + "% accurate (need >91)"); } } @@ -53,7 +52,7 @@ window.onload = function setupUpdater(){ $(function(){ $(".btn-primary").click(function(){ if (passed){ - $("strong").text("I hope you don't regret this"); + $("strong").text("You've Unlocked The Button...\nI hope you don't regret this"); $(".btn-success").removeAttr("disabled"); console.log(chrome.extension.getBackgroundPage()); $(".btn-success").attr("href", chrome.extension.getBackgroundPage().prevSite); diff --git a/manifest.json b/manifest.json index 0e54ec0..edd62ba 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "MAD - Mindfulness Anti Distraction", "description": "This extension will hopefully help you be less distracted (untested)", - "version": "0.1.0.1", + "version": "0.1.0.2", "background": { "scripts": ["js/checkerino.js","background.js"], "pages": ["background.html"]