From 5e18cf1ceb5f0639fc2e393500c760b8347f1df6 Mon Sep 17 00:00:00 2001 From: David Morgantini Date: Sun, 4 Dec 2011 15:40:20 +0000 Subject: [PATCH] updated right clicker --- charityclicks/background.html | 8 -------- charityclicks/manifest.json | 6 +++--- charityclicks/ratingWindow.js | 14 +++++++------ charityclicks/ratingwindow.html | 36 +++++++++++++++++++++++++++++---- 4 files changed, 43 insertions(+), 21 deletions(-) diff --git a/charityclicks/background.html b/charityclicks/background.html index 2ad248d..911e0e5 100644 --- a/charityclicks/background.html +++ b/charityclicks/background.html @@ -25,14 +25,6 @@ - - - - - - - - diff --git a/charityclicks/manifest.json b/charityclicks/manifest.json index 404dc1e..fe96c7f 100644 --- a/charityclicks/manifest.json +++ b/charityclicks/manifest.json @@ -1,6 +1,6 @@ { - "name": "OneClickCharity", - "version": "0.0.1", + "name": "CharityClick", + "version": "0.0.2", "description": "Give to charities without the hassles of taking out your wallet whenever you are inspired by a video or article.", "icons": { "16": "skin/flying-heart-icon_16.png", @@ -13,7 +13,7 @@ ], "background_page": "background.html", "browser_action": { - "default_title": "OneClickCharity", + "default_title": "CharityClick", "default_icon": "skin/flying-heart-icon_19.png", "popup": "ratingwindow.html", "css":[ "skin/charityClicks.css"], diff --git a/charityclicks/ratingWindow.js b/charityclicks/ratingWindow.js index 994d2ec..09ce009 100644 --- a/charityclicks/ratingWindow.js +++ b/charityclicks/ratingWindow.js @@ -1,8 +1,4 @@ $(document).ready(function() { - $('div').click(function() { - alert("wtf"); - }); - var charity = { 1: { name: "Empty Homes", @@ -26,12 +22,18 @@ $(document).ready(function() { } }; + $('
').appendTo(document.body).html('Charities on this page:'); for (var id in charity) { - var qtipContent = 'Donate Now' + + var qtipContent = '
' + charity[id].name + ''; + qtipContent = qtipContent + 'Donate Now' + ' | ' + - 'View Charity Information'; + 'View Charity Information'; + + if (charity[id].phoneNumber) + qtipContent = qtipContent + '
By Phone: ' + charity[id].phoneNumber + '
'; + qtipContent = qtipContent + '
'; $('
').appendTo(document.body).html(qtipContent); } diff --git a/charityclicks/ratingwindow.html b/charityclicks/ratingwindow.html index ca743b8..5b3a3e5 100644 --- a/charityclicks/ratingwindow.html +++ b/charityclicks/ratingwindow.html @@ -1,17 +1,45 @@ - - + + -
hello!
+