Common.js: Difference between revisions
From Engineering Client Portal
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: <script type="text/javascript"> var cn_rewrite_url = function() { var baseUrl = 'https://engineer...") |
No edit summary |
||
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. */ | ||
var cn_rewrite_url = function() { | var cn_rewrite_url = function() { | ||
var baseUrl = 'https://engineeringportal.nielsen.com/docs/Special:LandingCheck'; | var baseUrl = 'https://engineeringportal.nielsen.com/docs/Special:LandingCheck'; | ||
Line 8: | Line 7: | ||
} | } | ||
jQuery(document).ready(cn_rewrite_url); | jQuery(document).ready(cn_rewrite_url); | ||
Revision as of 22:31, 6 November 2018
/* Any JavaScript here will be loaded for all users on every page load. */
var cn_rewrite_url = function() {
var baseUrl = 'https://engineeringportal.nielsen.com/docs/Special:LandingCheck';
var queryString = jQuery.param({'landing_page':'Main_Page', 'language':wgUserLanguage, 'country':Geo.country});
jQuery("a.variable_lp").attr("href", baseUrl + '?' + queryString);
}
jQuery(document).ready(cn_rewrite_url);