-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from TiagoDGomes/version-2.4
Version 2.4
- Loading branch information
Showing
24 changed files
with
500 additions
and
145 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
class Style { | ||
public static function getCurrentPathStyle(){ | ||
if (AccessCheck::isValidAdminPage()){ | ||
return 'media/custom-admin'; | ||
} else { | ||
return 'media/custom'; | ||
} | ||
|
||
} | ||
public static function getStyleURL($style, $admin=FALSE){ | ||
$url = "?i=" . $_GET['i'] . "&s=" . $style; | ||
if ($admin){ | ||
$url .= "&g=" . $_GET['g']; | ||
} | ||
return $url; | ||
} | ||
public static function HTMLMenu(){ | ||
echo '<hr>'; | ||
Style::HTMLMenuItems('media/custom', FALSE); | ||
if (AccessCheck::isValidAdminPage()){ | ||
echo '<hr>'; | ||
Style::HTMLMenuItems('media/custom-admin', TRUE); | ||
} | ||
} | ||
public static function HTMLMenuItems($path, $admin=FALSE){ | ||
global $HIDE_STYLES; | ||
$files = array_diff(scandir($path), array('..', '.')); | ||
foreach ($files as $file){ | ||
if (in_array($file, $HIDE_STYLES)){ | ||
// | ||
} else { | ||
if (file_exists("$path/$file/$file.png")){ | ||
$style_in_line = "background-image: url($path/$file/$file.png);"; | ||
} else if (file_exists("$path/$file/$file.svg")){ | ||
$style_in_line = "background-image: url($path/$file/$file.svg);"; | ||
} else { | ||
$style_in_line = ''; | ||
} | ||
?> | ||
|
||
<div class="item selector"> | ||
<a title="<?=$file?>" href="<?= Style::getStyleURL($file,$admin) ?>"><i style="<?= $style_in_line ?>" class="icon <?= $file ?>"></i></a> | ||
</div> | ||
|
||
<?php | ||
} | ||
|
||
} | ||
} | ||
public static function getCurrentStyle(){ | ||
return @$_GET['s']; | ||
} | ||
public static function HTMLHeadCurrentStyle(){ | ||
global $APP_VERSION; | ||
$s = Style::getCurrentStyle(); | ||
|
||
if ($s){ | ||
?><link rel="stylesheet" href="<?= Style::getCurrentPathStyle() ?>/<?= $s ?>/<?= $s ?>.css?v=<?= @$APP_VERSION ?>"><?php | ||
} | ||
if (!AccessCheck::isValidAdminPage() || !$s){ | ||
?> | ||
|
||
<link rel="stylesheet" href="media/default.css?v=<?= @$APP_VERSION ?>"> | ||
<link rel="stylesheet" href="media/button.css?v=<?= @$APP_VERSION ?>"> | ||
|
||
<?php | ||
} | ||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
<?php | ||
|
||
// Defina o número máximo de arquivos databases: | ||
$MAX_DATABASES = 1; | ||
|
||
// Pasta onde serão armazenados os arquivos databases: | ||
$DATABASE_PATH = __DIR__ . "/databases"; | ||
|
||
// Tamanho do nome do ID do arquivo database: | ||
$ID_LENGTH = 12; | ||
|
||
// Esconder estilos: | ||
$HIDE_STYLES = array('blank'); | ||
|
||
// Número de pings para fazer a sincronização: | ||
$SYNC_PING_COUNT = 4; |
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
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
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
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
This file was deleted.
Oops, something went wrong.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
:root{ | ||
--timer-ready-color: blue; | ||
} | ||
|
||
body.obs-panel { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | ||
background-color: black; | ||
color: white; | ||
} | ||
|
||
.obs-panel button { | ||
background-color: var(--timer-ready-color); | ||
color: white; | ||
border-radius: 6px; | ||
padding: 6px; | ||
cursor: pointer; | ||
} | ||
|
||
.obs-panel button:hover { | ||
background-color: rgb(100, 99, 99); | ||
} | ||
|
||
.obs-panel .container-timer { | ||
font-size: 2em; | ||
text-align: center; | ||
min-height: 1.5em; | ||
margin-top: 1em; | ||
} | ||
.obs-panel .command-buttons{ | ||
text-align: center; | ||
margin: 1em 0; | ||
} | ||
.obs-panel button { | ||
min-width: 60px; | ||
} | ||
|
||
.obs-panel .container-toolbar{ | ||
display: none; | ||
} | ||
|
||
.obs-panel .container-status{ | ||
position: fixed; | ||
top: 0; | ||
} | ||
|
||
.obs-panel .big.start{ | ||
background-color: green; | ||
} | ||
.obs-panel .big.pause{ | ||
background-color: blue; | ||
} | ||
.obs-panel #debug{ | ||
position: fixed; | ||
bottom: 0; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
body.full-screen-mode{ | ||
width: 100%; | ||
color: var(--timer-font-color); | ||
background-color: var(--timer-default-color); | ||
} | ||
|
||
body.full-screen-mode .container-timer { | ||
margin: 0 auto; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
|
||
} | ||
|
||
@media (max-width: 400px) { | ||
body.full-screen-mode #qrcode { | ||
display: none; | ||
} | ||
} | ||
|
||
@media (orientation: landscape) { | ||
body.full-screen-mode .container-timer { | ||
font-size: 60vh; | ||
} | ||
} | ||
|
||
@media (orientation: portrait) { | ||
body.full-screen-mode .container-timer { | ||
font-size: 68pt; | ||
} | ||
} | ||
body.full-screen-mode #status-basic { | ||
display: none | ||
} | ||
|
||
body.full-screen-mode.timer-ready { | ||
background-color: var(--timer-ready-color); | ||
} | ||
|
||
body.full-screen-mode.timer-semaphore.ready, | ||
body.full-screen-mode.timer-zero { | ||
background-color: var(--timer-semaphore-ready); | ||
} | ||
|
||
body.full-screen-mode.timer-ending { | ||
background-color: var(--timer-ending-color); | ||
} | ||
|
||
body.full-screen-mode.timer-sync.timer-sync-error{ | ||
background-color: var(--timer-sync-error-color); | ||
} | ||
|
||
body.full-screen-mode.timer-semaphore.set, | ||
body.full-screen-mode.timer-ending.timer-alert { | ||
background-color: var(--timer-semaphore-set); | ||
} | ||
|
||
body.full-screen-mode #qrcode { | ||
bottom: 2px | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.