Compare commits
4 Commits
865c5433a9
...
b8f43a6853
| Author | SHA1 | Date | |
|---|---|---|---|
| b8f43a6853 | |||
| a3fbdf5859 | |||
| 15ddca379f | |||
| 88bec0c718 |
@ -130,8 +130,13 @@ $config_data = json_decode($raw_json_config, false);
|
|||||||
<div id="login_area">
|
<div id="login_area">
|
||||||
</div>
|
</div>
|
||||||
<div class="word_input_area">
|
<div class="word_input_area">
|
||||||
|
<?php if ($config_data->ose) : ?>
|
||||||
|
<textarea name="submitted" id="wordinput" placeholder="Nächster Satz" autocomplete="off"></textarea> <button id="sendbut" class="send_button" onclick="sendWord()">
|
||||||
|
<?php else: ?>
|
||||||
<input type="text" name="submitted" id="wordinput" placeholder="Nächstes Wort" autocomplete="off"> <button id="sendbut" class="send_button" onclick="sendWord()">
|
<input type="text" name="submitted" id="wordinput" placeholder="Nächstes Wort" autocomplete="off"> <button id="sendbut" class="send_button" onclick="sendWord()">
|
||||||
<?php
|
<?php
|
||||||
|
endif;
|
||||||
|
|
||||||
print(isset($config_data->send_logo) ? ("<img src='data/".$config_data->send_logo."' width='64'>") : "<i class='far fa-paper-plane'></i>");
|
print(isset($config_data->send_logo) ? ("<img src='data/".$config_data->send_logo."' width='64'>") : "<i class='far fa-paper-plane'></i>");
|
||||||
?>
|
?>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
2
owe.js
2
owe.js
@ -116,7 +116,7 @@ async function sendWord() {
|
|||||||
function displayNotification(word) {
|
function displayNotification(word) {
|
||||||
if (Notification.permission == 'granted') {
|
if (Notification.permission == 'granted') {
|
||||||
navigator.serviceWorker.getRegistration().then(function(reg) {
|
navigator.serviceWorker.getRegistration().then(function(reg) {
|
||||||
reg.showNotification("Neues Wort auf " + (config_data.title ? config_data.title : "OWE"),
|
reg.showNotification("Neuer Beitrag auf " + (config_data.title ? config_data.title : "OWE"),
|
||||||
{ body: word, icon: (config_data.logo? config_data.logo.image_path : "OWE_Logo.png"), requireInteraction: true });
|
{ body: word, icon: (config_data.logo? config_data.logo.image_path : "OWE_Logo.png"), requireInteraction: true });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -97,7 +97,7 @@ a {
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
width: auto;
|
width: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar_button {
|
#sidebar_button {
|
||||||
@ -116,6 +116,7 @@ input, .send_button {
|
|||||||
border: 2px solid white;
|
border: 2px solid white;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
margin: 30px 0px;
|
margin: 30px 0px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user