Skip to content

Commit

Permalink
Fullscreen (#168)
Browse files Browse the repository at this point in the history
* html files honor editorconfig now
* hide scrollbar, when in FullScreen and on scrolled to top
* image zoom
* changelog for imagezoom
  • Loading branch information
jkowalleck authored Nov 28, 2019
1 parent ddf26ea commit 1d62e8e
Show file tree
Hide file tree
Showing 9 changed files with 746 additions and 774 deletions.
2 changes: 2 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
### Added

* ImageCrawler for Instagram: `InstagramProfile` & `InstagramHashtag`
* web UI: added image zoom in
* web UI: hide scrollbar in FullScreen mode, when at top


## 2.0.1
Expand Down
5 changes: 5 additions & 0 deletions nichtparasoup/webserver/htdocs/css/look_bossMode.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
html.boss * {
visibility: hidden;
}

html.boss,
html.boss body {
overflow: hidden;
}
25 changes: 25 additions & 0 deletions nichtparasoup/webserver/htdocs/css/look_fullscreen.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

@media all and (display-mode: fullscreen) {

html.atTop::-webkit-scrollbar,
html.atTop body::-webkit-scrollbar {
display: none;
}

html.atTop,
html.atTop body {
overflow: -moz-scrollbars-none;
-ms-overflow-style: none;
scrollbar-width: none;
}

}


html.canFullScreen #wall figure img {
cursor: zoom-in;
}

html.canFullScreen #wall figure img:fullscreen {
cursor: zoom-out;
}
180 changes: 89 additions & 91 deletions nichtparasoup/webserver/htdocs/index.html
Original file line number Diff line number Diff line change
@@ -1,101 +1,99 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="referrer" content="no-referrer" />
<title>nichtparasoup - Hackspace Entertainment System</title>

<link rel="stylesheet" href="css/normalize.css" />

<link rel="stylesheet" href="css/sourceIcons.css" />
<link rel="stylesheet" href="css/look_buttons.css" />
<link rel="stylesheet" href="css/look_stateSwitch.css" />
<link rel="stylesheet" href="css/look_hotkeys.css" />
<link rel="stylesheet" href="css/look.css" />
<link rel="stylesheet" href="css/look_bossMode.css" />

<link rel="stylesheet" href="css/feel.css" />

<script type="application/javascript" src="js/helper.js"></script>
<script type="application/javascript" src="js/look_maxSizer.js"></script>
<script type="application/javascript" src="js/look_stateSwitch.js"></script>
<script type="application/javascript" src="js/feel.js"></script>
<script type="application/javascript" src="js/feel_hotkeys.js"></script>


<script type="application/javascript">
window.helperFuncs.addEvent(window, "load", function ()
{
this.maxSizer.init('#wall figure img');
this.stateSwitch.init(this.document.getElementById('c_state'));
this.stateSwitch.init(this.document.getElementById('c_background'));
this.nichtparasoup.init('wall', 2);
});
</script>

<head>
<meta charset="UTF-8">
<meta name="referrer" content="no-referrer" />
<title>nichtparasoup - Hackspace Entertainment System</title>

<link rel="stylesheet" href="css/normalize.css" />

<link rel="stylesheet" href="css/sourceIcons.css" />
<link rel="stylesheet" href="css/look_buttons.css" />
<link rel="stylesheet" href="css/look_stateSwitch.css" />
<link rel="stylesheet" href="css/look_hotkeys.css" />
<link rel="stylesheet" href="css/look.css" />
<link rel="stylesheet" href="css/look_fullscreen.css" />
<link rel="stylesheet" href="css/look_bossMode.css" />

<link rel="stylesheet" href="css/feel.css" />

<script type="application/javascript" src="js/helper.js"></script>
<script type="application/javascript" src="js/look_maxSizer.js"></script>
<script type="application/javascript" src="js/look_stateSwitch.js"></script>
<script type="application/javascript" src="js/feel.js"></script>
<script type="application/javascript" src="js/feel_hotkeys.js"></script>

<script type="application/javascript">
window.helperFuncs.addEvent(window, "load", function () {
this.maxSizer.init('#wall figure img');
this.stateSwitch.init(this.document.getElementById('c_state'));
this.stateSwitch.init(this.document.getElementById('c_background'));
this.nichtparasoup.init('wall', 2);
});
</script>
</head>

<body>

<div id="wall"><!-- images added here --></div>


<header><!-- top controls -->
<div id="controls">
<!-- not implemented, yet
<label for="c_nsfw">nsfw:</label>
<input id="c_nsfw" type="checkbox">
-->

<span id="serverControls">
<button id="sc_reset" title="reset server">reset</button>
</span>

<span class="spacer">&nbsp;</span>



<label class="button stateSwitchContainer" for="c_background" title="keep playing even when the window lost the focus">
play in background:
<input id="c_background" type="checkbox" />
</label>

<label for="c_speed" title="set image interval">
speed:
slow <input id="c_speed" type="range" min="3" max="23" /> fast
</label>

<label class="button stateSwitchContainer" for="c_state" title="play/pause">
play:
<input id="c_state" type="checkbox" checked="checked" />
</label>
</div>

<span id="burger">&#9776;</span>
</header>

<footer><!-- bottom hints -->
<span class="spacer">&nbsp;</span>

<dl id="hotkeys">
<dd class="button">esc</dd><!-- no key indicator needed, the effect will be clear ;-) -->
<dt>boss mode</dt>
<dd class="button hk_32">space</dd>
<dt>play/pause</dt>
<dd class="button hk_107 hk_61 hk_171 hk_187">+</dd>
<dt>faster</dt>
<dd class="button hk_109 hk_173 hk_189">-</dd>
<dt>slower</dt>
<dd class="button">j</dd>
<dt>next image</dt>
<dd class="button">k</dd>
<dt>next-to-last image</dt>
</dl>

<span class="button" id="keys" class="hotkey">hot keys</span>
</footer>


<div id="wall">
<!-- images added here -->
</div>

<header>
<!-- top controls -->
<div id="controls">
<!--
not implemented, yet
<label for="c_nsfw">nsfw:</label>
<input id="c_nsfw" type="checkbox">
-->

<span id="serverControls">
<button id="sc_reset" title="reset server">reset</button>
</span>

<span class="spacer">&nbsp;</span>

<label class="button stateSwitchContainer" for="c_background"
title="keep playing even when the window lost the focus">
play in background:
<input id="c_background" type="checkbox" />
</label>

<label for="c_speed" title="set image interval">
speed:
slow <input id="c_speed" type="range" min="3" max="23" /> fast
</label>

<label class="button stateSwitchContainer" for="c_state" title="play/pause">
play:
<input id="c_state" type="checkbox" checked="checked" />
</label>
</div>

<span id="burger">&#9776;</span>
</header>

<footer>
<!-- bottom hints -->
<span class="spacer">&nbsp;</span>

<dl id="hotkeys">
<dd class="button">esc</dd><!-- no key indicator needed, the effect will be clear ;-) -->
<dt>boss mode</dt>
<dd class="button hk_32">space</dd>
<dt>play/pause</dt>
<dd class="button hk_107 hk_61 hk_171 hk_187">+</dd>
<dt>faster</dt>
<dd class="button hk_109 hk_173 hk_189">-</dd>
<dt>slower</dt>
<dd class="button">j</dd><!-- no key indicator needed, the effect will be clear ;-) -->
<dt>next image</dt>
</dl>

<span class="button hotkey" id="keys">hot keys</span>
</footer>
</body>

</html>
Loading

0 comments on commit 1d62e8e

Please sign in to comment.