yii2-netdisk/assets/TSParticlesAsset.php

13 lines
295 B
PHP
Raw Permalink Normal View History

2024-04-19 18:21:11 +08:00
<?php
namespace app\assets;
use yii\web\AssetBundle;
class TSParticlesAsset extends AssetBundle
{
//use remote js file instead of local file (for better performance?)
2024-04-19 18:21:11 +08:00
public $js = [
'https://cdn.jsdelivr.net/npm/@tsparticles/slim@3.4.0/tsparticles.slim.bundle.min.js'
2024-04-19 18:21:11 +08:00
];
}