2025-10-27 21:33:38 +01:00
|
|
|
---
|
|
|
|
|
title: Windows
|
|
|
|
|
tags:
|
|
|
|
|
- ui
|
|
|
|
|
---
|
|
|
|
|
{% assign bodyClass = "body_frame" -%}
|
|
|
|
|
{% layout "hippie/app.liquid" %}
|
|
|
|
|
|
|
|
|
|
{% block body %}
|
2025-10-27 23:24:49 +01:00
|
|
|
<div id="task-bar">
|
|
|
|
|
<nav>
|
|
|
|
|
<button data-action="start"><i class="bi bi-microsoft"></i></button>
|
|
|
|
|
</nav>
|
|
|
|
|
<nav>
|
|
|
|
|
<button><i class="bi bi-search"></i></button>
|
|
|
|
|
<button><i class="bi bi-layers-half"></i></button>
|
|
|
|
|
</nav>
|
|
|
|
|
<nav class="big">
|
|
|
|
|
<button><i class="bi bi-folder"></i></button>
|
|
|
|
|
<button><i class="bi bi-terminal"></i></button>
|
2025-10-31 19:47:19 +01:00
|
|
|
<button id="pauseButton"><i class="bi bi-pause"></i></button>
|
|
|
|
|
<button id="resumeButton"><i class="bi bi-play"></i></button>
|
2025-10-27 23:24:49 +01:00
|
|
|
</nav>
|
|
|
|
|
<div>
|
|
|
|
|
<nav class="small">
|
|
|
|
|
<button><i class="bi bi-chevron-up"></i></button>
|
|
|
|
|
<button><i class="bi bi-steam"></i></button>
|
|
|
|
|
<button><i class="bi bi-router"></i></button>
|
|
|
|
|
<button><i class="bi bi-mic"></i></button>
|
|
|
|
|
<button><i class="bi bi-volume-down"></i></button>
|
|
|
|
|
</nav>
|
2025-11-02 09:26:19 +01:00
|
|
|
<div class="clock">
|
|
|
|
|
<span id="time">##:##</span>
|
|
|
|
|
<br>
|
|
|
|
|
</div>
|
2025-10-27 23:24:49 +01:00
|
|
|
<nav>
|
|
|
|
|
<button data-action="notification"><i class="bi bi-bell-fill"></i></button>
|
|
|
|
|
</nav>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-10-27 21:33:38 +01:00
|
|
|
<div id="screen-space"></div>
|
2025-11-02 11:39:11 +01:00
|
|
|
<div id="placeholder">
|
|
|
|
|
<div class="box"></div>
|
|
|
|
|
<div class="box_brd"></div>
|
|
|
|
|
<div>
|
2025-11-02 13:12:04 +01:00
|
|
|
<span>task bar</span>
|
2025-11-02 11:39:11 +01:00
|
|
|
<div class="box_brd"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-10-27 21:33:38 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{%- block script %}
|
2025-11-02 17:18:12 +01:00
|
|
|
{% comment %}<script src="{{ pageBase }}js/globals.js"></script>{% endcomment %}
|
|
|
|
|
<script src="/vendor/hippie-script.js"></script>
|
2025-10-31 19:47:19 +01:00
|
|
|
<script src="{{ pageBase }}js/app.js"></script>
|
2025-10-27 21:33:38 +01:00
|
|
|
<script src="{{ pageBase }}js/windows.js"></script>
|
|
|
|
|
<script>
|
2025-11-03 19:37:19 +01:00
|
|
|
console.log(HIPPIE.brand);
|
2025-10-27 21:33:38 +01:00
|
|
|
// Get the space element
|
|
|
|
|
const space = document.getElementById('screen-space');
|
|
|
|
|
const start = document.querySelector('[data-action=start]');
|
|
|
|
|
const draggableElement = document.getElementById('task-bar');
|
|
|
|
|
const placeholderElement = document.getElementById('placeholder');
|
2025-10-31 19:47:19 +01:00
|
|
|
const timeElement = document.getElementById('time');
|
2025-11-02 10:20:51 +01:00
|
|
|
|
|
|
|
|
const taskBar = new HippieTaskBar(draggableElement, placeholderElement);
|
2025-11-01 11:34:00 +01:00
|
|
|
const timeFormat = {hour: '2-digit', minute: '2-digit'};
|
|
|
|
|
const timeDisplay = new TimeDisplay(timeElement, timeFormat);
|
2025-10-31 19:47:19 +01:00
|
|
|
|
|
|
|
|
document.getElementById('pauseButton').addEventListener('click', () => {
|
|
|
|
|
timeDisplay.pause();
|
|
|
|
|
console.info('Pause time');
|
|
|
|
|
});
|
|
|
|
|
document.getElementById('resumeButton').addEventListener('click', () => {
|
|
|
|
|
timeDisplay.resume();
|
|
|
|
|
console.info('Resume time');
|
|
|
|
|
});
|
2025-10-27 21:33:38 +01:00
|
|
|
</script>
|
|
|
|
|
{% endblock %}
|