akilar-candyassets
Advanced tools
Comparing version 1.0.15 to 1.0.16
var tipButtons = document.querySelectorAll('.tip-button') | ||
function coinAudio() { | ||
var coinAudio = document.getElementById("coinAudio"); | ||
if (coinAudio) { | ||
coinAudio.play();//有音频时播放 | ||
} | ||
} | ||
// Loop through all buttons (allows for multiple buttons on page) | ||
@@ -11,4 +17,4 @@ tipButtons.forEach((button) => { | ||
button.addEventListener('click', () => { | ||
if (/Android|webOS|BlackBerry/i.test(navigator.userAgent)) return true; //媒体选择 | ||
if (button.clicked) return | ||
button.classList.add('clicked') | ||
@@ -23,2 +29,3 @@ | ||
flipCoin() | ||
coinAudio() | ||
}, 50) | ||
@@ -25,0 +32,0 @@ }) |
{ | ||
"name": "akilar-candyassets", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Akilarの糖果屋的静态资源仓库", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77854461
651
3303
38