Skip to content

Commit 324dbdf

Browse files
committed
More work
1 parent 60a4676 commit 324dbdf

File tree

4 files changed

+48
-6
lines changed

4 files changed

+48
-6
lines changed

beta/emuos/assets/error/fbi.mp4

5.05 MB
Binary file not shown.

beta/emuos/assets/js/emuos.js

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(function (factory) {
44
if (typeof define === 'function' && define.amd) {
5-
define(['jquery', 'router', 'toastr', 'optional!simplestorage', 'optional!moment-timezone', 'optional!ga', 'optional!octokat', 'optional!esheep', 'optional!clippy'], factory);
5+
define(['jquery', 'router', 'toastr', 'optional!simplestorage', 'optional!moment-timezone', 'optional!ga', 'optional!octokat', 'optional!esheep', 'optional!clippy', 'optional!fireworks'], factory);
66
} else { // noinspection DuplicatedCode
77
if (typeof module === 'object' && module.exports) {
88
module.exports = function(root, jQuery) {
@@ -22,7 +22,7 @@
2222
factory(jQuery);
2323
}
2424
}
25-
} (function ($, Router, toastr, simplestorage, moment, ga, Octokat, eSheep, clippy) {
25+
} (function ($, Router, toastr, simplestorage, moment, ga, Octokat, eSheep, clippy, Fireworks) {
2626
var root = location.hostname === 'localhost' ? 'https://emupedia.net' : '';
2727
var hash = location.hash.toString();
2828
var resizeTimeout = null;
@@ -874,14 +874,43 @@
874874
}
875875

876876
if (moment().date() === 31) {
877-
newyear += '<div class="fireworks">' +
878-
'<div class="fireworks-before"></div>' +
879-
'<div class="fireworks-after"></div>' +
880-
'</div>';
877+
newyear += '<div class="fireworks-container" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none;"></div>';
881878
}
882879

883880
self.$desktop.prepend(newyear);
884881

882+
if (moment().date() === 31) {
883+
var fireworks = new Fireworks.default($('.fireworks-container').get(0), {
884+
opacity: 0.3,
885+
acceleration: 1.02,
886+
friction: 0.98,
887+
particles: 80,
888+
intensity: 20,
889+
hue: {
890+
min: 0,
891+
max: 360
892+
},
893+
delay: {
894+
min: 40,
895+
max: 60
896+
},
897+
rocketsPoint: {
898+
min: 40,
899+
max: 60
900+
},
901+
brightness: {
902+
min: 40,
903+
max: 80
904+
},
905+
decay: {
906+
min: 0.01,
907+
max: 0.02
908+
}
909+
});
910+
911+
fireworks.start();
912+
}
913+
885914
if (moment().date() >= 26) {
886915
function timeLeft(endtime) {
887916
// noinspection JSCheckFunctionSignatures

beta/emuos/assets/js/libraries.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
'/beta/emuos/assets/js/libraries/fingerprint-3.3.5',
5656
'//' + location + '/beta/emuos/assets/js/libraries/fingerprint-3.3.5'
5757
],
58+
'fireworks': [
59+
'libraries/fireworks-2.10.8.min',
60+
'/beta/emuos/assets/js/libraries/fireworks-2.10.8.min',
61+
'//' + location + '/beta/emuos/assets/js/libraries/fireworks-2.10.8.min'
62+
],
5863
'html-imports': [
5964
'libraries/html-imports-1.3.0.min',
6065
'/beta/emuos/assets/js/libraries/html-imports-1.3.0.min',

beta/emuos/assets/js/libraries/fireworks-2.10.8.min.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)