change style

change title readonly
This commit is contained in:
quenousimporte 2024-02-14 08:54:24 +01:00
parent 8c737a5966
commit 98c96582d3
1 changed files with 15 additions and 3 deletions

View File

@ -13,11 +13,21 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta charset="UTF-8">
<style type="text/css">
body {
font-family: helvetica;
}
textarea {
height: 500px;
width: 100%;
border: none;
outline: none;
font-family: inherit;
font-size: inherit;
}
.title {
width: 100%;
border: none;
outline: none;
font-weight: bold;
}
</style>
</head>
@ -61,10 +71,12 @@
$content = file_get_contents($dir . '/' . $title);
}
$nblines = substr_count($content, "\r\n");
echo '<form action="index.php" method="POST">
<br><div><input name="title" value="' . $title . '"></div><br>
<br><div><input class="title" readonly name="title" value="' . $title . '"></div><br>
<div>
<textarea autofocus name="content" spellcheck="false">' . $content . '</textarea>
<textarea rows="' . $nblines. '" autofocus name="content" spellcheck="false">' . $content . '</textarea>
</div>
<input type="submit" name="savebutton" value="save" accesskey="s">
<input accesskey="d" type="submit" name="deletebutton" value="delete">