Skip to content

Commit

Permalink
Add PS! Day Background to rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Oct 21, 2019
1 parent eaacf54 commit 1d20029
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Binary file added fx/client-bg-psday.jpg
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 graphics-src/client-bg-psday-original.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Storage.bg = {
if (location.host === 'smogtours.psim.us') {
bgid = 'shaymin';
} else if (location.host === 'play.pokemonshowdown.com') {
bgid = ['horizon', 'ocean', 'waterfall', 'shaymin', 'charizards'][Math.floor(Math.random() * 5)];
bgid = ['horizon', 'ocean', 'waterfall', 'shaymin', 'charizards', 'psday'][Math.floor(Math.random() * 6)];
} else {
$(document.body).css({
background: '',
Expand Down Expand Up @@ -118,6 +118,10 @@ Storage.bg = {
hues = ["37.159090909090914,74.57627118644066%", "10.874999999999998,70.79646017699115%", "179.51612903225808,52.10084033613446%", "20.833333333333336,36.73469387755102%", "192.3076923076923,80.41237113402063%", "210,29.629629629629633%"];
attrib = '<a href="https://seiryuuden.deviantart.com/art/The-Ultimate-Mega-Showdown-Charizards-414587079" target="_blank" class="subtle">"Charizards" <small>background by Jessica Valencia</small></a>';
break;
case 'psday':
hues = ["24.705882352941174,25.37313432835821%", "260.4651162790697,59.44700460829492%", "165.3191489361702,46.07843137254901%", "16.363636363636367,42.63565891472869%", "259.04761904761904,34.05405405405405%", "24.705882352941174,25.37313432835821%"];
attrib = '<a href="https://pokemonshowdown.com/news/216" target="_blank" class="subtle">Pokemon Showdown Day!</a>';
break;
case 'digimon':
hues = ["170.45454545454544,27.500000000000004%", "84.70588235294119,13.821138211382115%", "112.50000000000001,7.8431372549019605%", "217.82608695652175,54.761904761904766%", "0,1.6949152542372816%", ""];
}
Expand Down

0 comments on commit 1d20029

Please sign in to comment.