Skip to content

Commit

Permalink
Fix stop snow button
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanston09 committed Dec 13, 2024
1 parent 6936380 commit ef3df8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/assets/js/mix/snowstorm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/*jslint nomen: true, plusplus: true, sloppy: true, vars: true, white: true */
/*global window, document, navigator, clearInterval, setInterval */

var snowStorm = (function (window, document) {
window.snowStorm = (function (window, document) {
// --- common properties ---

this.autoStart = true; // Whether the snow should start automatically or not.
Expand Down
2 changes: 1 addition & 1 deletion resources/views/inc/home_footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p><a href="/privacy" target="_blank">Privacy Policy, Terms and Conditions</a></p>
<p class="footer-copyright text-dark"{{ Carbon\Carbon::now()->year }} vZTL ARTCC</p>
@if(Carbon\Carbon::now()->month == 12)
<button class="btn btn-dark btn-sm" onclick="snowStorm.stop();return false">Stop Snow</button>
<button class="btn btn-dark btn-sm" onclick="window.snowStorm.stop();return false">Stop Snow</button>
@endif

</div>
Expand Down

0 comments on commit ef3df8a

Please sign in to comment.