Permalink
Browse files

Merge branch 'master' of github.com:dmorgantini/RHOK

  • Loading branch information...
unknown unknown
unknown authored and unknown committed Dec 6, 2011
2 parents 6343b61 + 98ca247 commit 1f4276c79378d804ae424fdbbc692eedbc8b6aff
Showing with 69 additions and 416 deletions.
  1. +25 −35 charityclicks/background.html
  2. +4 −4 charityclicks/manifest.json
  3. +8 −6 charityclicks/ratingWindow.js
  4. +32 −4 charityclicks/ratingwindow.html
  5. BIN charityclicks/skin/flying-heart-icon_19_mono.png
  6. BIN charityclicks/skin/fusion/16_16/plain/r0.png
  7. BIN charityclicks/skin/fusion/16_16/plain/r1.png
  8. BIN charityclicks/skin/fusion/16_16/plain/r2.png
  9. BIN charityclicks/skin/fusion/16_16/plain/r3.png
  10. BIN charityclicks/skin/fusion/16_16/plain/r4.png
  11. BIN charityclicks/skin/fusion/16_16/plain/r5.png
  12. BIN charityclicks/skin/fusion/16_16/plain/rx.png
  13. BIN charityclicks/skin/fusion/19_19/default.png
  14. BIN charityclicks/skin/fusion/19_19/error.png
  15. BIN charityclicks/skin/fusion/19_19/loading.png
  16. BIN charityclicks/skin/fusion/19_19/message_r0.png
  17. BIN charityclicks/skin/fusion/19_19/message_r1.png
  18. BIN charityclicks/skin/fusion/19_19/message_r2.png
  19. BIN charityclicks/skin/fusion/19_19/message_r3.png
  20. BIN charityclicks/skin/fusion/19_19/message_r4.png
  21. BIN charityclicks/skin/fusion/19_19/message_r5.png
  22. BIN charityclicks/skin/fusion/19_19/new_r1.png
  23. BIN charityclicks/skin/fusion/19_19/new_r2.png
  24. BIN charityclicks/skin/fusion/19_19/new_r3.png
  25. BIN charityclicks/skin/fusion/19_19/new_r4.png
  26. BIN charityclicks/skin/fusion/19_19/new_r5.png
  27. BIN charityclicks/skin/fusion/19_19/r0.png
  28. BIN charityclicks/skin/fusion/19_19/r1.png
  29. BIN charityclicks/skin/fusion/19_19/r2.png
  30. BIN charityclicks/skin/fusion/19_19/r3.png
  31. BIN charityclicks/skin/fusion/19_19/r4.png
  32. BIN charityclicks/skin/fusion/19_19/r5.png
  33. BIN charityclicks/skin/fusion/19_19/rx.png
  34. BIN charityclicks/skin/fusion/28_28/default.png
  35. BIN charityclicks/skin/fusion/28_28/r0.png
  36. BIN charityclicks/skin/fusion/28_28/r1.png
  37. BIN charityclicks/skin/fusion/28_28/r2.png
  38. BIN charityclicks/skin/fusion/28_28/r3.png
  39. BIN charityclicks/skin/fusion/28_28/r4.png
  40. BIN charityclicks/skin/fusion/28_28/r5.png
  41. BIN charityclicks/skin/fusion/28_28/rx.png
  42. BIN charityclicks/skin/fusion/accessible/16_16/plain/r0.png
  43. BIN charityclicks/skin/fusion/accessible/16_16/plain/r1.png
  44. BIN charityclicks/skin/fusion/accessible/16_16/plain/r2.png
  45. BIN charityclicks/skin/fusion/accessible/16_16/plain/r3.png
  46. BIN charityclicks/skin/fusion/accessible/16_16/plain/r4.png
  47. BIN charityclicks/skin/fusion/accessible/16_16/plain/r5.png
  48. BIN charityclicks/skin/fusion/accessible/19_19/default.png
  49. BIN charityclicks/skin/fusion/accessible/19_19/error.png
  50. BIN charityclicks/skin/fusion/accessible/19_19/loading.png
  51. BIN charityclicks/skin/fusion/accessible/19_19/message_r0.png
  52. BIN charityclicks/skin/fusion/accessible/19_19/message_r1.png
  53. BIN charityclicks/skin/fusion/accessible/19_19/message_r2.png
  54. BIN charityclicks/skin/fusion/accessible/19_19/message_r3.png
  55. BIN charityclicks/skin/fusion/accessible/19_19/message_r4.png
  56. BIN charityclicks/skin/fusion/accessible/19_19/message_r5.png
  57. BIN charityclicks/skin/fusion/accessible/19_19/new_r1.png
  58. BIN charityclicks/skin/fusion/accessible/19_19/new_r2.png
  59. BIN charityclicks/skin/fusion/accessible/19_19/new_r3.png
  60. BIN charityclicks/skin/fusion/accessible/19_19/new_r4.png
  61. BIN charityclicks/skin/fusion/accessible/19_19/new_r5.png
  62. BIN charityclicks/skin/fusion/accessible/19_19/r0.png
  63. BIN charityclicks/skin/fusion/accessible/19_19/r1.png
  64. BIN charityclicks/skin/fusion/accessible/19_19/r2.png
  65. BIN charityclicks/skin/fusion/accessible/19_19/r3.png
  66. BIN charityclicks/skin/fusion/accessible/19_19/r4.png
  67. BIN charityclicks/skin/fusion/accessible/19_19/r5.png
  68. BIN charityclicks/skin/fusion/accessible/28_28/default.png
  69. BIN charityclicks/skin/fusion/accessible/28_28/r0.png
  70. BIN charityclicks/skin/fusion/accessible/28_28/r1.png
  71. BIN charityclicks/skin/fusion/accessible/28_28/r2.png
  72. BIN charityclicks/skin/fusion/accessible/28_28/r3.png
  73. BIN charityclicks/skin/fusion/accessible/28_28/r4.png
  74. BIN charityclicks/skin/fusion/accessible/28_28/r5.png
  75. BIN charityclicks/skin/fusion/accessible/close-active.png
  76. BIN charityclicks/skin/fusion/accessible/close-hover.png
  77. BIN charityclicks/skin/fusion/accessible/close.png
  78. BIN charityclicks/skin/fusion/accessible/logo.png
  79. BIN charityclicks/skin/fusion/accessible/popup-logo.png
  80. BIN charityclicks/skin/fusion/accessible/scorecard-active.png
  81. BIN charityclicks/skin/fusion/accessible/scorecard-hover.png
  82. BIN charityclicks/skin/fusion/accessible/scorecard.png
  83. BIN charityclicks/skin/fusion/accessible/slider-active.png
  84. BIN charityclicks/skin/fusion/accessible/slider-hover.png
  85. BIN charityclicks/skin/fusion/accessible/slider.png
  86. BIN charityclicks/skin/fusion/accessible/update-active.png
  87. BIN charityclicks/skin/fusion/accessible/update-background.png
  88. BIN charityclicks/skin/fusion/accessible/update-hover.png
  89. BIN charityclicks/skin/fusion/close-active.png
  90. BIN charityclicks/skin/fusion/close-hover.png
  91. BIN charityclicks/skin/fusion/close.png
  92. BIN charityclicks/skin/fusion/confidence-0.png
  93. BIN charityclicks/skin/fusion/confidence-1.png
  94. BIN charityclicks/skin/fusion/confidence-2.png
  95. BIN charityclicks/skin/fusion/confidence-3.png
  96. BIN charityclicks/skin/fusion/confidence-4.png
  97. BIN charityclicks/skin/fusion/confidence-5.png
  98. BIN charityclicks/skin/fusion/icons/128.png
  99. BIN charityclicks/skin/fusion/icons/16-old.png
  100. BIN charityclicks/skin/fusion/icons/16.png
  101. BIN charityclicks/skin/fusion/icons/32.png
  102. BIN charityclicks/skin/fusion/icons/48.png
  103. BIN charityclicks/skin/fusion/indicator-hover.png
  104. BIN charityclicks/skin/fusion/indicator.png
  105. BIN charityclicks/skin/fusion/logo.png
  106. BIN charityclicks/skin/fusion/message-background.png
  107. BIN charityclicks/skin/fusion/message-critical.png
  108. BIN charityclicks/skin/fusion/message-important.png
  109. BIN charityclicks/skin/fusion/popup-logo.png
  110. BIN charityclicks/skin/fusion/popup.png
  111. BIN charityclicks/skin/fusion/scorecard-active.png
  112. BIN charityclicks/skin/fusion/scorecard-hover.png
  113. BIN charityclicks/skin/fusion/scorecard.png
  114. BIN charityclicks/skin/fusion/slider-active.png
  115. BIN charityclicks/skin/fusion/slider-hover.png
  116. BIN charityclicks/skin/fusion/slider.png
  117. BIN charityclicks/skin/fusion/update-active.png
  118. BIN charityclicks/skin/fusion/update-background.png
  119. BIN charityclicks/skin/fusion/update-hover.png
  120. BIN charityclicks/skin/fusion/user-bar-0.png
  121. BIN charityclicks/skin/fusion/user-bar-1.png
  122. BIN charityclicks/skin/fusion/user-bar-10.png
  123. BIN charityclicks/skin/fusion/user-bar-2.png
  124. BIN charityclicks/skin/fusion/user-bar-3.png
  125. BIN charityclicks/skin/fusion/user-bar-4.png
  126. BIN charityclicks/skin/fusion/user-bar-5.png
  127. BIN charityclicks/skin/fusion/user-bar-6.png
  128. BIN charityclicks/skin/fusion/user-bar-7.png
  129. BIN charityclicks/skin/fusion/user-bar-8.png
  130. BIN charityclicks/skin/fusion/user-bar-9.png
  131. BIN charityclicks/skin/fusion/warnings/bg_rating_bottom.png
  132. BIN charityclicks/skin/fusion/warnings/bg_rating_tile1px_center.png
  133. BIN charityclicks/skin/fusion/warnings/bg_rating_top.png
  134. BIN charityclicks/skin/fusion/warnings/bg_warning_bottom.png
  135. BIN charityclicks/skin/fusion/warnings/bg_warning_tile1px_center.png
  136. BIN charityclicks/skin/fusion/warnings/bg_warning_top.png
  137. BIN charityclicks/skin/fusion/warnings/go_to_button.png
  138. BIN charityclicks/skin/fusion/warnings/info_button_left.png
  139. BIN charityclicks/skin/fusion/warnings/info_button_right.png
  140. BIN charityclicks/skin/fusion/warnings/rate_button.png
  141. BIN charityclicks/skin/fusion/warnings/wot_logo_bottom.png
  142. +0 −29 charityclicks/skin/include/popup.css
  143. +0 −338 charityclicks/skin/include/warning.css
