Template:Form-template/Form-template-default: Difference between revisions

Content deleted Content added
Pgehres (WMF) (talk | contribs)
oops
Pgehres (WMF) (talk | contribs)
moved getQuerystring to MediaWiki:Resources/landingpage.js
Line 2:
<html>
<script type="text/javascript">
 
function getQuerystring( key ) {
key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' );
var qs = regex.exec( window.location.search );
return qs == null ? '' : qs[1];
}
 
//Should this be here?