Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://www.filedropper.com/homepage << The images and javascript
- HTML
- <!DOCTYPE html>
- <html>
- <head>
- <title>Homepage</title>
- <link rel="stylesheet" type="text/css" href="style.css">
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
- <script type="text/javascript" src="js/gulpfile.js"></script>
- <script type="text/javascript" src="js/jquery.simpleWeather.js"></script>
- <script type="text/javascript" src="script.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $.simpleWeather({
- location: 'Vriezenveen, Netherlands',
- woeid: 'NLXX0504',
- unit: 'c',
- success: function(weather) {
- html = '<i class="icon-'+weather.code+'"></i><br> '+weather.temp+'°'+weather.units.temp+'';
- $("#weather").html(html);
- },
- error: function(error) {
- $("#weather").html('<p>'+error+'</p>');
- }
- });
- });
- </script>
- </head>
- <div id="server">Connecting to homeserver</div>
- <div id="weather"></div>
- <div id="background"></div>
- <div class="wrapper">
- <div id="clock"></div>
- <div id="search">
- <form method="get" id="form" action='https://google.com/search'>
- <input type="text" name="q" maxlength="255" value="">
- </form>
- <div id="radio_buttons">
- <input type="radio" onclick="document.getElementById('form').action='https://google.com/search';" name="SearchEngine" value="google" checked> Google
- <input type="radio" onclick="document.getElementById('form').action='https://torrentz.eu/search';" name="SearchEngine" value="torents"> Torrentz
- <input type="radio" onclick="document.getElementById('form').action='https://www.youtube.com/results';" name="SearchEngine" value="youtube"> Youtube
- </div>
- </div>
- <div id="boxes_center">
- <div class="box" >
- <div class="box_header">
- <div class="center_box">
- <img src="4chan.png" height="100px">
- </div>
- </div>
- <div class="box_content">
- <a href="https://boards.4chan.org/g/"> /g/ </a>
- <a href="https://boards.4chan.org/b/"> /b/ </a>
- <a href="https://boards.4chan.org/diy/"> /diy/ </a>
- <a href="https://boards.4chan.org/fit/"> /fit/ </a>
- <a href="https://boards.4chan.org/trv/"> /trv/ </a>
- </div>
- </div>
- <div class="box" >
- <div class="box_header">
- <div class="center_box">
- <img src="reddit.png" height="100px">
- </div>
- </div>
- <div class="box_content">
- <a href="https://www.reddit.com/r/videos"> /r/videos </a>
- <a href="https://www.reddit.com/r/wtf"> /r/wtf </a>
- <a href="https://www.reddit.com/r/funny"> /r/funny </a>
- <a href="https://www.reddit.com/r/pics"> /r/pics </a>
- <a href="https://www.reddit.com/r/cringeAnarchy"> /r/cringeAnarchy </a>
- </div>
- </div>
- <div class="box" >
- <div class="box_header">
- <div class="center_box">
- <img src="news.png" height="100px">
- </div>
- </div>
- <div class="box_content">
- <a href="http://www.wired.co.uk/"> Wired </a>
- <a href="http://www.nu.nl/tech"> Nu.nl </a>
- <a href="https://news.ycombinator.com/"> Hacker news </a>
- <a href="#"> </a>
- <a href="#"> </a>
- </div>
- </div>
- <div class="box" >
- <div class="box_header">
- <div class="center_box">
- <img src="social.png" height="100px">
- </div>
- </div>
- <div class="box_content">
- <a href="https://www.facebook.com/"> Facebook </a>
- <a href="https://mail.google.com/mail/u/0/#inbox"> Gmail </a>
- <a href="#"> </a>
- <a href="#"> </a>
- <a href="#"> </a>
- </div>
- </div>
- <div class="box" >
- <div class="box_header">
- <div class="center_box">
- <img src="server.png" height="100px">
- </div>
- </div>
- <div class="box_content">
- <a href="http://overthewire.org/wargames/"> Over the wire </a>
- <a href=""> Homeserver </a>
- <a href=""> Webmin </a>
- <a href=""> Raspberry pi </a>
- <a href="#"> </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
- CSS
- @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,700);
- body{
- font-family: 'Open Sans', sans-serif;
- margin: 0;
- background: #e0e0e0;
- }
- @font-face {
- font-family: 'weather';
- src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.eot');
- src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.eot?#iefix') format('embedded-opentype'),
- url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.woff') format('woff'),
- url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.ttf') format('truetype'),
- url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.svg#artill_clean_weather_iconsRg') format('svg');
- font-weight: normal;
- font-style: normal;
- }
- .icon-0:before { content: ":"; }
- .icon-1:before { content: "p"; }
- .icon-2:before { content: "S"; }
- .icon-3:before { content: "Q"; }
- .icon-4:before { content: "S"; }
- .icon-5:before { content: "W"; }
- .icon-6:before { content: "W"; }
- .icon-7:before { content: "W"; }
- .icon-8:before { content: "W"; }
- .icon-9:before { content: "I"; }
- .icon-10:before { content: "W"; }
- .icon-11:before { content: "I"; }
- .icon-12:before { content: "I"; }
- .icon-13:before { content: "I"; }
- .icon-14:before { content: "I"; }
- .icon-15:before { content: "W"; }
- .icon-16:before { content: "I"; }
- .icon-17:before { content: "W"; }
- .icon-18:before { content: "U"; }
- .icon-19:before { content: "Z"; }
- .icon-20:before { content: "Z"; }
- .icon-21:before { content: "Z"; }
- .icon-22:before { content: "Z"; }
- .icon-23:before { content: "Z"; }
- .icon-24:before { content: "E"; }
- .icon-25:before { content: "E"; }
- .icon-26:before { content: "3"; }
- .icon-27:before { content: "a"; }
- .icon-28:before { content: "A"; }
- .icon-29:before { content: "a"; }
- .icon-30:before { content: "A"; }
- .icon-31:before { content: "6"; }
- .icon-32:before { content: "1"; }
- .icon-33:before { content: "6"; }
- .icon-34:before { content: "1"; }
- .icon-35:before { content: "W"; }
- .icon-36:before { content: "1"; }
- .icon-37:before { content: "S"; }
- .icon-38:before { content: "S"; }
- .icon-39:before { content: "S"; }
- .icon-40:before { content: "M"; }
- .icon-41:before { content: "W"; }
- .icon-42:before { content: "I"; }
- .icon-43:before { content: "W"; }
- .icon-44:before { content: "a"; }
- .icon-45:before { content: "S"; }
- .icon-46:before { content: "U"; }
- .icon-47:before { content: "S"; }
- i {
- text-align: center;
- color: #fff;
- font-size: 50px;
- font-family: weather;
- font-weight: lighter;
- font-style: normal;
- }
- #rss{
- text-align: center;
- margin: 0 auto;
- border: 1px solid #B3B3B3;
- border-bottom: none !important;
- }
- #weather{
- color: white;
- top: 15px;
- left :15px;
- position: absolute;
- }
- #rss a{
- border-bottom: 1px solid #B3B3B3;
- color: #303030;
- padding: 5px 0;
- width: 100%;
- display: inline-block;
- text-decoration: none;
- }
- #rss a:hover{
- background: rgba(144, 144, 144,0.1); ;
- }
- #rss li{
- list-style-type: none;
- }
- #background{
- z-index: -1;
- top: 0;
- right: 0;
- height: calc(50vh - 25px);
- position: fixed;
- padding: 25px 0;
- margin: 0;
- width: 100vw;
- background: #0067b0;
- border-bottom: 25px solid #00528D;
- }
- .wrapper{
- width: 65vw;
- margin:0 auto;
- }
- .wrapper h1{
- color: #303030;
- text-align: center;
- }
- #clock{
- height: 150px;
- line-height: 150px;
- width: 100%;
- text-align: center;
- color: white;
- font-size: 38px;
- }
- #server{
- position: absolute;
- color: white;
- right: 30px;
- top: 15px;
- }
- #search{
- margin-top: 25px;
- margin-bottom: 50px;
- width: 100%;
- }
- #search input[type='text']{
- width: calc(100% - 55px);
- height: 50px;
- padding: 5px 45px 5px 5px;
- font-size: 28px;
- color: white;
- background: #0067B0 url('search-icon.png') no-repeat right 10px center;
- border: 1px solid white;
- }
- #boxes_center{
- text-align: center;
- letter-spacing: 25px;
- line-height: 60px;
- }
- .box{
- display: inline-block;
- transition: 0.8s all ease;
- overflow: hidden;
- width: 200px;
- height: 200px;
- }
- #radio_buttons{
- width: 100%;
- padding: 5px 0 0 0 ;
- color: white;
- }
- .box:hover .box_header, .box:hover .box_content{
- transition: 0.4s all ease;
- top: -200px;
- }
- .box_header{
- transition: 0.4s all ease;
- position: relative;
- top: 0;
- width: 200px;
- height: 200px;
- background:#1ebc61 ;
- }
- .box_content{
- transition: 0.4s all ease;
- top: 0;
- position: relative;
- width: 200px;
- height: 200px;
- background:white; ;
- }
- .center_box{
- width: 100px;
- margin: 0 auto;
- position: relative;
- top: 50px;
- }
- .box a{
- letter-spacing: normal;
- display: block;
- width: 100%;
- height: 40px;
- line-height: 40px;
- text-decoration: none;
- color: #2c3e50;
- }
- .box a:hover{
- background:rgba(189, 195, 199,0.2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement