Compare commits
No commits in common. "b8f43a6853d13c9fd18cc3c55c9e77571413f2a0" and "865c5433a918d3db439bd81a2b322a8d64cb6231" have entirely different histories.
b8f43a6853
...
865c5433a9
@ -130,13 +130,8 @@ $config_data = json_decode($raw_json_config, false);
|
||||
<div id="login_area">
|
||||
</div>
|
||||
<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()">
|
||||
<?php
|
||||
endif;
|
||||
|
||||
print(isset($config_data->send_logo) ? ("<img src='data/".$config_data->send_logo."' width='64'>") : "<i class='far fa-paper-plane'></i>");
|
||||
?>
|
||||
</button>
|
||||
|
||||
2
owe.js
2
owe.js
@ -116,7 +116,7 @@ async function sendWord() {
|
||||
function displayNotification(word) {
|
||||
if (Notification.permission == 'granted') {
|
||||
navigator.serviceWorker.getRegistration().then(function(reg) {
|
||||
reg.showNotification("Neuer Beitrag auf " + (config_data.title ? config_data.title : "OWE"),
|
||||
reg.showNotification("Neues Wort auf " + (config_data.title ? config_data.title : "OWE"),
|
||||
{ body: word, icon: (config_data.logo? config_data.logo.image_path : "OWE_Logo.png"), requireInteraction: true });
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user