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;
}
#notificationArea {
background:#c0c088;
}
#dictionaryContainer {
background: #bd7251;
padding: 15px;

View File

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

View File

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