Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700' rel='stylesheet' type='text/css'>
- <link type="text/css" rel="stylesheet" media="screen" href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css"></link>
- <!--Navigation bar v1.12 by Den Link: http://www.enjin.com/forums/m/10826/viewthread/16653658-->
- <style type=text/css>
- /*NAV BAR STYLES*/
- .nav_style {
- top: 0px;
- right: 0px;
- left: 0px;
- position: fixed;
- height: 50px;
- background: url('http://i.imgur.com/F7xxtOT.jpg'); /*NAV_BAR BACKGROUND*/
- box-shadow: 0px 1px 5px black;
- border-bottom: 0px solid rgb(41, 46, 55); /*BOTTOM BORDER*/
- border-top: 0px solid orange; /*TOP BORDER*/
- margin: 0px 0px 0px -3px;
- z-index: 1050;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- /*NAV BAR STYLES SCROLLED*/
- .nav_style_scroll {
- top: 0px;
- right: 0px;
- left: 0px;
- position: fixed;
- height: 30px;
- background: url('http://i.imgur.com/F7xxtOT.jpg'); /*NAV_BAR BACKGROUND*/
- box-shadow: 0px 1px 5px black;
- border-bottom: 0px solid rgb(0, 76, 255); /*BOTTOM BORDER*/
- border-top: 0px solid orange; /*TOP BORDER*/
- margin: 0px 0px 0px -3px;
- z-index: 1050;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- /*DON'T TOUCH*/
- .nav_main {
- text-align: center;
- }
- /*DON'T TOUCH*/
- .nav_main_scroll {
- text-align: center;
- }
- /*DON'T TOUCH*/
- .nav_main li {
- display: inline-table;
- }
- /*DON'T TOUCH*/
- .nav_main_scroll li {
- display: inline-table;
- }
- /*NAV BAR TEXT*/
- .nav_main li a {
- line-height: 50px;
- font-family: 'Open Sans Condensed'; /*FONT STYLE*/
- text-decoration: none;
- font-weight: bold;
- color: white; /*FONT COLOR*/
- font-size: 15px;
- padding: 9px 20px 9px 20px;
- text-transform: uppercase;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- /*NAV BAR SCROLLED TEXT*/
- .nav_main_scroll li a {
- line-height: 30px;
- font-family: 'Open Sans Condensed'; /*FONT STYLE*/
- text-decoration: none;
- font-weight: bold;
- color: white; /*FONT COLOR*/
- font-size: 22px;
- padding: 0px 20px 0px 20px;
- text-transform: uppercase;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- /*NAV BAR TEXT ON HOVER*/
- .nav_main li a:hover {
- box-shadow: inset 0px -75px 2px orange;
- color: white; /*FONT COLOR ON HOVER*/
- border-bottom: 5px solid white;
- }
- /*NAV BAR SCROLLED ON HOVER*/
- .nav_main_scroll li a:hover {
- box-shadow: inset 0px -40px 2px orange;
- color: white; /*FONT COLOR ON HOVER*/
- border-bottom: 5px solid white;
- }
- /*ADMIN BUTTON STYLE*/
- .adminbutton {
- display: none;
- position: absolute;
- z-index: 1052;
- top: 0px;
- left: 0px;
- color: #000000;
- font-family: 'Open Sans Condensed';
- font-size: 16px;
- background: #ccc;
- padding: 3px 7px 3px 7px;
- border-right: 2px solid orange;
- border-bottom: 2px solid orange;
- border-bottom-right-radius: 16px;
- }
- /*ADMIN BUTTON STYLE ON HOVER*/
- .adminbutton:hover {
- color: white;
- }
- /*ENJIN TOP BAR MODIFICATIONS*/
- #enjin-bar #enjin-bar-likes .gplus-like-site, #enjin-bar #enjin-bar-likes .twitter-like-site {
- display: none;
- }
- #enjin-bar .right {
- display: none;
- }
- #enjin-bar #enjin-bar-likes .fb-like-site {
- display: none;
- }
- #enjin-bar a {
- display: none;
- }
- /*ENJIN LIKE BUTTON*/
- #enjin-bar #enjin-like-site {
- display: inline-block;
- zoom: 1;
- margin-left: 33px;
- font-size: 24px;
- position: fixed;
- top: 3px;
- z-index: 2000;
- }
- #enjin-bar #enjin-like-site .likes {
- position: relative;
- top: -1px;
- }
- /*USER_BODY STYLE*/
- .user_body {
- display: none;
- background: #3A79FF;
- height: 50px;
- width: 150px;
- position: fixed;
- right: 0px;
- top: 3px;
- z-index: 1200;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- .user_body_scroll {
- display: none;
- background: #3A79FF;
- height: 30px;
- width: 100px;
- position: fixed;
- right: 0px;
- top: 3px;
- z-index: 1200;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- .user_body .user_welcome{
- right: 36px;
- top: 3px;
- position: fixed;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- .user_body_scroll .user_welcome{
- right: 6px;
- top: 3px;
- position: fixed;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- .user_body .user_welcome a{
- text-decoration: none;
- }
- .user_body_scroll .user_welcome a{
- text-decoration: none;
- }
- .user_body .user_username{
- color: white;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- .user_body_scroll .user_username{
- color: white;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- .user_body .user_username:hover{
- color: black;
- }
- .user_body_scroll .user_username:hover{
- color: black;
- }
- .user_body .fa-envelope-o{
- right: 5px;
- top: 29px;
- font-size: 23px;
- position: fixed;
- color: white;
- }
- .user_body_scroll .fa-envelope-o{
- display: none
- }
- .user_body .fa-star {
- right: 6px;
- top: 6px;
- font-size: 23px;
- position: fixed;
- color: white;
- }
- .user_body_scroll .fa-star {
- display: none
- }
- .user_body .user_notifications {
- right: 8px;
- top: 10px;
- font-size: 8px;
- position: fixed;
- color: black;
- background: orange;
- border-radius: 35px;
- padding: 0px 1px 0px 1px;
- }
- .user_body_scroll .user_notifications {
- display: none;
- }
- .user_body .user_messages{
- right: 7px;
- top: 30px;
- font-size: 8px;
- position: fixed;
- color: black;
- background: orange;
- border-radius: 35px;
- padding: 0px 1px 0px 1px;
- }
- .user_body_scroll .user_messages{
- display: none;
- }
- .user_body .user_logo img {
- width: 50px;
- height: 50px;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- .user_body_scroll .user_logo img {
- width: 30px;
- height: 30px;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- /*NAV LOGO*/
- .nav_logo{
- position: absolute;
- display: inline-table;
- width: 50px;
- height: 50px;
- margin: 0px 0px 0px -50px;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- .nav_logo_scroll {
- position: absolute;
- display: inline-table;
- width: 30px;
- height: 30px;
- margin: 0px 0px 0px -30px;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- /*DROPDOWN*/
- .nav_main ul li:hover > ul{
- display: block;
- float: left;
- }
- .nav_main_scroll ul li:hover > ul{
- display: block;
- float: left;
- }
- .nav_main ul ul {
- width: 150px;
- display: none;
- background: #006EFF;
- border: none;
- padding: 0;
- position: absolute;
- top: 100%;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- .nav_main_scroll ul ul {
- width: 150px;
- display: none;
- background: #006EFF;
- border: none;
- padding: 0;
- position: absolute;
- top: 100%;
- -webkit-transition: linear 0.5s;
- transition: linear 0.5s;
- }
- .nav_main ul ul li {
- border-right: 2px solid orange;
- border-left: 2px solid orange;
- display: block;
- float: none;
- position: relative;
- }
- .nav_main_scroll ul ul li {
- border-right: 2px solid orange;
- border-left: 2px solid orange;
- display: block;
- float: none;
- position: relative;
- }
- .nav_main ul ul li a {
- color: black;
- }
- .nav_main_scroll ul ul li a {
- color: black;
- }
- .nav_main ul ul li a:hover {
- color: white;
- box-shadow: none;
- border: none;
- }
- .nav_main_scroll ul ul li a:hover {
- color: white;
- box-shadow: none;
- border: none;
- }
- /*DON'T TOUCH*/
- .noborder:hover{
- border-bottom: none !important;
- }
- </style>
- <!--NAVBAR-->
- <div id="nav_1" class=nav_style>
- <div id="nav_2" class="nav_main">
- <ul>
- <img id=nav_3 class="nav_logo" src="http://i.imgur.com/us40QY3.png">
- <li><a href="http://globigaming.com/news">NEWS</a></li>
- <li><a href="http://globigaming.com/forum">FORUMS</a></li>
- <li><a href="http://globigaming.com/item">DONATIONS</a></li>
- <li><a href="http://globigaming.com/server">SERVERS</a></li>
- </ul>
- </div>
- <a href="/admin" class=adminbutton>Admin</a>
- <div id=nav_4 class=user_body>
- <a href="http://globigaming.com/profile"><div class=user_logo></div></a>
- <div class=user_welcome>Welcome,<br/><a href="http://globigaming.com/profile"><div class=user_username></div></a></div>
- <a href="http://globigaming.com/dashboard/messages"><i class="fa fa-envelope-o"><div class=user_messages></div></i></a>
- <a href="http://globigaming.com/dashboard"><i class="fa fa-star"><div class=user_notifications></div></i></a>
- </div>
- </div>
- <script>
- $(window).load(function() {
- //Info
- var username= $("#enjin-bar span.element_username").text();
- var logo = $("#enjin-bar .userbox .avatar img").clone();
- var messages= $("#messages-notification-tip .inner").text();
- var notifications= $("#general-notification-tip .inner").text();
- var admin = $('#enjin-bar .left a[href$=\"/admin\"]').text();
- //if admin show admin button
- if (admin == "") {
- $(".adminbutton").noop(0)
- }
- else {
- $(".adminbutton").show(0)
- }
- //Hide user_body if not logged in
- if (username == "") {
- $(".user_body").noop();
- }
- else {
- $(".user_body").show(0);
- $(".user_body_scroll").show(0);
- }
- //Username, logo, messages, notifications
- $(".user_logo").html(logo);
- $(".user_username").html(username);
- if (notifications == "") {$(".user_notifications").html("0");} else {$(".user_notifications").html(notifications);}
- if (messages == "") {$(".user_messages").html("0");} else {$(".user_messages").html(messages);}
- });
- //scroll functions
- $(window).scroll(function() {
- var height = 1;
- if ($(window).scrollTop() >= height) {
- $("#nav_1").addClass("nav_style_scroll");
- $("#nav_1").removeClass("nav_style");
- $("#nav_2").addClass("nav_main_scroll");
- $("#nav_2").removeClass("nav_main");
- $("#nav_3").addClass("nav_logo_scroll");
- $("#nav_3").removeClass("nav_logo");
- $("#nav_4").addClass("user_body_scroll");
- $("#nav_4").removeClass("user_body");
- }
- else {
- $("#nav_1").addClass("nav_style");
- $("#nav_1").removeClass("nav_style_scroll");
- $("#nav_2").addClass("nav_main");
- $("#nav_2").removeClass("nav_main_scroll");
- $("#nav_3").addClass("nav_logo");
- $("#nav_3").removeClass("nav_logo_scroll");
- $("#nav_4").addClass("user_body");
- $("#nav_4").removeClass("user_body_scroll");
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement