Web Tools are tools that I often use in frontend to make website or to add little nice things.
Available tools :
- Basic loader before the website
- The title of the website animated
- A clickable ip system with visualisation
- Scrollbar custom
Here are the little things to know about the different tools.
This is the explanation for the Loader.
It is based on the melonhtml5 system. I've just simplified the css and give you a tutorial to use it.
You will need jquery for this project or just download this jquery.min.js file, it will work properly.
Download these two files:
And put them respectively in a js
and css
folder.
To make it work properly, add these eleven lines in the <head>
of the page you want your loader in :
<link href="css/royal_preloader.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/royal_preloader.min.js"></script>
<script type="text/javascript">
Royal_Preloader.config({
mode: 'text',
text: 'Put here vat u vant in textual',
timeout: '1200',
showProgress: false,
background: '#1d1d1d'
});
</script>
and add this line in top of the <body>
:
<div id="royal_preloader"></div>
Unfortunately, there is no real wiki. So here are some use cases with their respective Royal_Preloader.config. All cases below are from melonhtml5.
The result : https://melonhtml5.com/demo/royal_preloader/index.php
The config :
Royal_Preloader.config({
mode: 'text',
text: 'Your text',
background:"#000000"
});
The result : https://melonhtml5.com/demo/royal_preloader/progress.php
The config :
Royal_Preloader.config({
mode: 'progress',
background: '#262D33'
});
The result : https://melonhtml5.com/demo/royal_preloader/number.php
The config :
Royal_Preloader.config({
mode: 'number',
show_percentage: true,
background: "#000000",
text_colour: "#FFFFFF"
});
The result : https://melonhtml5.com/demo/royal_preloader/logo.php
The config :
Royal_Preloader.config({
mode: 'logo',
logo: 'images/your-logo.png',
text_colour: '#1247AB',
background: "#FFFFFF"
});
The result : https://melonhtml5.com/demo/royal_preloader/scale_text.php
The config :
Royal_Preloader.config({
mode: 'scale_text',
text: 'Your Long Text Goes Here',
background: "#FFFFFF",
text_colour: '#666666'
});
This is the explanation for the Animated Title.
There is nothing very magic here, just a basic js script, but beautiful
You need title_animation.js. When you have downloaded it, put it in a js
folder.
To make it work properly, add these seven lines in the <head>
of the page you want your animated text in :
<script src="js/title_animation.js"></script>
<script type="text/javascript">
Title_Animation.config({
text: "Put here vat u vant in textual",
timeBetweenEachLetters: 300
});
</script>
You can do two things :
- Modify the
text
- Modify the
timeBetweenEachLetters
That's it lol
This is the explanation for the Clickable Ip.
This system is inspired by funcraft. it's a system that allows to have something nice to get the ip of a minecraft server while being sober.
Download these two files:
And put them respectively in a js
and css
folder.
To make it work properly, add this line in the <head>
of the page you want your clickable ip in :
<link rel="stylesheet" href="css/clickable_ip.css">
And put these lines where you want your clickable ip :
<div id="container-copy">
<button onclick="copyToClickBoard()">
<code id="ip">your-ip.net</code>
</button>
<p id="textvolant" style="display: none;"></p>
<script src="js/clickable_ip.js"></script>
</div>
You can modify your-ip.net
and create a nice website for your nice minecraft server.
This is the explanation for the Scrollbar Custom.
This tool is my favorite I use it really often. It allows you to have a scrollbar cutom whatever the browser except Internet Explorer obviously lol.
Download this file : scrollbar_custom.css
And put it in a css
folder.
To make it work properly, add these seven lines in the <head>
of the page you want the custom scrollbar in :
<link rel="stylesheet" href="css/scrollbar_custom.css">
<style>
:root{
--scrollbar-track: #6e6e6e;
--scrollbar-thumb: #202225;
}
</style>
And that's it.
You can simply change the scrollbar color with --scrollbar-track
and --scrollbar-thumb
. But for more modifications you can modify scrollbar_custom.css
.