Skip to content

Commit

Permalink
Updated popup with v3.2 information.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Casey committed Jan 18, 2016
1 parent 9b63744 commit b8b16cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Binary file added app/images/reddit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 8 additions & 4 deletions app/scripts/dimApp.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,17 @@
// }
// });

chrome.storage.sync.get('2015.10.10-Infuse', function(data) {
chrome.storage.sync.get('2016.01.18-Perf', function(data) {
if (_.isNull(data) || _.isEmpty(data)) {
$timeout(function() {
toaster.pop({
type: 'info',
title: 'Infusion Calculator!',
body: '<p>Check out DIM\'s built-in infusion calculator! <a href="http://i.imgur.com/6XNnmoF.gifv" target="_blank">Here\'s how to access and use it!</a><p><input style="margin-top: 1px; vertical-align: middle;" id="20151010Checkbox" type="checkbox"> <label for="20151010Checkbox">Hide This Popup</label></p>',
title: 'v3.2 Released',
body: [
'<p>We\'ve added a \'Maximum Light\' loadout, greatly improved the performance while moving items, and added <span style="font-style: italic">is:year1</span> and <span style="font-style: italic">is:year2</span> filters.',
'<p><a href="http://bit.ly/1SssIq9" target="_blank">Learn more about the the updates in v3.2.</a>',
'<p>Follow us on: <a style="margin: 0 5px;" href="http://destinyitemmanager.reddit.com" target="_blank"><img title="/r/DIM on Reddit" style="vertical-align: text-bottom;" src="images/reddit.png"></a> <a style="margin: 0 5px;" href="http://twitter.com/ThisIsDIM" target="_blank"><img style="vertical-align: text-bottom;" title="@ThisIsDIM on Twitter" src="images/twitter.png"></a>',
'<p><input style="margin-top: 1px; vertical-align: middle;" id="20151010Checkbox" type="checkbox"> <label for="20151010Checkbox">Hide This Popup</label></p>'].join(''),
timeout: 0,
bodyOutputType: 'trustedHtml',
showCloseButton: true,
Expand All @@ -122,7 +126,7 @@
onHideCallback: function() {
if ($('#20151010Checkbox').is(':checked')) {
chrome.storage.sync.set({
"2015.10.10-Infuse": 1
"2016.01.18-Perf": 1
}, function(e) {});
}
}
Expand Down

0 comments on commit b8b16cc

Please sign in to comment.