mirror of
https://github.com/TotalFreedomMC/Website.git
synced 2024-12-22 16:25:12 +00:00
Updates
This commit is contained in:
parent
361fa19ce0
commit
ad8d609886
4 changed files with 323 additions and 298 deletions
568
css/main.css
568
css/main.css
|
@ -1,276 +1,294 @@
|
|||
.brand-logo,
|
||||
body {
|
||||
font-family: Catamaran, sans-serif
|
||||
}
|
||||
#rules-title,
|
||||
.button {
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-moz-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
z-index: 100
|
||||
}
|
||||
.admins ul,
|
||||
.cover-1,
|
||||
.cover-2,
|
||||
.cover-3 .section-title,
|
||||
.rank {
|
||||
text-align: center
|
||||
}
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0
|
||||
}
|
||||
body {
|
||||
color: #fff;
|
||||
background: url(../images/cover-1.png) center no-repeat fixed #222;
|
||||
background-size: cover
|
||||
}
|
||||
.brand-logo {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px
|
||||
}
|
||||
.button-collapse {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 10px
|
||||
}
|
||||
.cover-1 {
|
||||
font-size: 1.5em;
|
||||
color: rgba(255, 255, 255, .4);
|
||||
height: 100vh
|
||||
}
|
||||
.cover-1 a,
|
||||
.cover-1 h3 {
|
||||
margin-top: 23%
|
||||
}
|
||||
.button {
|
||||
padding: 15px;
|
||||
background: rgba(255, 255, 255, .1);
|
||||
border-radius: 65px;
|
||||
color: #c8c8c8;
|
||||
transition: all .2s ease-in-out
|
||||
}
|
||||
.button:hover {
|
||||
background: rgba(200, 200, 200, .2)
|
||||
}
|
||||
.cover-2 {
|
||||
background: url(../images/cover-2.png) center fixed;
|
||||
background-size: cover;
|
||||
height: auto;
|
||||
padding-bottom: 40px
|
||||
}
|
||||
.rule {
|
||||
z-index: 100;
|
||||
display: none;
|
||||
padding: 30px
|
||||
}
|
||||
.rule ul {
|
||||
display: none;
|
||||
}
|
||||
#rules-title,
|
||||
.admins>ul>a {
|
||||
padding: 10px;
|
||||
display: inline-block
|
||||
}
|
||||
#rules-title {
|
||||
font-size: 2.2em;
|
||||
background: rgba(230, 230, 230, .1);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-user-select: none;
|
||||
transition: all .2s ease-in-out
|
||||
}
|
||||
.admins>ul>a,
|
||||
i.rules-icon {
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-moz-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out
|
||||
}
|
||||
#rules-title:hover {
|
||||
background: rgba(210, 210, 210, .2)
|
||||
}
|
||||
i.rules-icon {
|
||||
position: relative;
|
||||
float: right;
|
||||
color: rgba(150, 150, 150, .3);
|
||||
transition: all .2s ease-in-out
|
||||
}
|
||||
i.rules-icon:hover {
|
||||
color: rgba(150, 150, 150, 1)
|
||||
}
|
||||
.cover-2 h2,
|
||||
.cover-2 p {
|
||||
width: 75%;
|
||||
margin: 0 auto
|
||||
}
|
||||
.cover-2 p {
|
||||
font-size: 1.2em;
|
||||
height: auto
|
||||
}
|
||||
.section-title {
|
||||
font-size: 4em;
|
||||
color: rgba(255, 255, 255, .9);
|
||||
z-index: 100
|
||||
}
|
||||
.cover-3 {
|
||||
background: url(../images/cover-3.png) no-repeat fixed;
|
||||
background-size: cover
|
||||
}
|
||||
.admins>ul>a {
|
||||
margin: 5px;
|
||||
background: rgba(0, 0, 0, .3);
|
||||
transition: all .2s ease-in-out;
|
||||
border-radius: 150px;
|
||||
z-index: 200
|
||||
}
|
||||
.admins>ul>a:hover {
|
||||
background: rgba(100, 100, 100, .3)
|
||||
}
|
||||
.admins ul {
|
||||
z-index: 101
|
||||
}
|
||||
.admins a li {
|
||||
color: rgba(255, 255, 255, .5);
|
||||
font-size: 1.2em;
|
||||
z-index: 102
|
||||
}
|
||||
.rank {
|
||||
font-size: 2em;
|
||||
z-index: 103
|
||||
}
|
||||
.rest>li>a,
|
||||
.useful a {
|
||||
padding: 10px;
|
||||
z-index: 100;
|
||||
text-align: center
|
||||
}
|
||||
.cover-1,
|
||||
.cover-2,
|
||||
.cover-3 {
|
||||
border-bottom: 1px solid rgba(255, 255, 255, .2)
|
||||
}
|
||||
.rest>li>a {
|
||||
font-size: 1.5em;
|
||||
color: rgba(255, 255, 255, .6);
|
||||
border-radius: 50px;
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-moz-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
transition: all .2s ease-in-out
|
||||
}
|
||||
.rest>li>a:hover {
|
||||
background: rgba(255, 255, 255, .2);
|
||||
color: #fff
|
||||
}
|
||||
.rest>li {
|
||||
margin-top: 50px;
|
||||
-webkit-transition: all .5s ease-in-out;
|
||||
-moz-transition: all .5s ease-in-out;
|
||||
-ms-transition: all .5s ease-in-out;
|
||||
-o-transition: all .5s ease-in-out;
|
||||
transition: all .5s ease-in-out
|
||||
}
|
||||
.rule {
|
||||
display: none;
|
||||
}
|
||||
.rest>li:hover {
|
||||
transform: translateX(5px)
|
||||
}
|
||||
.useful a {
|
||||
display: inline-block;
|
||||
font-size: 1.2em;
|
||||
color: rgba(255, 255, 255, .6);
|
||||
border: 2px solid rgba(255, 255, 255, .6);
|
||||
margin-right: 10px;
|
||||
border-radius: 50px;
|
||||
width: 200px;
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-moz-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
transition: all .2s ease-in-out;
|
||||
margin-bottom: 10px
|
||||
}
|
||||
.useful>a>li>i {
|
||||
font-size: 2em;
|
||||
margin-bottom: 10px
|
||||
}
|
||||
.useful a:hover {
|
||||
background: rgba(255, 255, 255, .2);
|
||||
color: #fff;
|
||||
transform: translateY(-5px)
|
||||
}
|
||||
#note {
|
||||
text-align: center;
|
||||
color: #ccc;
|
||||
border-radius: 150px;
|
||||
padding: 15px;
|
||||
z-index: 1
|
||||
}
|
||||
#note h5 {
|
||||
margin-bottom: -20px
|
||||
}
|
||||
#note a {
|
||||
color: #c8c8c8;
|
||||
font-weight: 700
|
||||
}
|
||||
.nav-wrapper {
|
||||
background: rgba(0, 0, 0, .3)
|
||||
}
|
||||
.cover-2 a {
|
||||
font-size: 1.3em;
|
||||
color: rgba(255, 255, 255, .3)
|
||||
}
|
||||
.head-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
border-radius: 50%
|
||||
}
|
||||
.modal {
|
||||
background: rgba(0, 0, 0, .5);
|
||||
color: #ccc
|
||||
}
|
||||
.modal a {
|
||||
color: #c8c8c8
|
||||
}
|
||||
.modal ul {
|
||||
display: inline-block
|
||||
}
|
||||
.modal h4 {
|
||||
margin-bottom: 38px
|
||||
}
|
||||
.modal>.modal-footer {
|
||||
background: rgba(50, 50, 50, .6)
|
||||
}
|
||||
.waves-effect.waves-brown .waves-ripple {
|
||||
background-color: rgba(230, 230, 230, .3)
|
||||
}
|
||||
@media only screen and (max-width: 768px) {
|
||||
.cover-2 h2,
|
||||
.cover-2 p {
|
||||
width: 100%
|
||||
}
|
||||
.online-part {
|
||||
padding: 25% .7%
|
||||
}
|
||||
.rule {
|
||||
padding: 15px
|
||||
}
|
||||
.admins>ul>a {
|
||||
display: block;
|
||||
border-radius: 0
|
||||
}
|
||||
.head-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 0;
|
||||
float: left;
|
||||
border-radius: 50%
|
||||
}
|
||||
.brand-logo,
|
||||
body {
|
||||
font-family: Catamaran, sans-serif
|
||||
}
|
||||
#rules-title,
|
||||
.button {
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-moz-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
z-index: 100
|
||||
}
|
||||
|
||||
.admins ul,
|
||||
.cover-1,
|
||||
.cover-2,
|
||||
.cover-3 .section-title,
|
||||
.rank {
|
||||
text-align: center
|
||||
}
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0
|
||||
}
|
||||
body {
|
||||
color: #fff;
|
||||
background: url(../images/cover-1.png) center no-repeat fixed #222;
|
||||
background-size: cover
|
||||
}
|
||||
.brand-logo {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px
|
||||
}
|
||||
.button-collapse {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 10px
|
||||
}
|
||||
.cover-1 {
|
||||
font-size: 1.5em;
|
||||
color: rgba(255, 255, 255, .4);
|
||||
height: 100vh
|
||||
}
|
||||
.cover-1 a,
|
||||
.cover-1 h3 {
|
||||
margin-top: 23%
|
||||
}
|
||||
.button {
|
||||
padding: 5px 55px;
|
||||
background: rgba(255, 255, 255, .1);
|
||||
border-radius: 65px;
|
||||
color: #c8c8c8;
|
||||
transition: all .2s ease-in-out
|
||||
}
|
||||
.button:hover {
|
||||
background: rgba(200, 200, 200, .2)
|
||||
}
|
||||
.cover-2 {
|
||||
background: url(../images/cover-2.png) center fixed;
|
||||
background-size: cover;
|
||||
height: auto;
|
||||
padding-bottom: 40px
|
||||
}
|
||||
.rule {
|
||||
z-index: 100;
|
||||
display: none;
|
||||
padding: 30px
|
||||
}
|
||||
#rules-title,
|
||||
.admins>ul>a {
|
||||
padding: 10px;
|
||||
display: inline-block
|
||||
}
|
||||
#rules-title {
|
||||
font-size: 2.2em;
|
||||
background: rgba(230, 230, 230, .1);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-user-select: none;
|
||||
transition: all .2s ease-in-out
|
||||
}
|
||||
.admins>ul>a,
|
||||
i.rules-icon {
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-moz-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out
|
||||
}
|
||||
#rules-title:hover {
|
||||
background: rgba(210, 210, 210, .2)
|
||||
}
|
||||
i.rules-icon {
|
||||
position: relative;
|
||||
float: right;
|
||||
color: rgba(150, 150, 150, .3);
|
||||
transition: all .2s ease-in-out
|
||||
}
|
||||
i.rules-icon:hover {
|
||||
color: rgba(150, 150, 150, 1)
|
||||
}
|
||||
.cover-2 h2,
|
||||
.cover-2 p {
|
||||
width: 75%;
|
||||
margin: 0 auto
|
||||
}
|
||||
.cover-2 p {
|
||||
font-size: 1.2em;
|
||||
height: auto
|
||||
}
|
||||
.section-title {
|
||||
font-size: 4em;
|
||||
color: rgba(255, 255, 255, .9);
|
||||
z-index: 100
|
||||
}
|
||||
.cover-3 {
|
||||
background: url(../images/cover-3.png) no-repeat fixed;
|
||||
background-size: cover
|
||||
}
|
||||
.admins>ul>a {
|
||||
margin: 5px;
|
||||
background: rgba(0, 0, 0, .3);
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-moz-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
border-radius: 150px;
|
||||
z-index: 200;
|
||||
}
|
||||
.admins>ul>a:hover {
|
||||
background: rgba(100, 100, 100, .3);
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
.admins ul {
|
||||
z-index: 101
|
||||
}
|
||||
.admins a li {
|
||||
color: rgba(255, 255, 255, .5);
|
||||
font-size: 1.2em;
|
||||
z-index: 102
|
||||
}
|
||||
.rank {
|
||||
font-size: 2em;
|
||||
z-index: 103
|
||||
}
|
||||
.rest>li>a,
|
||||
.useful a {
|
||||
padding: 10px;
|
||||
z-index: 100;
|
||||
text-align: center
|
||||
}
|
||||
.cover-1,
|
||||
.cover-2,
|
||||
.cover-3 {
|
||||
border-bottom: 1px solid rgba(255, 255, 255, .2)
|
||||
}
|
||||
.rest>li>a {
|
||||
font-size: 1.5em;
|
||||
color: rgba(255, 255, 255, .6);
|
||||
border-radius: 50px;
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-moz-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
transition: all .2s ease-in-out
|
||||
}
|
||||
.rest>li>a:hover {
|
||||
background: rgba(255, 255, 255, .2);
|
||||
color: #fff
|
||||
}
|
||||
.rest>li {
|
||||
margin-top: 50px;
|
||||
-webkit-transition: all .5s ease-in-out;
|
||||
-moz-transition: all .5s ease-in-out;
|
||||
-ms-transition: all .5s ease-in-out;
|
||||
-o-transition: all .5s ease-in-out;
|
||||
transition: all .5s ease-in-out
|
||||
}
|
||||
.rest>li:hover {
|
||||
transform: translateX(5px)
|
||||
}
|
||||
.useful a {
|
||||
display: inline-block;
|
||||
font-size: 1.2em;
|
||||
color: rgba(255, 255, 255, .6);
|
||||
border: 2px solid rgba(255, 255, 255, .6);
|
||||
margin-right: 10px;
|
||||
border-radius: 50px;
|
||||
width: 200px;
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-moz-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
transition: all .2s ease-in-out;
|
||||
margin-bottom: 10px
|
||||
}
|
||||
.useful>a>li>i {
|
||||
font-size: 2em;
|
||||
margin-bottom: 10px
|
||||
}
|
||||
.useful a:hover {
|
||||
background: rgba(255, 255, 255, .2);
|
||||
color: #fff;
|
||||
transform: translateY(-5px)
|
||||
}
|
||||
#note {
|
||||
text-align: center;
|
||||
color: #ccc;
|
||||
border-radius: 150px;
|
||||
padding: 15px;
|
||||
z-index: 1
|
||||
}
|
||||
#note h5 {
|
||||
margin-bottom: -20px
|
||||
}
|
||||
#note a {
|
||||
color: #c8c8c8;
|
||||
font-weight: 700
|
||||
}
|
||||
.nav-wrapper {
|
||||
background: rgba(0, 0, 0, .3)
|
||||
}
|
||||
.cover-2 a {
|
||||
font-size: 1.3em;
|
||||
color: rgba(255, 255, 255, .3)
|
||||
}
|
||||
.head-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
border-radius: 50%
|
||||
}
|
||||
.modal {
|
||||
background: rgba(0, 0, 0, .5);
|
||||
color: #ccc
|
||||
}
|
||||
.modal a {
|
||||
color: #c8c8c8
|
||||
}
|
||||
.modal ul {
|
||||
display: inline-block;
|
||||
}
|
||||
.modal li {
|
||||
display: inline-block;
|
||||
/* word-wrap: break-word;*/
|
||||
padding:10px;
|
||||
margin:4px;
|
||||
background: rgba(150, 150, 150, .3);
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-moz-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
-o-transition: all .2s ease-in-out;
|
||||
border-radius: 150px;
|
||||
}
|
||||
.modal li:hover {
|
||||
background: rgba(200, 200, 200, .3);
|
||||
}
|
||||
.modal h4 {
|
||||
margin-bottom: 38px
|
||||
}
|
||||
.modal>.modal-footer {
|
||||
background: rgba(50, 50, 50, .6)
|
||||
}
|
||||
.waves-effect.waves-brown .waves-ripple {
|
||||
background-color: rgba(230, 230, 230, .3)
|
||||
}
|
||||
@media only screen and (max-width: 768px) {
|
||||
.cover-2 h2,
|
||||
.cover-2 p {
|
||||
width: 100%
|
||||
}
|
||||
.online-part {
|
||||
padding: 25% .7%
|
||||
}
|
||||
.rule {
|
||||
padding: 15px
|
||||
}
|
||||
.admins>ul>a {
|
||||
display: block;
|
||||
border-radius: 0
|
||||
}
|
||||
.head-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 0;
|
||||
float: left;
|
||||
border-radius: 50%
|
||||
}
|
||||
.modal li {
|
||||
display: block;
|
||||
width:95%;
|
||||
}
|
||||
}
|
18
index.html
18
index.html
|
@ -15,7 +15,7 @@
|
|||
<link async rel="stylesheet" href="css/global.css">
|
||||
<link async rel=”icon” href=”favicon.ico” type=”image/x-icon”>
|
||||
<link async rel=”shortcut icon” href=”favicon.ico” type=”image/x-icon”>
|
||||
<script>// All Json content is loaded respectively into #(item) var jsonUrl="http://madgeekonline.com/tfinfo/"; var jsonContent=[ "players"]; $(document).ready(function(){loadJson(jsonUrl, jsonContent);}); </script> <script>! function(a, b, c, d, e, f, g){a.GoogleAnalyticsObject=e, a[e]=a[e] || function(){(a[e].q=a[e].q || []).push(arguments)}, a[e].l=1 * new Date, f=b.createElement(c), g=b.getElementsByTagName(c)[0], f.async=1, f.src=d, g.parentNode.insertBefore(f, g)}(window, document, "script", "https://www.google-analytics.com/analytics.js", "ga"), ga("create", "UA-74643356-2", "auto"), ga("send", "pageview"); </script>
|
||||
<script>! function(a, b, c, d, e, f, g){a.GoogleAnalyticsObject=e, a[e]=a[e] || function(){(a[e].q=a[e].q || []).push(arguments)}, a[e].l=1 * new Date, f=b.createElement(c), g=b.getElementsByTagName(c)[0], f.async=1, f.src=d, g.parentNode.insertBefore(f, g)}(window, document, "script", "https://www.google-analytics.com/analytics.js", "ga"), ga("create", "UA-74643356-2", "auto"), ga("send", "pageview"); </script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar-fixed">
|
||||
|
@ -44,6 +44,7 @@
|
|||
<h3 id="server-status"> <span id="online"></span></h3>
|
||||
<a href="#onlineplayers" class="button modal-trigger" data-target="onlineplayers">Online Players</a>
|
||||
</div>
|
||||
|
||||
<div id="onlineplayers" class="modal modal-fixed-footer">
|
||||
<div class="modal-content">
|
||||
<h4 id="players-online">
|
||||
|
@ -91,6 +92,7 @@
|
|||
<h2 id="rules-title" class="eight">Gamemodes <i class="fa fa-chevron-right rules-icon hide-on-med-and-down"></i></h2>
|
||||
<p class="rule h">You are free to use creative or survival mode on the server. For creative, type /creative. For survival, type /survival. </p>
|
||||
</div>
|
||||
|
||||
<div class="rules-section">
|
||||
<h2 id="rules-title" class="nine">TotalFreedom IPs <i class="fa fa-chevron-right rules-icon hide-on-med-and-down"></i></h2>
|
||||
<div class="rule i"><p><u>IPs you may use to connect to TotalFreedom.</u></p>
|
||||
|
@ -104,7 +106,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section cover-3" id="staff">
|
||||
<br/>
|
||||
<h1 class="section-title">Current Staff</h1>
|
||||
|
@ -200,7 +201,7 @@
|
|||
<div class="footer-copyright">
|
||||
<div class="container">
|
||||
<hr>
|
||||
TotalFreedom © 2012 - <span id="curYear"></span>. <a class="grey-text text-lighten-4 right" href="https://twitter.com/maloukos1">Made by aggelosQQ</a>
|
||||
TotalFreedom © 2010 - <span id="curYear"></span>. <a class="grey-text text-lighten-4 right" href="https://twitter.com/maloukos1">Made by aggelosQQ</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -217,6 +218,13 @@
|
|||
<script src="js/moment.js"></script>
|
||||
<script src="js/jquery.cookies.js"></script>
|
||||
<script src="js/main.js"></script>
|
||||
<script src="js/functions.js"></script>
|
||||
<script src="js/functions.js"></script>
|
||||
<script>
|
||||
// All Json content is loaded respectively into #(item)
|
||||
var jsonUrl="http://madgeekonline.com/tfinfo/";
|
||||
var jsonContent=[ "players"]; $(document).ready(function(){
|
||||
loadJson(jsonUrl, jsonContent);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
|
@ -1,18 +1,18 @@
|
|||
/**
|
||||
* Copyright (c) 2005 - 2010, James Auldridge
|
||||
* All rights reserved.
|
||||
*
|
||||
* Licensed under the BSD, MIT, and GPL (your choice!) Licenses:
|
||||
* http://code.google.com/p/cookies/wiki/License
|
||||
*
|
||||
*/
|
||||
var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};jaaulde.utils.cookies=(function(){var resolveOptions,assembleOptionsString,parseCookies,constructor,defaultOptions={expiresAt:null,path:'/',domain:null,secure:false};resolveOptions=function(options){var returnValue,expireDate;if(typeof options!=='object'||options===null){returnValue=defaultOptions;}else
|
||||
{returnValue={expiresAt:defaultOptions.expiresAt,path:defaultOptions.path,domain:defaultOptions.domain,secure:defaultOptions.secure};if(typeof options.expiresAt==='object'&&options.expiresAt instanceof Date){returnValue.expiresAt=options.expiresAt;}else if(typeof options.hoursToLive==='number'&&options.hoursToLive!==0){expireDate=new Date();expireDate.setTime(expireDate.getTime()+(options.hoursToLive*60*60*1000));returnValue.expiresAt=expireDate;}if(typeof options.path==='string'&&options.path!==''){returnValue.path=options.path;}if(typeof options.domain==='string'&&options.domain!==''){returnValue.domain=options.domain;}if(options.secure===true){returnValue.secure=options.secure;}}return returnValue;};assembleOptionsString=function(options){options=resolveOptions(options);return((typeof options.expiresAt==='object'&&options.expiresAt instanceof Date?'; expires='+options.expiresAt.toGMTString():'')+'; path='+options.path+(typeof options.domain==='string'?'; domain='+options.domain:'')+(options.secure===true?'; secure':''));};parseCookies=function(){var cookies={},i,pair,name,value,separated=document.cookie.split(';'),unparsedValue;for(i=0;i<separated.length;i=i+1){pair=separated[i].split('=');name=pair[0].replace(/^\s*/,'').replace(/\s*$/,'');try
|
||||
{value=decodeURIComponent(pair[1]);}catch(e1){value=pair[1];}if(typeof JSON==='object'&&JSON!==null&&typeof JSON.parse==='function'){try
|
||||
{unparsedValue=value;value=JSON.parse(value);}catch(e2){value=unparsedValue;}}cookies[name]=value;}return cookies;};constructor=function(){};constructor.prototype.get=function(cookieName){var returnValue,item,cookies=parseCookies();if(typeof cookieName==='string'){returnValue=(typeof cookies[cookieName]!=='undefined')?cookies[cookieName]:null;}else if(typeof cookieName==='object'&&cookieName!==null){returnValue={};for(item in cookieName){if(typeof cookies[cookieName[item]]!=='undefined'){returnValue[cookieName[item]]=cookies[cookieName[item]];}else
|
||||
{returnValue[cookieName[item]]=null;}}}else
|
||||
{returnValue=cookies;}return returnValue;};constructor.prototype.filter=function(cookieNameRegExp){var cookieName,returnValue={},cookies=parseCookies();if(typeof cookieNameRegExp==='string'){cookieNameRegExp=new RegExp(cookieNameRegExp);}for(cookieName in cookies){if(cookieName.match(cookieNameRegExp)){returnValue[cookieName]=cookies[cookieName];}}return returnValue;};constructor.prototype.set=function(cookieName,value,options){if(typeof options!=='object'||options===null){options={};}if(typeof value==='undefined'||value===null){value='';options.hoursToLive=-8760;}else if(typeof value!=='string'){if(typeof JSON==='object'&&JSON!==null&&typeof JSON.stringify==='function'){value=JSON.stringify(value);}else
|
||||
{throw new Error('cookies.set() received non-string value and could not serialize.');}}var optionsString=assembleOptionsString(options);document.cookie=cookieName+'='+encodeURIComponent(value)+optionsString;};constructor.prototype.del=function(cookieName,options){var allCookies={},name;if(typeof options!=='object'||options===null){options={};}if(typeof cookieName==='boolean'&&cookieName===true){allCookies=this.get();}else if(typeof cookieName==='string'){allCookies[cookieName]=true;}for(name in allCookies){if(typeof name==='string'&&name!==''){this.set(name,null,options);}}};constructor.prototype.test=function(){var returnValue=false,testName='cT',testValue='data';this.set(testName,testValue);if(this.get(testName)===testValue){this.del(testName);returnValue=true;}return returnValue;};constructor.prototype.setOptions=function(options){if(typeof options!=='object'){options=null;}defaultOptions=resolveOptions(options);};return new constructor();})();(function(){if(window.jQuery){(function($){$.cookies=jaaulde.utils.cookies;var extensions={cookify:function(options){return this.each(function(){var i,nameAttrs=['name','id'],name,$this=$(this),value;for(i in nameAttrs){if(!isNaN(i)){name=$this.attr(nameAttrs[i]);if(typeof name==='string'&&name!==''){if($this.is(':checkbox, :radio')){if($this.attr('checked')){value=$this.val();}}else if($this.is(':input')){value=$this.val();}else
|
||||
{value=$this.html();}if(typeof value!=='string'||value===''){value=null;}$.cookies.set(name,value,options);break;}}}});},cookieFill:function(){return this.each(function(){var n,getN,nameAttrs=['name','id'],name,$this=$(this),value;getN=function(){n=nameAttrs.pop();return!!n;};while(getN()){name=$this.attr(n);if(typeof name==='string'&&name!==''){value=$.cookies.get(name);if(value!==null){if($this.is(':checkbox, :radio')){if($this.val()===value){$this.attr('checked','checked');}else
|
||||
{$this.removeAttr('checked');}}else if($this.is(':input')){$this.val(value);}else
|
||||
/**
|
||||
* Copyright (c) 2005 - 2010, James Auldridge
|
||||
* All rights reserved.
|
||||
*
|
||||
* Licensed under the BSD, MIT, and GPL (your choice!) Licenses:
|
||||
* http://code.google.com/p/cookies/wiki/License
|
||||
*
|
||||
*/
|
||||
var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};jaaulde.utils.cookies=(function(){var resolveOptions,assembleOptionsString,parseCookies,constructor,defaultOptions={expiresAt:null,path:'/',domain:null,secure:false};resolveOptions=function(options){var returnValue,expireDate;if(typeof options!=='object'||options===null){returnValue=defaultOptions;}else
|
||||
{returnValue={expiresAt:defaultOptions.expiresAt,path:defaultOptions.path,domain:defaultOptions.domain,secure:defaultOptions.secure};if(typeof options.expiresAt==='object'&&options.expiresAt instanceof Date){returnValue.expiresAt=options.expiresAt;}else if(typeof options.hoursToLive==='number'&&options.hoursToLive!==0){expireDate=new Date();expireDate.setTime(expireDate.getTime()+(options.hoursToLive*60*60*1000));returnValue.expiresAt=expireDate;}if(typeof options.path==='string'&&options.path!==''){returnValue.path=options.path;}if(typeof options.domain==='string'&&options.domain!==''){returnValue.domain=options.domain;}if(options.secure===true){returnValue.secure=options.secure;}}return returnValue;};assembleOptionsString=function(options){options=resolveOptions(options);return((typeof options.expiresAt==='object'&&options.expiresAt instanceof Date?'; expires='+options.expiresAt.toGMTString():'')+'; path='+options.path+(typeof options.domain==='string'?'; domain='+options.domain:'')+(options.secure===true?'; secure':''));};parseCookies=function(){var cookies={},i,pair,name,value,separated=document.cookie.split(';'),unparsedValue;for(i=0;i<separated.length;i=i+1){pair=separated[i].split('=');name=pair[0].replace(/^\s*/,'').replace(/\s*$/,'');try
|
||||
{value=decodeURIComponent(pair[1]);}catch(e1){value=pair[1];}if(typeof JSON==='object'&&JSON!==null&&typeof JSON.parse==='function'){try
|
||||
{unparsedValue=value;value=JSON.parse(value);}catch(e2){value=unparsedValue;}}cookies[name]=value;}return cookies;};constructor=function(){};constructor.prototype.get=function(cookieName){var returnValue,item,cookies=parseCookies();if(typeof cookieName==='string'){returnValue=(typeof cookies[cookieName]!=='undefined')?cookies[cookieName]:null;}else if(typeof cookieName==='object'&&cookieName!==null){returnValue={};for(item in cookieName){if(typeof cookies[cookieName[item]]!=='undefined'){returnValue[cookieName[item]]=cookies[cookieName[item]];}else
|
||||
{returnValue[cookieName[item]]=null;}}}else
|
||||
{returnValue=cookies;}return returnValue;};constructor.prototype.filter=function(cookieNameRegExp){var cookieName,returnValue={},cookies=parseCookies();if(typeof cookieNameRegExp==='string'){cookieNameRegExp=new RegExp(cookieNameRegExp);}for(cookieName in cookies){if(cookieName.match(cookieNameRegExp)){returnValue[cookieName]=cookies[cookieName];}}return returnValue;};constructor.prototype.set=function(cookieName,value,options){if(typeof options!=='object'||options===null){options={};}if(typeof value==='undefined'||value===null){value='';options.hoursToLive=-8760;}else if(typeof value!=='string'){if(typeof JSON==='object'&&JSON!==null&&typeof JSON.stringify==='function'){value=JSON.stringify(value);}else
|
||||
{throw new Error('cookies.set() received non-string value and could not serialize.');}}var optionsString=assembleOptionsString(options);document.cookie=cookieName+'='+encodeURIComponent(value)+optionsString;};constructor.prototype.del=function(cookieName,options){var allCookies={},name;if(typeof options!=='object'||options===null){options={};}if(typeof cookieName==='boolean'&&cookieName===true){allCookies=this.get();}else if(typeof cookieName==='string'){allCookies[cookieName]=true;}for(name in allCookies){if(typeof name==='string'&&name!==''){this.set(name,null,options);}}};constructor.prototype.test=function(){var returnValue=false,testName='cT',testValue='data';this.set(testName,testValue);if(this.get(testName)===testValue){this.del(testName);returnValue=true;}return returnValue;};constructor.prototype.setOptions=function(options){if(typeof options!=='object'){options=null;}defaultOptions=resolveOptions(options);};return new constructor();})();(function(){if(window.jQuery){(function($){$.cookies=jaaulde.utils.cookies;var extensions={cookify:function(options){return this.each(function(){var i,nameAttrs=['name','id'],name,$this=$(this),value;for(i in nameAttrs){if(!isNaN(i)){name=$this.attr(nameAttrs[i]);if(typeof name==='string'&&name!==''){if($this.is(':checkbox, :radio')){if($this.attr('checked')){value=$this.val();}}else if($this.is(':input')){value=$this.val();}else
|
||||
{value=$this.html();}if(typeof value!=='string'||value===''){value=null;}$.cookies.set(name,value,options);break;}}}});},cookieFill:function(){return this.each(function(){var n,getN,nameAttrs=['name','id'],name,$this=$(this),value;getN=function(){n=nameAttrs.pop();return!!n;};while(getN()){name=$this.attr(n);if(typeof name==='string'&&name!==''){value=$.cookies.get(name);if(value!==null){if($this.is(':checkbox, :radio')){if($this.val()===value){$this.attr('checked','checked');}else
|
||||
{$this.removeAttr('checked');}}else if($this.is(':input')){$this.val(value);}else
|
||||
{$this.html(value);}}break;}}});},cookieBind:function(options){return this.each(function(){var $this=$(this);$this.cookieFill().change(function(){$this.cookify(options);});});}};$.each(extensions,function(i){$.fn[i]=this;});})(window.jQuery);}})();
|
|
@ -102,7 +102,6 @@ $(document).ready(function(){
|
|||
|
||||
$(".nine").click(function(){
|
||||
$(".i").fadeToggle(300);
|
||||
$(".i ul").fadeToggle(300);
|
||||
$(".nine i").toggleClass("fa-chevron-right");
|
||||
$(".nine i").toggleClass("fa-chevron-down");
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue