-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab6c40b
commit f9ed751
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script src="../swap.js"></script> | ||
<script> | ||
Swap.loaders['.screen2'] = () => { | ||
console.log("screen2 loaded"); | ||
let screen2_interval = setInterval(() => { console.log("screen2 repeat every 1000 ms"); }, 1000); | ||
return () => { console.log("screen2 clear"); clearInterval(screen2_interval); }; // unloader function | ||
} | ||
Swap.loaders['.screen3'] = () => { | ||
console.log("screen3 loaded"); | ||
let screen3_interval = setInterval(() => { console.log("screen3 repeat every 200 ms"); }, 200); | ||
return () => { console.log("screen3 clear"); clearInterval(screen3_interval); }; // unloader function | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<a href="index.php" swap-target="body" swap-history="true">Index</a> | ||
<a href="screen2.php" swap-target="#container2" swap-history="true">Go to screen2</a> | ||
<a href="screen3.php" swap-target="#container3" swap-history="true">Go to screen3</a> | ||
<a href="javascript:history.back();">History back</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php include "header.php" ?> | ||
|
||
<div id="container2" class="screen2">Screen2</div> | ||
<div id="container3">CONTAINER3</div> | ||
|
||
<?php include "footer.php" ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php include "header.php" ?> | ||
|
||
<div id="container2">CONTAINER2</div> | ||
<div id="container3" class="screen3">Screen3</div> | ||
|
||
<?php include "footer.php" ?> |