Code Beautified/Minified/Rearranged

For (higher) performance purposes
This commit is contained in:
aggelosQQ 2017-07-12 17:47:09 +03:00
parent 6ee619f471
commit ddb547a415
10 changed files with 571 additions and 1528 deletions

File diff suppressed because one or more lines are too long

View file

@ -15,99 +15,5 @@
limitations under the License.
*/
/*
Copyright 2017 Aggelos Sarris and contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#note a,
a {
color: #c8c8c8; }
#note,
.admins,
.page-title,
.rank {
text-align: center; }
.brand-logo,
h2 {
font-family: 'Raleway', sans-serif; }
* {
margin: 0;
padding: 0; }
body {
margin-bottom: 50px;
background: url(../images/staff-bg.png) center fixed #222;
color: #ccc; }
.admins {
width: 85%;
margin: 0 auto;
background: rgba(100, 100, 100, 0.1);
padding: 15px;
border-radius: 10px; }
.admins li {
display: inline-block;
font-family: 'Catamaran';
font-weight: 400;
padding: 10px;
background: rgba(100, 100, 100, 0.2);
margin: 5px;
border-radius: 5px;
-webkit-transition: all 0.13s ease-in-out;
-moz-transition: all 0.13s ease-in-out;
-ms-transition: all 0.13s ease-in-out;
-o-transition: all 0.13s ease-in-out;
transition: all 0.13s ease-in-out; }
.admins li:hover {
background: rgba(100, 100, 100, 0.4); }
h2 {
font-size: 1.5em; }
#note h5 {
margin-bottom: -15px; }
#note a {
font-weight: 700; }
.page-title {
font-size: 3.8em;
font-weight: 300; }
.brand-logo {
font-size: 2em;
font-weight: 200;
margin-top: 0px; }
.typed-cursor {
display: none; }
@media only screen and (max-width: 991px) {
.admins {
width: 95%; }
.admins li {
display: block;
border-radius: 0;
font-size: 1.2em; }
nav .brand-logo {
font-size: 2.1em;
margin-top: 13.5px; }
nav .nav-wrapper li > a {
font-weight: 500;
font-size: 1em; } }
#note a,a{color:#c8c8c8}#note,.admins,.page-title,.rank{text-align:center}.brand-logo,h2{font-family:'Raleway', sans-serif}*{margin:0;padding:0}body{margin-bottom:50px;background:url(../images/staff-bg.png) center fixed #222;color:#ccc}.admins{width:85%;margin:0 auto;background:rgba(100, 100, 100, 0.1);padding:15px;border-radius:10px}.admins li{display:inline-block;font-family:'Catamaran';font-weight:400;padding:10px;background:rgba(100, 100, 100, 0.2);margin:5px;border-radius:5px;-webkit-transition:all 0.13s ease-in-out;-moz-transition:all 0.13s ease-in-out;-ms-transition:all 0.13s ease-in-out;-o-transition:all 0.13s ease-in-out;transition:all 0.13s ease-in-out}.admins li:hover{background:rgba(100, 100, 100, 0.4)}h2{font-size:1.5em}#note h5{margin-bottom:-15px}#note a{font-weight:700}.page-title{font-size:3.8em;font-weight:300}.brand-logo{font-size:2em;font-weight:200;margin-top:0px}.typed-cursor{display:none}@media only screen and (max-width:991px){.admins{width:95%}.admins li{display:block;border-radius:0;font-size:1.2em}nav .brand-logo{font-size:2.1em;margin-top:13.5px}nav .nav-wrapper li>a{font-weight:500;font-size:1em}}

View file

@ -2,7 +2,6 @@
<html lang="en">
<head>
<!--
Copyright 2017 Aggelos Sarris and contributors
Licensed under the Apache License, Version 2.0 (the "License");
@ -28,8 +27,8 @@
<link href="https://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600" rel="stylesheet">
<link async rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css">
<link async rel="stylesheet" href="css/component.min.css">
<link async rel="stylesheet" href="css/main.css">
<link async rel="stylesheet" href="css/global.css">
<link async rel="stylesheet" href="css/main.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>! 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>
@ -62,13 +61,12 @@
<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">
</h4>
<ul id="players"></ul><br/>
<ul id="players"></ul>
<br/>
<div class="modal-msg">
<h5>Why don't you visit us yourself?</h5>
<span class="ip">play.totalfreedom.me</span>
@ -101,15 +99,12 @@
<h2 id="rules-title" class="five waves-effect waves-brown">Adhere to Authority <i class="fa fa-chevron-right rules-icon hide-on-med-and-down"></i></h2>
<p class="rule e">Do not override the actions of the server owner (TheMinecraft) or other admins. For example, if an admin de-ops or bans a player for griefing, you may not re-op or pardon them without permission. Super admins will follow the directions of senior admins with respect to any admin matter unless it violates server rules. If it violates the rules, the admin will notify the proper authority.</p>
</div>
<p class="caution" style="margin-bottom: -45px;"><i class="fa fa-exclamation-triangle"></i> TotalFreedom does not accept donations.</p>
<ul class="rest">
<li>
<a href="http://totalfreedom.boards.net/thread/21065/server-conduct-policy-players-admins" class="readmore waves-effect waves-light">Read the Conduct Policy</a>
</li>
</ul>
<h1 class="section-title">Support/Help</h1>
<div class="rules-section">
<h2 id="rules-title" class="six">Saving Builds <i class="fa fa-chevron-right rules-icon hide-on-med-and-down"></i></h2>
@ -123,10 +118,10 @@
<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>
<div class="rule i">
<p><u>IPs you may use to connect to TotalFreedom.</u></p>
<ul>
<li>play.totalfreedom.me (Recommended)</li>
<li>64.34.190.101:28965</li>
@ -256,7 +251,9 @@
<div class="col s12 m12 l4 hide-on-med-and-down">
<!-- <h3 style="text-align: center;" class="discord-widget-title">Join us on Discord</h3> -->
<iframe src="https://discordapp.com/widget?id=142361999538520065&theme=dark" class="discord-widget" width="375" height="450" align="center" allowtransparency="true" frameborder="0"></iframe>
<br><hr><br>
<br>
<hr>
<br>
<p align="center" class="text-align: center;">
<ul class="rest">
<li>
@ -265,10 +262,6 @@
</ul>
</div>
</div>
<footer class="page-footer transparent">
<div class="container">
<div class="footer-copyright">
@ -283,8 +276,6 @@
</div>
</footer>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"></script>
<script src="https://use.fontawesome.com/cb2592f0cc.js"></script>

View file

@ -40,13 +40,6 @@ $(document).ready(function() {
});
// $(document).ready(function() {
// $('.brand-logo').typed({
// strings: [''],
// typeSpeed: -1000
// });
// });
$(document).ready(function(){
$(".one").click(function(){
$(".a").fadeToggle(300);

View file

@ -26,9 +26,6 @@ $(document).ready(function() {
});
});
$(document).ready(function(){
(new Date).getFullYear();
$("#curYear").text((new Date).getFullYear());

View file

@ -1,438 +0,0 @@
// The MIT License (MIT)
// Typed.js | Copyright (c) 2016 Matt Boldt | www.mattboldt.com
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
! function($) {
"use strict";
var Typed = function(el, options) {
// chosen element to manipulate text
this.el = $(el);
// options
this.options = $.extend({}, $.fn.typed.defaults, options);
// attribute to type into
this.isInput = this.el.is('input');
this.attr = this.options.attr;
// show cursor
this.showCursor = this.isInput ? false : this.options.showCursor;
// text content of element
this.elContent = this.attr ? this.el.attr(this.attr) : this.el.text();
// html or plain text
this.contentType = this.options.contentType;
// typing speed
this.typeSpeed = this.options.typeSpeed;
// add a delay before typing starts
this.startDelay = this.options.startDelay;
// backspacing speed
this.backSpeed = this.options.backSpeed;
// amount of time to wait before backspacing
this.backDelay = this.options.backDelay;
// div containing strings
this.stringsElement = this.options.stringsElement;
// input strings of text
this.strings = this.options.strings;
// character number position of current string
this.strPos = 0;
// current array position
this.arrayPos = 0;
// number to stop backspacing on.
// default 0, can change depending on how many chars
// you want to remove at the time
this.stopNum = 0;
// Looping logic
this.loop = this.options.loop;
this.loopCount = this.options.loopCount;
this.curLoop = 0;
// for stopping
this.stop = false;
// custom cursor
this.cursorChar = this.options.cursorChar;
// shuffle the strings
this.shuffle = this.options.shuffle;
// the order of strings
this.sequence = [];
// All systems go!
this.build();
};
Typed.prototype = {
constructor: Typed,
init: function() {
// begin the loop w/ first current string (global self.strings)
// current string will be passed as an argument each time after this
var self = this;
self.timeout = setTimeout(function() {
for (var i=0;i<self.strings.length;++i) self.sequence[i]=i;
// shuffle the array if true
if(self.shuffle) self.sequence = self.shuffleArray(self.sequence);
// Start typing
self.typewrite(self.strings[self.sequence[self.arrayPos]], self.strPos);
}, self.startDelay);
},
build: function() {
var self = this;
// Insert cursor
if (this.showCursor === true) {
this.cursor = $("<span class=\"typed-cursor\">" + this.cursorChar + "</span>");
this.el.after(this.cursor);
}
if (this.stringsElement) {
this.strings = [];
this.stringsElement.hide();
console.log(this.stringsElement.children());
var strings = this.stringsElement.children();
$.each(strings, function(key, value){
self.strings.push($(value).html());
});
}
this.init();
},
// pass current string state to each function, types 1 char per call
typewrite: function(curString, curStrPos) {
// exit when stopped
if (this.stop === true) {
return;
}
// varying values for setTimeout during typing
// can't be global since number changes each time loop is executed
var humanize = Math.round(Math.random() * (100 - 30)) + this.typeSpeed;
var self = this;
// ------------- optional ------------- //
// backpaces a certain string faster
// ------------------------------------ //
// if (self.arrayPos == 1){
// self.backDelay = 50;
// }
// else{ self.backDelay = 500; }
// contain typing function in a timeout humanize'd delay
self.timeout = setTimeout(function() {
// check for an escape character before a pause value
// format: \^\d+ .. eg: ^1000 .. should be able to print the ^ too using ^^
// single ^ are removed from string
var charPause = 0;
var substr = curString.substr(curStrPos);
if (substr.charAt(0) === '^') {
var skip = 1; // skip atleast 1
if (/^\^\d+/.test(substr)) {
substr = /\d+/.exec(substr)[0];
skip += substr.length;
charPause = parseInt(substr);
}
// strip out the escape character and pause value so they're not printed
curString = curString.substring(0, curStrPos) + curString.substring(curStrPos + skip);
}
if (self.contentType === 'html') {
// skip over html tags while typing
var curChar = curString.substr(curStrPos).charAt(0)
if (curChar === '<' || curChar === '&') {
var tag = '';
var endTag = '';
if (curChar === '<') {
endTag = '>'
}
else {
endTag = ';'
}
while (curString.substr(curStrPos + 1).charAt(0) !== endTag) {
tag += curString.substr(curStrPos).charAt(0);
curStrPos++;
if (curStrPos + 1 > curString.length) { break; }
}
curStrPos++;
tag += endTag;
}
}
// timeout for any pause after a character
self.timeout = setTimeout(function() {
if (curStrPos === curString.length) {
// fires callback function
self.options.onStringTyped(self.arrayPos);
// is this the final string
if (self.arrayPos === self.strings.length - 1) {
// animation that occurs on the last typed string
self.options.callback();
self.curLoop++;
// quit if we wont loop back
if (self.loop === false || self.curLoop === self.loopCount)
return;
}
self.timeout = setTimeout(function() {
self.backspace(curString, curStrPos);
}, self.backDelay);
} else {
/* call before functions if applicable */
if (curStrPos === 0) {
self.options.preStringTyped(self.arrayPos);
}
// start typing each new char into existing string
// curString: arg, self.el.html: original text inside element
var nextString = curString.substr(0, curStrPos + 1);
if (self.attr) {
self.el.attr(self.attr, nextString);
} else {
if (self.isInput) {
self.el.val(nextString);
} else if (self.contentType === 'html') {
self.el.html(nextString);
} else {
self.el.text(nextString);
}
}
// add characters one by one
curStrPos++;
// loop the function
self.typewrite(curString, curStrPos);
}
// end of character pause
}, charPause);
// humanized value for typing
}, humanize);
},
backspace: function(curString, curStrPos) {
// exit when stopped
if (this.stop === true) {
return;
}
// varying values for setTimeout during typing
// can't be global since number changes each time loop is executed
var humanize = Math.round(Math.random() * (100 - 30)) + this.backSpeed;
var self = this;
self.timeout = setTimeout(function() {
// ----- this part is optional ----- //
// check string array position
// on the first string, only delete one word
// the stopNum actually represents the amount of chars to
// keep in the current string. In my case it's 14.
// if (self.arrayPos == 1){
// self.stopNum = 14;
// }
//every other time, delete the whole typed string
// else{
// self.stopNum = 0;
// }
if (self.contentType === 'html') {
// skip over html tags while backspacing
if (curString.substr(curStrPos).charAt(0) === '>') {
var tag = '';
while (curString.substr(curStrPos - 1).charAt(0) !== '<') {
tag -= curString.substr(curStrPos).charAt(0);
curStrPos--;
if (curStrPos < 0) { break; }
}
curStrPos--;
tag += '<';
}
}
// ----- continue important stuff ----- //
// replace text with base text + typed characters
var nextString = curString.substr(0, curStrPos);
if (self.attr) {
self.el.attr(self.attr, nextString);
} else {
if (self.isInput) {
self.el.val(nextString);
} else if (self.contentType === 'html') {
self.el.html(nextString);
} else {
self.el.text(nextString);
}
}
// if the number (id of character in current string) is
// less than the stop number, keep going
if (curStrPos > self.stopNum) {
// subtract characters one by one
curStrPos--;
// loop the function
self.backspace(curString, curStrPos);
}
// if the stop number has been reached, increase
// array position to next string
else if (curStrPos <= self.stopNum) {
self.arrayPos++;
if (self.arrayPos === self.strings.length) {
self.arrayPos = 0;
// Shuffle sequence again
if(self.shuffle) self.sequence = self.shuffleArray(self.sequence);
self.init();
} else
self.typewrite(self.strings[self.sequence[self.arrayPos]], curStrPos);
}
// humanized value for typing
}, humanize);
},
/**
* Shuffles the numbers in the given array.
* @param {Array} array
* @returns {Array}
*/
shuffleArray: function(array) {
var tmp, current, top = array.length;
if(top) while(--top) {
current = Math.floor(Math.random() * (top + 1));
tmp = array[current];
array[current] = array[top];
array[top] = tmp;
}
return array;
},
// Start & Stop currently not working
// , stop: function() {
// var self = this;
// self.stop = true;
// clearInterval(self.timeout);
// }
// , start: function() {
// var self = this;
// if(self.stop === false)
// return;
// this.stop = false;
// this.init();
// }
// Reset and rebuild the element
reset: function() {
var self = this;
clearInterval(self.timeout);
var id = this.el.attr('id');
this.el.empty();
if (typeof this.cursor !== 'undefined') {
this.cursor.remove();
}
this.strPos = 0;
this.arrayPos = 0;
this.curLoop = 0;
// Send the callback
this.options.resetCallback();
}
};
$.fn.typed = function(option) {
return this.each(function() {
var $this = $(this),
data = $this.data('typed'),
options = typeof option == 'object' && option;
if (data) { data.reset(); }
$this.data('typed', (data = new Typed(this, options)));
if (typeof option == 'string') data[option]();
});
};
$.fn.typed.defaults = {
strings: ["These are the default values...", "You know what you should do?", "Use your own!", "Have a great day!"],
stringsElement: null,
// typing speed
typeSpeed: 0,
// time before typing starts
startDelay: 0,
// backspacing speed
backSpeed: 0,
// shuffle the strings
shuffle: false,
// time before backspacing
backDelay: 500,
// loop
loop: false,
// false = infinite
loopCount: false,
// show cursor
showCursor: true,
// character for cursor
cursorChar: "|",
// attribute to type (null == text)
attr: null,
// either html or text
contentType: 'html',
// call when done callback function
callback: function() {},
// starting callback function before each string
preStringTyped: function() {},
//callback for every typed string
onStringTyped: function() {},
// callback for reset
resetCallback: function() {}
};
}(window.jQuery);