@@ -1,40 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<!--
- background.html
- Copyright © 2009, 2010 WOT Services Oy <info@mywot.com>
-
- This file is part of WOT.
-
- WOT is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- WOT is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
- License for more details.
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <script type="text/javascript" src="jquery.js"></script>
+</head>
+<body>
+<script type="text/javascript">
- You should have received a copy of the GNU General Public License
- along with WOT. If not, see <http://www.gnu.org/licenses/>.
--->
+ chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
+ if (tab.url !== "http://www.guardian.co.uk/society/2011/dec/04/charities-welcome-cash-for-homes?INTCMP=SRCH" &&
+ tab.url !== "http://www.ted.com/speakers/sunitha_krishnan.html")
+ chrome.browserAction.setIcon({path: "skin/flying-heart-icon_19_mono.png"});
+ else
+ chrome.browserAction.setIcon({path: "skin/flying-heart-icon_19.png"});
+ });
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="wot.js"></script>
- <script type="text/javascript" src="cache.js"></script>
- <script type="text/javascript" src="crypto.js"></script>
- <script type="text/javascript" src="prefs.js"></script>
- <script type="text/javascript" src="idn.js"></script>
- <script type="text/javascript" src="url.js"></script>
- <script type="text/javascript" src="api.js"></script>
- <script type="text/javascript" src="background.js"></script>
- </head>
- <body>
- <canvas id="wot-icon" width="19" height="19"/>
- </body>
+ chrome.tabs.onSelectionChanged.addListener(function(tabId, selectInfo) {
+ chrome.tabs.get(tabId, function (tab) {
+ if (tab.url !== "http://www.guardian.co.uk/society/2011/dec/04/charities-welcome-cash-for-homes?INTCMP=SRCH" &&
+ tab.url !== "http://www.ted.com/speakers/sunitha_krishnan.html")
+ chrome.browserAction.setIcon({path: "skin/flying-heart-icon_19_mono.png"});
+ else
+ chrome.browserAction.setIcon({path: "skin/flying-heart-icon_19.png"});
+ });
+ });
+</script>
+</body>
</html>
@@ -1,7 +1,7 @@
{
- "name": "OneClickCharity",
- "version": "0.0.1",
- "description": "Give to charities without the hassles of taking out your wallet whenever you are inspired by a video or article.",
+ "name": "CharityClick",
+ "version": "0.0.3",
+ "description": "See charities to donate to on the hover of your mouse",
"icons": {
"16": "skin/flying-heart-icon_16.png",
"32": "skin/flying-heart-icon_32.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"],
@@ -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() {
}
};
+ $('<div style="font-size: 12px;"/>').appendTo(document.body).html('Charities on this page:');
for (var id in charity) {
- var qtipContent = '<a class="donation" href="'+ charity[id].donateLink +'" target="_blank">Donate Now</a>' +
+ var qtipContent = '<div><span style="display: block; margin-top: 10px; font-weight: bold;"> ' + charity[id].name + '</span>';
+ qtipContent = qtipContent + '<a class="donation" href="' + charity[id].donateLink + '" target="_blank">Donate Now</a>' +
'&nbsp;|&nbsp;' +
- '<a class="donation" href="link" target="_blank">View Charity Information</a>';
+ '<a class="donation" href="' + charity[id].infoLink + '" target="_blank">View Charity Information</a>';
+
+ if (charity[id].phoneNumber)
+ qtipContent = qtipContent + '<div>By Phone: ' + charity[id].phoneNumber + '</div>';
+ qtipContent = qtipContent + '</div>';
$('<div />').appendTo(document.body).html(qtipContent);
}
@@ -1,17 +1,45 @@
<html>
<head>
- <style>
+ <style type="text/css">
body {
- min-width: 357px;
+ min-width: 265px;
overflow-x: hidden;
+ font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
+ font-size: 11px;
+ }
+
+ #logo img {
+ float: left;
+ }
+
+ img {
+ border: 0;
+ }
+
+ #logo h1 {
+ font-size: 22px;
+ margin: 0 0 0 50px;
+ }
+
+ h1 {
+ padding: 5px 0 5px 0;
+ margin: 0;
+ color: #F7951E;
}
</style>
- <link rel="stylesheet" href="skin/charityClicks.css" />
+ <meta charset="utf-8"/>
+ <link rel="stylesheet" href="skin/charityClicks.css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="ratingWindow.js"></script>
</head>
<body>
-<div id='test'>hello!</div>
+<div id="header">
+ <div id="logo">
+ <img src="skin/flying-heart-icon_32.png" alt="" title=""/>
+
+ <h1>Charity <span>Click</span><sup>1.0</sup></h1>
+ </div>
+</div>
</body>
</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -1,29 +0,0 @@
-/*
- popup.css
- Copyright © 2009-2011 WOT Services Oy <info@mywot.com>
-
- This file is part of WOT.
-
- WOT is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- WOT is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
- License for more details.
-
- You should have received a copy of the GNU General Public License
- along with WOT. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-.wot-popup-layer {
- border: 0 ! important;
- font-family: Arial, sans-serif;
- margin: 0;
- padding: 0;
- position: absolute;
- z-index: 2147483647;
- width: 136px;
-}
Oops, something went wrong.

0 comments on commit 1f4276c

Please sign in to comment.