No Man's Sky Wiki
Advertisement

In other languages: DeutschEspañolFrançaisItalianoPortuguês do Brasil


CSS and Javascript changes must comply with the wiki design rules.


Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Clear the cache in Tools → Preferences
setTimeout(function(){
	var rlist = $("#bodyContent a[href^='/']");
	var rtotal = rlist.length;
	if( rtotal && document.location.hash.indexOf("nohover")<0 ){
		for( var i = 0; i < rtotal; i++ ){
			if( !$(rlist[i]).is('.image') ){}
			$(rlist[i]).addClass("preview1");
		}
		$("#r-preview-box").remove();
		$("#bodyContent").after("<div id='r-preview-box'><div class='header'><i>X</i></div><iframe scrolling='yes'></iframe></div>");

		$("#r-preview-box iframe").unbind("load").bind("load", function(){
			$("#r-preview-box,#r-preview-box iframe").addClass("show");
		})

		$("#r-preview-box .header i").unbind("click").bind("click",function(){
			$("#r-preview-box").removeClass("show");
		});

		$("a.preview1").unbind("mouseover").bind("mouseover",function(){
			var url = $(this).attr("href")+'#nohover';
			var pos = $(this).offset();
			$("#r-preview-box").css({top: pos.top-15, left: pos.left});
			setTimeout(function(){
				$("#r-preview-box iframe").attr("src",url);
			},500);
		});
	}
	console.log("Preview setup ok");
},1500);
Advertisement