Template:Form-template/Form-template-default: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
Line 59: | Line 59: | ||
var qs = regex.exec( window.location.search ); |
var qs = regex.exec( window.location.search ); |
||
return qs == null ? '' : qs[1]; |
return qs == null ? '' : qs[1]; |
||
} |
|||
function getLandingPage() { |
|||
var path = "</html>{{{landing-page|default}}}<html>"; |
|||
if( path == "default") { |
|||
pathArray = window.location.pathname.split( '/' ); |
|||
return pathArray[2]; |
|||
} |
|||
else return path; |
|||
} |
} |
||