1
js/typed.min.js vendored
View file

@ -1 +0,0 @@
!function(t){"use strict";var s=function(s,e){this.el=t(s),this.options=t.extend({},t.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=this.isInput?!1:this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};s.prototype={constructor:s,init:function(){var t=this;t.timeout=setTimeout(function(){for(var s=0;s<t.strings.length;++s)t.sequence[s]=s;t.shuffle&&(t.sequence=t.shuffleArray(t.sequence)),t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos)},t.startDelay)},build:function(){var s=this;if(this.showCursor===!0&&(this.cursor=t('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){this.strings=[],this.stringsElement.hide(),console.log(this.stringsElement.children());var e=this.stringsElement.children();t.each(e,function(e,i){s.strings.push(t(i).html())})}this.init()},typewrite:function(t,s){if(this.stop!==!0){var e=Math.round(70*Math.random())+this.typeSpeed,i=this;i.timeout=setTimeout(function(){var e=0,r=t.substr(s);if("^"===r.charAt(0)){var o=1;/^\^\d+/.test(r)&&(r=/\d+/.exec(r)[0],o+=r.length,e=parseInt(r)),t=t.substring(0,s)+t.substring(s+o)}if("html"===i.contentType){var n=t.substr(s).charAt(0);if("<"===n||"&"===n){var a="",h="";for(h="<"===n?">":";";t.substr(s+1).charAt(0)!==h&&(a+=t.substr(s).charAt(0),s++,!(s+1>t.length)););s++,a+=h}}i.timeout=setTimeout(function(){if(s===t.length){if(i.options.onStringTyped(i.arrayPos),i.arrayPos===i.strings.length-1&&(i.options.callback(),i.curLoop++,i.loop===!1||i.curLoop===i.loopCount))return;i.timeout=setTimeout(function(){i.backspace(t,s)},i.backDelay)}else{0===s&&i.options.preStringTyped(i.arrayPos);var e=t.substr(0,s+1);i.attr?i.el.attr(i.attr,e):i.isInput?i.el.val(e):"html"===i.contentType?i.el.html(e):i.el.text(e),s++,i.typewrite(t,s)}},e)},e)}},backspace:function(t,s){if(this.stop!==!0){var e=Math.round(70*Math.random())+this.backSpeed,i=this;i.timeout=setTimeout(function(){if("html"===i.contentType&&">"===t.substr(s).charAt(0)){for(var e="";"<"!==t.substr(s-1).charAt(0)&&(e-=t.substr(s).charAt(0),s--,!(0>s)););s--,e+="<"}var r=t.substr(0,s);i.attr?i.el.attr(i.attr,r):i.isInput?i.el.val(r):"html"===i.contentType?i.el.html(r):i.el.text(r),s>i.stopNum?(s--,i.backspace(t,s)):s<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),i.init()):i.typewrite(i.strings[i.sequence[i.arrayPos]],s))},e)}},shuffleArray:function(t){var s,e,i=t.length;if(i)for(;--i;)e=Math.floor(Math.random()*(i+1)),s=t[e],t[e]=t[i],t[i]=s;return t},reset:function(){var t=this;clearInterval(t.timeout);this.el.attr("id");this.el.empty(),"undefined"!=typeof this.cursor&&this.cursor.remove(),this.strPos=0,this.arrayPos=0,this.curLoop=0,this.options.resetCallback()}},t.fn.typed=function(e){return this.each(function(){var i=t(this),r=i.data("typed"),o="object"==typeof e&&e;r&&r.reset(),i.data("typed",r=new s(this,o)),"string"==typeof e&&r[e]()})},t.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery);

View file

@ -0,0 +1 @@
*{margin:0;padding:0}body{background:url('../images/bg.png') fixed center no-repeat;background-size:cover;color:#fff;margin-bottom:40px}h1,h2,h3,h4,h5,h6,p{text-align:center;font-family:'Baloo Tamma', cursive}.card-action{text-align:center;margin-bottom:30px}button{color:#ccc;background:rgba(30, 30, 30, 0.5);border:none;outline:none;text-decoration:none;padding:10px;border-radius:10px;width:65%;font-size:1.3em;font-weight:900;text-transform:uppercase;font-family:'Baloo Tamma', cursive;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;-o-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}button:focus,button:hover{background:rgba(50, 50, 50, 0.5)}.card{background:rgba(50, 50, 50, 0.3);font-family:'Baloo Tamma', cursive}.page-title{text-align:center}#note{font-size:1.4em;font-size:900;font-family:'Baloo Tamma', cursive;margin-top:5px}.header{padding:100px;background:rgba(200, 200, 200, 0.2);text-align:center;width:100%}hr{border:2px solid rgba(230, 230, 230, 0.1)}.custom-btn{background:rgba(0, 0, 0, 0.6);text-align:center}.custom-btn:focus,.custom-btn:hover{background:rgba(50, 50, 50, 0.6)}.masterbuilders-list li{display:inline-block;background:rgba(100, 100, 100, 0.4);color:#ccc;padding:8px;cursor:pointer;border-radius:10%;font-size:1.1em;margin:5px;font-family:'Baloo Tamma', cursive;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;-o-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.masterbuilders-list li:hover{background:rgba(120, 120, 120, 0.5);color:#fff}.masterbuilders-list li img{width:20px;height:20px;margin-right:5px;float:left}.top{position:fixed;bottom:20px;right:50px;font-size:3em;color:rgba(178, 34, 34, 0.6);padding:10px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;-o-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.top:hover{color:rgba(178, 34, 34, 1)}.brand-logo{font-size:'Raleway', sans-serif;font-size:2em;font-weight:200;margin-top:0px}@media only screen and (max-width:768px){.header{padding:5px}.masterbuilders-list li{display:block;border-radius:0}button{width:95%}nav .brand-logo{margin-top:13.5px;font-size:1.8em}nav .nav-wrapper li>a{font-weight:500;font-size:1em}}

View file

@ -1,9 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!--
Copyright 2017 Aggelos Sarris and contributors
Licensed under the Apache License, Version 2.0 (the "License");
@ -19,7 +17,6 @@
limitations under the License.
-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -31,11 +28,10 @@
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Baloo+Tamma" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600" rel="stylesheet">
<link href="assets/css/builders.css" rel="stylesheet">
<link href="assets/css/builders.dist.css" rel="stylesheet">
<link href="../css/component.min.css" rel="stylesheet">
<link rel="stylesheet" href="../css/global.css">
</head>
<body>
<nav class="transparent z-depth-0" id="menu">
<div class="nav-wrapper z-depth-0">
@ -61,7 +57,8 @@
</li>
</ul>
</div>
</nav><br>
</nav>
<br>
<!-- <h2 class="page-title hide-on-large-only">Master Builders</h2> -->
<div class="container">
<div class="header">
@ -106,13 +103,15 @@
<a href="http://totalfreedom.boards.net/user/19057" target="_blank">
<li><img class="responsive-img head-icon" src="https://minotar.net/avatar/xDark_/80.png">DisignusBlocks</li>
</a>
</ul><br>
</ul>
<br>
<hr>
<br>
<p id="note">These images may, or may not, have been built on Total Freedom but are made by/with at least one masterbuilder
from Total Freedom.</p>
</div><br>
from Total Freedom.
</p>
</div>
<br>
<hr>
<br>
<div class="row">
@ -178,7 +177,8 @@
</div>
<div class="card-content">
<p>Made by miwojedk - this project won the #1 place on PlanetMinecraft Contest (Press "Show More" to
see more information)</p>
see more information)
</p>
</div>
</div>
<div class="card-action">
@ -193,7 +193,8 @@
</div>
<div class="card-content">
<p>Made by miwojedk - this project won the #1 place on PlanetMinecraft Contest (Press "Show More" to
see more information)</p>
see more information)
</p>
</div>
</div>
<div class="card-action">
@ -336,27 +337,24 @@
</div>
</div>
<!-- END OF BUILDS -->
<h5>If you are masterbuilder, <a href="http://totalfreedom.boards.net/conversation/new/2769" target="_blank">send me your builds!</a></h5>
<a class="top" href="#"><i class="fa fa-chevron-up icon"></i></a>
</div>
<footer class="page-footer transparent">
<div class="container">
<div class="footer-copyright">
<div class="container">
<hr> TotalFreedom &copy; 2010 - <span id="curYear"></span>
<hr>
TotalFreedom &copy; 2010 - <span id="curYear"></span>
<a class="grey-text text-lighten-4 right" href="https://aggelosqq.github.io" target="_blank">Made by aggelosQQ</a>
</div>
</div>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"></script>
<script src="https://use.fontawesome.com/cb2592f0cc.js"></script>
<script src="../js/main.js"></script>
<script src="assets/js/builders.js"></script>
</body>
</html>

View file

@ -2,7 +2,6 @@
<html lang="en">
<head>
<!--
Copyright 2017 Aggelos Sarris and contributors
Licensed under the Apache License, Version 2.0 (the "License");
@ -48,7 +47,6 @@
</div>
</nav>
<br>
<!-- <h2 class="page-title hide-on-large-only">Staff</h2> -->
<div class="admins">
<h2 class="rank">TotalFreedom Developers</h2>
<ul id="developers"></ul>
@ -70,7 +68,6 @@
</div>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"></script>
<script src="js/typed.js"></script>
@ -79,7 +76,6 @@
<script src="js/functions.js"></script>
<script src="js/main.js"></script>
<script src="https://use.fontawesome.com/cb2592f0cc.js"></script>
<script>
// All Json content is loaded respectively into #(item)
var jsonUrl = "https://totalfreedom.me/tfinfo/";