|
@@ -15,6 +15,7 @@
|
|
|
<body>
|
|
|
|
|
|
<?= file_get_contents('src/splash.html') ?>
|
|
|
+ <span id="close-fs" role="button" class="hide" onclick="fullscreen()">X</span>
|
|
|
|
|
|
<div id="header">
|
|
|
<h1>Hello</h1>
|
|
@@ -28,7 +29,6 @@
|
|
|
<div><span role="button" data-tooltip="Télécharger les CV en CMD"><span class="iconify" data-icon="mdi-console"></span></span></div>
|
|
|
</div>
|
|
|
<div class="window">
|
|
|
- <span id="close-fs" role="button" class="hide" onclick="fullscreen()">X</span>
|
|
|
<div class="window-toolbar">
|
|
|
<div class="window-toolbar-left">
|
|
|
<span class="iconify" data-icon="mdi-console-line"></span>
|
|
@@ -60,26 +60,25 @@
|
|
|
<script src="js/konami.js"></script>
|
|
|
<script src="js/loaded.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
-
|
|
|
|
|
|
- //fullscreen();
|
|
|
-
|
|
|
- function fullscreen() {
|
|
|
+ function fullscreen(closeBtn = true) {
|
|
|
const pos = $('#' + windowMode).position();
|
|
|
if (!$('#' + windowMode).hasClass('fullscreen')) {
|
|
|
$('#' + windowMode).css('top', Math.trunc(pos.top) + 'px');
|
|
|
$('#' + windowMode).css('left', Math.trunc(pos.left) + 'px');
|
|
|
$('#' + windowMode).css('position', 'fixed');
|
|
|
+ localStorage.setItem('show-page', false);
|
|
|
} else {
|
|
|
$('#' + windowMode).one('transitionend', function() {
|
|
|
$('#' + windowMode).css('top', '');
|
|
|
$('#' + windowMode).css('left', '');
|
|
|
$('#' + windowMode).css('position', '');
|
|
|
});
|
|
|
+ localStorage.setItem('show-page', true);
|
|
|
}
|
|
|
|
|
|
$('#' + windowMode).toggleClass('fullscreen');
|
|
|
- $('#close-fs').toggleClass('hide');
|
|
|
+ if (closeBtn) $('#close-fs').toggleClass('hide');
|
|
|
}
|
|
|
|
|
|
function show() {
|