-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added info section to browser action / updated readme
- Loading branch information
Yulian Glukhenko
committed
Jun 16, 2015
1 parent
48ee46b
commit cc890eb
Showing
16 changed files
with
144 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
class Actions | ||
|
||
@bind_capture_visible = (button) -> | ||
button.on "click", -> | ||
@bind_capture_visible = ($button) -> | ||
$button.on "click", -> | ||
CaptureVisible.screenshot() | ||
|
||
@bind_capture_partial = (button) -> | ||
button.on "click", -> | ||
@bind_capture_partial = ($button) -> | ||
$button.on "click", -> | ||
CapturePartial.screenshot() | ||
|
||
@bind_info_button = ($button) -> | ||
$button.on "click", -> | ||
$more_info = $button.siblings(".more-info-container") | ||
if $button.hasClass "active" | ||
$button.removeClass "active" | ||
$more_info.slideUp 150 | ||
else | ||
$button.addClass "active" | ||
$more_info.slideDown 150 | ||
|
||
jQuery -> | ||
|
||
# capture visible button | ||
Actions.bind_capture_visible $("#capture-visible") if $("#capture-visible").length | ||
|
||
# capture partial button | ||
Actions.bind_capture_partial $("#capture-partial") if $("#capture-partial").length | ||
Actions.bind_capture_partial $("#capture-partial") if $("#capture-partial").length | ||
|
||
# capture info button | ||
Actions.bind_info_button $("#more-info-icon") if $("#more-info-icon").length |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!DOCTYPE html><html lang="en"><head><title>Snapshot for Trello :: Take a Screenshot</title><link rel="stylesheet" href="/assets/stylesheets/browser-action.css"><script src="/assets/javascripts/vendor/jquery.min.js"></script><script src="/assets/javascripts/browser-action.js"></script></head><body><div id="trellosnap"><h4 class="action-title">Snapshot for Trello</h4><div class="button-container"><span id="capture-visible" class="capture-button">capture visible</span><span id="capture-partial" class="capture-button">capture selection</span></div></div></body></html> | ||
<!DOCTYPE html><html lang="en"><head><title>Snapshot for Trello :: Take a Screenshot</title><link rel="stylesheet" href="/assets/stylesheets/browser-action.css"><script src="/assets/javascripts/vendor/jquery.min.js"></script><script src="/assets/javascripts/browser-action.js"></script></head><body><div id="trellosnap"><div class="more-info-container"><a href="https://github.com/yulianglukhenko/trellosnap#06-15-15" target="_blank" class="more-info version"><img src="/assets/images/ico.more-info-versions.png" height="15">what's new in v2.0</a><a href="https://twitter.com/yulolimum" target="_blank" class="more-info help"><img src="/assets/images/ico.more-info-bug.png" height="15">found a bug?</a><a href="https://chrome.google.com/webstore/detail/snapshot-for-trello/lkkgpfdhgclmmhaggnebklhmkckeddad/reviews?hl=en" target="_blank" class="more-info rate"><img src="/assets/images/ico.more-info-rate.png" height="15">rate this extension</a><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y3VBMEFJMSU2Y" target="_blank" class="more-info donate"><img src="/assets/images/ico.more-info-donate.png" height="15">generous? buy me a beer</a></div><div id="more-info-icon"></div><h4 class="action-title">Snapshot for Trello</h4><div class="button-container"><span id="capture-visible" class="capture-button">capture visible</span><span id="capture-partial" class="capture-button">capture selection</span></div></div></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters