Welcome to IOPWiki, Commander.
With the release of the new game, we encourage contributions to topics related to Girls' Frontline 2. Learn how to contribute, read the maintenance guide, and join our Discord server to discuss major changes.
If you or someone you know can help deciphering the game files, contact our administrator.

MediaWiki:Common.js

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Revision as of 10:39, 25 July 2017 by Pianoforte (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
$(document).ready(function(){
	console.log(mw.config.get("wgPageName"));
	if (mw.config.get("wgPageName") === "User:Lst174523/gfSpine") {
		console.log("coming!");
		load_js.load();
		
	}
});

var baseview;
var girlsload;

var load_js = {
	baseurl : "/index.php?title=User:Lst174523/gfSpine/",
	list_js : [
		"tools.js"
	],
	load_num : 0,
	load : function(){
		if(load_js.load_num >= load_js.list_js.length){
			initGirl();
			return;
		}
		$.getScript(load_js.baseurl + load_js.list_js[load_js.load_num] + "&action=raw", function(response,status){
			if(status == 'success'){
				console.log(load_js.list_js[load_js.load_num] + ' loaded');
				load_js.load_num++;
				load_js.load();
			}
		});
	}
}

function initGirl(){
	baseview = new BaseView(400, 400);
	baseview.start();
	$("#mw-content-text").append(baseview.renderer.view);

	girlsload = new SkeletonLoader("http://en.gfwiki.com/index.php/Special:Redirect/file/", data_girl);
	girlsload.load("6P62", "6P62", function(p){
		baseview.addSpinePlayer(p);
	});
	
	$(baseview.renderer.view).click(function(e){
		e.stopPropagation();
		baseview.nextAnimation(0);
	});
	
	
}