Created
May 5, 2017 11:25
-
-
Save deryni/3a53c711e563c993d019fef76f09a96f to your computer and use it in GitHub Desktop.
cockpit visibility change weirdness
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Cockpit Visibility Testing</title> | |
<script src="../base1/cockpit.js"></script> | |
<script src="test.js"></script> | |
</head> | |
<body> | |
<header> | |
<h2>Cockpit Visibility Testing</h2> | |
</header> | |
</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
{ | |
"version": 0, | |
"requires": { | |
"cockpit": "0.114" | |
}, | |
"menu": { | |
"index": { | |
"label": "Test", | |
"order": 0, | |
"path": "index.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
function ovc() { | |
console.log('onvisibilitychange', 'cockpit.hidden', cockpit.hidden); | |
} | |
//cockpit.addEventListener("visibilitychange", ovc); | |
cockpit.onvisibilitychange = ovc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment