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