Difference between revisions of "MediaWiki:Common.js"
From Phoenix Cart User Guide
PeterRobert (talk | contribs) |
PeterRobert (talk | contribs) |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
jQuery(function(){ | jQuery(function(){ | ||
− | + | jQuery(".btn-back").click(function(){ | |
− | jQuery(".btn-back").click(function(){ | + | window.history.back(); |
− | + | }); | |
− | window.history.back(); | + | jQuery(".btn-home").click(function(){ |
− | + | window.location.href = "/phoenixcartwiki/index.php"; | |
− | }); | + | }); |
− | + | jQuery(".btn-admin").click(function(){ | |
− | jQuery(".btn- | + | window.location.href = "/phoenixcartwiki/index.php/ADMINISTRATION"; |
− | + | }); | |
− | window.location.href = "/phoenixcartwiki/index.php"; | + | jQuery(".btn-intro").click(function(){ |
− | + | window.location.href = "/phoenixcartwiki/index.php/INTRODUCTION"; | |
− | }); | + | }); |
− | + | jQuery(".btn-setup-shop").click(function(){ | |
+ | window.location.href = "/phoenixcartwiki/index.php/SET_UP_SHOW"; | ||
+ | }); | ||
+ | jQuery(".btn-faq").click(function(){ | ||
+ | window.location.href = "/phoenixcartwiki/index.php/FAQ_TIPS_&_TRICKS"; | ||
+ | }); | ||
+ | jQuery(".btn-must-have").click(function(){ | ||
+ | window.location.href = "/phoenixcartwiki/index.php/MUST_HAVE_TOOLS"; | ||
+ | }); | ||
+ | jQuery(".btn-download").click(function(){ | ||
+ | window.location.href = "/phoenixcartwiki/index.php/DOWNLOAD_&_INSTALL"; | ||
+ | }); | ||
}); | }); |
Revision as of 05:25, 25 March 2021
/* Any JavaScript here will be loaded for all users on every page load. */ jQuery(function(){ jQuery(".btn-back").click(function(){ window.history.back(); }); jQuery(".btn-home").click(function(){ window.location.href = "/phoenixcartwiki/index.php"; }); jQuery(".btn-admin").click(function(){ window.location.href = "/phoenixcartwiki/index.php/ADMINISTRATION"; }); jQuery(".btn-intro").click(function(){ window.location.href = "/phoenixcartwiki/index.php/INTRODUCTION"; }); jQuery(".btn-setup-shop").click(function(){ window.location.href = "/phoenixcartwiki/index.php/SET_UP_SHOW"; }); jQuery(".btn-faq").click(function(){ window.location.href = "/phoenixcartwiki/index.php/FAQ_TIPS_&_TRICKS"; }); jQuery(".btn-must-have").click(function(){ window.location.href = "/phoenixcartwiki/index.php/MUST_HAVE_TOOLS"; }); jQuery(".btn-download").click(function(){ window.location.href = "/phoenixcartwiki/index.php/DOWNLOAD_&_INSTALL"; }); });