Added menu button
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
// Toggle menu
|
// Toggle menu
|
||||||
$("#own-profile-picture").click(function() {
|
$("#own-profile-picture, #open-notifications").click(function() {
|
||||||
if ($("#notification-center").css('right') == "-256px") {
|
if ($("#notification-center").css('right') == "-256px") {
|
||||||
// Make the menu visible and move the content to the left.
|
// Make the menu visible and move the content to the left.
|
||||||
$("#chat-history").width("calc(100% - 587px)");
|
$("#chat-history").width("calc(100% - 587px)");
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ header div {
|
|||||||
width: 64px;
|
width: 64px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#own-profile-picture {
|
#own-profile-picture, #open-notifications {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#open-notifications {
|
||||||
|
padding: 5px 20px 5px 0px;
|
||||||
|
}
|
||||||
@@ -66,13 +66,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.notification-options {
|
.notification-options {
|
||||||
display: none;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification-options form {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-options button {
|
.notification-options button {
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ $userinfo = getHeaderInfo();
|
|||||||
<?=$userinfo["fname"]?>
|
<?=$userinfo["fname"]?>
|
||||||
</div>
|
</div>
|
||||||
<img id="own-profile-picture" class="profile-picture" src="<?=$userinfo["profilepicture"]?>"/>
|
<img id="own-profile-picture" class="profile-picture" src="<?=$userinfo["profilepicture"]?>"/>
|
||||||
|
<i id="open-notifications" class="fa fa-bars"></i>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<?php include("notification-center.php"); ?>
|
<?php include("notification-center.php"); ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user