◆少前百科是非盈利性、非官方的少女前线维基百科。
◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科
◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科
◆To foreigners,You can use twitter to contact us.
Icon Nyto Silver.png

MediaWiki:Gadget-pixiLoader.js

来自少前百科GFwiki
跳转至: 导航搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
window.animations = window.animations || {};

if (!window.animations.PIXILoader) {
	window.animations.PIXILoader = {};
	window.animations.PIXILoader.initialized = false;
	window.animations.PIXILoader.init = function() {
		return new Promise(
		    function (resolve, reject) {
		    	if (window.animations.PIXILoader.initialized) {
		    		resolve(null);
		    		return;
		    	}
		    	
		    	$.ajax({
				    cache: true,
				    async: true,
				    url: "/index.php?title=MediaWiki:Gadget-pixiJsWithSpine.js&action=raw",
				    dataType: "script"
				}).done(function() {
					console.log("Request PIXI JS Framework successfull");
					window.animations.PIXILoader.initialized = true;
				    resolve(null);
				}).fail(function() {
			        console.error("Loading PIXI framework failed");
			        var reason = new Error('PIXI framework failed loading');
			        reject(reason);
			    });
		    }
		);
	};
}

console.log("Loaded PIXI JS Gadget");