custom send button logos
This commit is contained in:
parent
21f1eda1f5
commit
15ac431324
12
index.php
12
index.php
@ -49,7 +49,11 @@ $config_data = json_decode($raw_json_config, false);
|
|||||||
<head>
|
<head>
|
||||||
<title><?php print($config_data->title ?? "One Word Each"); ?></title>
|
<title><?php print($config_data->title ?? "One Word Each"); ?></title>
|
||||||
<link rel="stylesheet" href="style.css?newinputarea">
|
<link rel="stylesheet" href="style.css?newinputarea">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==" crossorigin="anonymous" />
|
<?php
|
||||||
|
if (!isset($config_data->send_logo)) {
|
||||||
|
print("<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css' integrity='sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==' crossorigin='anonymous' />");
|
||||||
|
}
|
||||||
|
?>
|
||||||
<link rel="icon" href="<?php print($config_data->logo->icon_path ?? "favicon.ico"); ?>" type="image/x-icon">
|
<link rel="icon" href="<?php print($config_data->logo->icon_path ?? "favicon.ico"); ?>" type="image/x-icon">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -76,7 +80,11 @@ $config_data = json_decode($raw_json_config, false);
|
|||||||
<br>
|
<br>
|
||||||
<form action="./#wordform" method="post" autocomplete="off" id="wordform"></form>
|
<form action="./#wordform" method="post" autocomplete="off" id="wordform"></form>
|
||||||
<div class="word_input_area">
|
<div class="word_input_area">
|
||||||
<input type="text" name="submitted" id="wordinput" form="wordform" placeholder="Nächstes Wort"> <button type="submit" form="wordform" class="send_button"><i class="far fa-paper-plane"></i></button>
|
<input type="text" name="submitted" id="wordinput" form="wordform" placeholder="Nächstes Wort"> <button type="submit" form="wordform" class="send_button">
|
||||||
|
<?php
|
||||||
|
print(isset($config_data->send_logo) ? ("<img src='data/".$config_data->send_logo."' width='64'>") : "<i class='far fa-paper-plane'></i>");
|
||||||
|
?>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user