User:Pickachu doesnt shave legs/common.js

window.onload = function { console.log("Ok, it works"); };

$(function{	$(window).on('hashchange', function( e ) { console.log('Hash changed!', window.location.hash) refreshBuildings return true; });	refreshBuildings; })

function refreshBuildings { console.log('Refreshing buildings') var buildingsList = $("#buildings-list"); if (!buildingsList) { console.log('Bulding list is empty, preventing refresh') return; }	var selectedBuildingsCategory = window.location.hash.replace("#", ''); if (!selectedBuildingsCategory) { console.log('Category is not selected, preventing refresh') return; }	console.log('Refreshing buildings, category=', selectedBuildingsCategory) buildingsList.children('div[data-category=' + selectedBuildingsCategory + ']').show; buildingsList.children('div[data-category!=' + selectedBuildingsCategory + ']').hide; }