Added simple notifications.

Updated styling for word links.
This commit is contained in:
Robbie Antenesse 2015-11-09 11:45:46 -07:00
parent a4a3bc8b9d
commit 8356317d1d
4 changed files with 35 additions and 1 deletions

View File

@ -73,6 +73,10 @@ input, textarea, select, option, button {
background: #efdfc0; background: #efdfc0;
} }
#notificationArea {
background:#c0c088;
}
#dictionaryContainer { #dictionaryContainer {
background: #bd7251; background: #bd7251;
padding: 15px; padding: 15px;

View File

@ -111,6 +111,15 @@ input[type=checkbox] {
margin: 0 10px 0 0; margin: 0 10px 0 0;
} }
#notificationArea {
text-align:center;
padding:10px;
border-radius:5px;
margin:0 auto;
width:50%;
min-width:200px;
}
#dictionaryContainer { #dictionaryContainer {
margin: 15px 0 36px 15px; /* bottom margin must clear footer */ margin: 15px 0 36px 15px; /* bottom margin must clear footer */
width: 60%; width: 60%;
@ -166,6 +175,9 @@ entry {
.wordLink { .wordLink {
text-decoration: none; text-decoration: none;
float: right; float: right;
font-size: 13px;
padding: 2px;
line-height: 10px;
} }
word { word {

View File

@ -1,4 +1,7 @@
<!DOCTYPE html> <?php
$notificationMessage = get_include_contents('notification.php');
?>
<!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
@ -25,6 +28,11 @@
</div> </div>
</header> </header>
<contents> <contents>
<?php if ($notificationMessage) { ?>
<div id="notificationArea">
<?php echo $notificationMessage; ?>
</div>
<?php } ?>
<div id="leftColumn"> <div id="leftColumn">
<form id="wordEntryForm"> <form id="wordEntryForm">
<label><span>Word</span> <label><span>Word</span>
@ -171,3 +179,13 @@
<?php include_once("php/google/analytics.php"); ?> <?php include_once("php/google/analytics.php"); ?>
</body> </body>
</html> </html>
<?php
function get_include_contents($filename) {
if (is_file($filename)) {
ob_start();
include $filename;
return ob_get_clean();
}
return false;
}
?>

0
notification.php Normal file
View File