|
73 | 73 | //Track Our Initial Activity of Starting the App
|
74 | 74 | $rootScope.trackActivity();
|
75 | 75 |
|
76 |
| - // chrome.storage.sync.get('2016.02.04-Crimson', function(data) { |
77 |
| - // if(_.isNull(data) || _.isEmpty(data)) { |
78 |
| - // $timeout(function() { |
79 |
| - // toaster.pop({ |
80 |
| - // type: 'info', |
81 |
| - // title: 'Crimson Days, February 9th - 16th', |
82 |
| - // body: [ |
83 |
| - // '<p>We\'ve been looking forward to the Crimson Days. Our only bit of advice, <a href="http://i.imgur.com/5HrbN28.gif" target="_blank">never leave your wingman.</a>', |
84 |
| - // '<p>If you want to use the old theme, there is a toggle next to the \'Support DIM\' donation link in the header.', |
85 |
| - // '<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>', |
86 |
| - // '<p><input style="margin-top: 1px; vertical-align: middle;" id="20160204Crimson" type="checkbox"> <label for="20160204Crimson">Hide This Popup</label></p>' |
87 |
| - // ].join(''), |
88 |
| - // timeout: 0, |
89 |
| - // bodyOutputType: 'trustedHtml', |
90 |
| - // showCloseButton: true, |
91 |
| - // clickHandler: function(a, b, c, d, e, f, g) { |
92 |
| - // if(b) { |
93 |
| - // return true; |
94 |
| - // } |
95 |
| - // |
96 |
| - // return false; |
97 |
| - // }, |
98 |
| - // onHideCallback: function() { |
99 |
| - // if($('#20160204Crimson') |
100 |
| - // .is(':checked')) { |
101 |
| - // chrome.storage.sync.set({ |
102 |
| - // "2016.02.04-Crimson": 1 |
103 |
| - // }, function(e) {}); |
104 |
| - // } |
105 |
| - // if($('#20160204CrimsonTheme') |
106 |
| - // .is(':checked')) { |
107 |
| - // $('body') |
108 |
| - // .removeClass('crimson'); |
109 |
| - // $(document) |
110 |
| - // .octoberLeaves('stop'); |
111 |
| - // chrome.storage.sync.set({ |
112 |
| - // "20160204CrimsonTheme": 1 |
113 |
| - // }, function(e) {}); |
114 |
| - // } |
115 |
| - // } |
116 |
| - // }); |
117 |
| - // }, 3000); |
118 |
| - // } |
119 |
| - // }); |
| 76 | + chrome.storage.sync.get('2016.02.15-v3.3', function(data) { |
| 77 | + if(_.isNull(data) || _.isEmpty(data)) { |
| 78 | + $timeout(function() { |
| 79 | + toaster.pop({ |
| 80 | + type: 'info', |
| 81 | + title: 'DIM v3.3 Released', |
| 82 | + body: [ |
| 83 | + '<p>A lot work went into DIM the past few weeks. We\'ve added all the perks for an item, including indicators if they are enabled or need XP. This update allowed us to fix the filters for xpincomplete and xpcomplete too.', |
| 84 | + '<p>We have removed the Crimson Days theme as the event has finished, but there was such a positive response to the update that we\'re looking into adding a more personal experience to DIM in the future.', |
| 85 | + '<p>The Infusion Calculator now has the ability determine the optimal path to infuse an item, show you the necessary materials, and can move the items and materials to your guardian on demand.', |
| 86 | + '<p>Visit us on Twitter and Reddit to learn more about these and other updates in v3.3.', |
| 87 | + '<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>', |
| 88 | + '<p><input style="margin-top: 1px; vertical-align: middle;" id="20160215v33" type="checkbox"> <label for="20160215v33">Hide This Popup</label></p>' |
| 89 | + ].join(''), |
| 90 | + timeout: 0, |
| 91 | + bodyOutputType: 'trustedHtml', |
| 92 | + showCloseButton: true, |
| 93 | + clickHandler: function(a, b, c, d, e, f, g) { |
| 94 | + if(b) { |
| 95 | + return true; |
| 96 | + } |
| 97 | + |
| 98 | + return false; |
| 99 | + }, |
| 100 | + onHideCallback: function() { |
| 101 | + if($('#20160215v33') |
| 102 | + .is(':checked')) { |
| 103 | + chrome.storage.sync.set({ |
| 104 | + "2016.02.15-v3.3": 1 |
| 105 | + }, function(e) {}); |
| 106 | + } |
| 107 | + } |
| 108 | + }); |
| 109 | + }, 3000); |
| 110 | + } |
| 111 | + }); |
120 | 112 |
|
121 | 113 | }
|
122 | 114 | ]);
|
|
0 commit comments