Jump to content

User:RCSDevs/spider web.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RCSDevs (talk | contribs) at 21:45, 19 July 2016. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importStylesheet('User:RCSDevs/spider_web.css');

$(document).ready(function()
{
	var section = $('aside.ra-read-more.post-content.noprint').eq(0);

	section.find('h2').eq(0).html('Related Pages | <a id="toggle_spiderweb" href="#">Toggle SpiderWeb</a>');
	
	console.log(section.find('ul').eq(0).width());
	
	$('#toggle_spiderweb').click(function(event)
	{
		event.preventDefault();
	});
});