Finalize demo redirect page
This commit is contained in:
parent
2f48340547
commit
c23154fbab
2 changed files with 16 additions and 19 deletions
|
@ -73,7 +73,7 @@ function new_comment() {
|
|||
|
||||
function submit_success(data) {
|
||||
console.log('submit ' + data);
|
||||
// TODO redirect to redirect page with page as argument
|
||||
window.location="redirect.html?p=" + STACOSYS_PAGE;
|
||||
}
|
||||
|
||||
function submit_failure(error) {
|
||||
|
|
|
@ -8,18 +8,18 @@
|
|||
<title>Le blog du Yax</title>
|
||||
|
||||
<!-- Le styles -->
|
||||
<link rel="stylesheet" href="theme/css/pure/pure-0.5.0-min.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/pure-0.css" type="text/css" />
|
||||
<!--[if lte IE 8]>
|
||||
<link rel="stylesheet" href="theme/css/pure/grids-responsive-old-ie-min.css">
|
||||
<link rel="stylesheet" href="css/grids-responsive-old-ie-min.css">
|
||||
<![endif]-->
|
||||
<!--[if gt IE 8]><!-->
|
||||
<link rel="stylesheet" href="theme/css/pure/grids-responsive-min.css">
|
||||
<link rel="stylesheet" href="cssgrids-responsive-min.css">
|
||||
<!--<![endif]-->
|
||||
<link rel="stylesheet" href="theme/css/style.css" type="text/css" />
|
||||
<link rel="stylesheet" href="theme/css/font-awesome.min.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/font-awesome.css" type="text/css" />
|
||||
|
||||
<!-- Le fav and touch icons -->
|
||||
<link rel="shortcut icon" href="theme/img/favicon.png">
|
||||
<link rel="shortcut icon" href="img/favicon.png">
|
||||
|
||||
</head>
|
||||
|
||||
|
@ -44,23 +44,20 @@
|
|||
|
||||
<script type="text/javascript"><!--
|
||||
|
||||
function gup( name )
|
||||
{
|
||||
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
|
||||
var regexS = "[\\?&]"+name+"=([^&#]*)";
|
||||
var regex = new RegExp( regexS );
|
||||
var results = regex.exec( window.location.href );
|
||||
if( results == null )
|
||||
return null;
|
||||
else
|
||||
return results[1];
|
||||
function getParameterByName(name) {
|
||||
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
|
||||
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
|
||||
results = regex.exec(location.search);
|
||||
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
|
||||
}
|
||||
|
||||
function display() {
|
||||
var referer_param = gup( 'referer' );
|
||||
document.getElementById('linkurl').href = referer_param;
|
||||
var page = getParameterByName('p');
|
||||
document.getElementById('linkurl').href = page;
|
||||
}
|
||||
|
||||
window.onload = display();
|
||||
|
||||
--></script>
|
||||
|
||||
</body>
|
||||
|
|
Loading…
Add table
Reference in a new issue