Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <!-- READ ME BEFORE YOU CUSTOMIZE
- This Neocities theme uses a lot of code frankensteining.
- If you want to change the borders you have to change the styling on both the CONTAINERS, and the FIXBORDER divs.
- KEEP ALL BORDER SIZES AT 4PX, UNLESS YOU'RE READY TO CHANGE A LOT OF MARGINS, OK?
- Thanks!
- Anything to customize is labelled along the lines of "(BLANK FEATURE) HERE"
- Add anything extra that you want, just be aware that the code can break if you you mess around with too much stuff I'm holding this together with glue.
- -->
- <meta charset="UTF-8">
- <title>SITE TITLE HERE</title>
- <link rel="icon" type="image/x-icon" href="FAVICON URL HERE">
- <script src="https://code.jquery.com/jquery-3.6.0.js"></script>
- <script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
- <!--MAKES THE CALENDAR DRAGGABLE-->
- <script>
- $( function() {
- $( "#calendar" ).draggable();
- } );
- </script>
- <!--MAKES THE OTHER STUFF DRAGGABLE-->
- <script>
- $( function() {
- $( "#other" ).draggable();
- } );
- </script>
- <script>
- $( function() {
- $( "#other2" ).draggable();
- } );
- </script>
- <!--STUFF-->
- <style>
- /**DON'T REMOVE MEEE however! You can change the EMOJI that the credit uses if you want, at the bottom of the code!**/
- #credit {
- position: fixed;
- left: 12px;
- bottom: 6px;
- font-size: 14px;
- }
- ::-webkit-scrollbar {
- display: none;
- }
- body {
- background-color: #fff;
- background-image: url("BACKGROUND IMAGE URL HERE");
- background-size: CHOOSE BETWEEN: COVER, AUTO OR CONTAIN;
- font-family: times; /** FONT FAMILY HERE **/
- }
- a {
- color: LINK COLOR HERE;
- text-decoration: none;
- }
- a:hover {
- color: LINK HOVER COLOR HERE;
- transition: 0.8s;
- }
- /**DON'T CHANGE THIS DIV OK?**/
- .container {
- width: 900px;
- margin-top: 50px;
- }
- .floaty1 {
- width: auto;
- height: auto;
- position: absolute;
- z-index: 99;
- }
- .floaty2 {
- width: auto;
- height: auto;
- float: right;
- z-index: 99;
- }
- .header {
- width: 640px;
- padding: 10px;
- height: 20px;
- background-color: #fff; /**BACKGROUND COLOR HERE**/
- border-top: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- border-left: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- border-right: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- border-top-right-radius: 25px;
- overflow: auto;
- scrollbar-width: none;
- }
- .container1 {
- width: 640px;
- padding: 10px;
- height: 300px;
- background-color: #fff; /**BACKGROUND COLOR HERE**/
- border-top: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- border-left: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- border-right: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- text-align: justify;
- overflow: auto;
- scrollbar-width: none;
- }
- .container2 {
- width: 445px;
- padding: 10px;
- display: inline-block;
- height: 220px;
- background-color: #fff; /**BACKGROUND COLOR HERE**/
- border-left: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- border-right: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- margin-left: 5px;
- margin-top: -4px;
- text-align: justify;
- overflow: auto;
- scrollbar-width: none;
- }
- .container3 {
- width: 640px;
- padding: 10px;
- height: 300px;
- background-color: #fff; /**BACKGROUND COLOR HERE**/
- border-bottom: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- border-left: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- border-right: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- margin-top: -5px;
- text-align: justify;
- overflow: auto;
- scrollbar-width: none;
- }
- .fixborder {
- width: 202px;
- border-bottom: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- height: 0px;
- margin-left: -465px;
- margin-top: -4px;
- z-index: 90;
- }
- .fixborder2 {
- width: 202px;
- border-top: 4px solid #000; /**BORDER COLOR & STYLE HERE **/
- height: 5px;
- background-color: transparent;
- margin-left: -465px;
- margin-top: -8px;
- z-index: 99;
- }
- .calendar {
- width: auto;
- height: 200px;
- border: 3px solid #000; /**BORDER COLOR & STYLE HERE **/
- display: inline-block;
- margin-top: 9px;
- vertical-align: top;
- padding: 4px;
- background-color: #fff; /**BACKGROUND COLOR HERE**/
- }
- table {
- font-size: 16px;
- color: #000; /** CALENDAR FONT COLOR HERE **/
- font-family: times; /** CALENDAR FONT FAMILY HERE **/
- }
- td {
- font-size: 16px;
- }
- /**FRAMES FOR THE BOBBING ANIMATION**/
- @-webkit-keyframes hvr-bob {
- 0% {
- translateY(-18px);
- }
- 50% {translateY(-4px);
- }
- 100% {
- -webkit-transform: translateY(-18px);
- transform: translateY(-18px);
- }
- }
- @keyframes hvr-bob {
- 0% {
- -webkit-transform: translateY(-18px);
- transform: translateY(-18px);
- }
- 50% {
- -webkit-transform: translateY(-4px);
- transform: translateY(-4px);
- }
- 100% {
- -webkit-transform: translateY(-18px);
- transform: translateY(-18px);
- }
- }
- @-webkit-keyframes hvr-bob-float {
- 100% {
- -webkit-transform: translateY(-18px);
- transform: translateY(-18px);
- }
- }
- @keyframes hvr-bob-float {
- 100% {
- -webkit-transform: translateY(-18px);
- transform: translateY(-18px);
- }
- }
- #hvr-bob {
- -webkit-animation-name: hvr-bob-float, hvr-bob;
- animation-name: hvr-bob-float, hvr-bob;
- -webkit-animation-duration: .3s, 1.5s;
- animation-duration: .3s, 1.5s;
- -webkit-animation-delay: 0s, .3s;
- animation-delay: 0s, .3s;
- -webkit-animation-timing-function: ease-out, ease-in-out;
- animation-timing-function: ease-out, ease-in-out;
- -webkit-animation-iteration-count: 1, infinite;
- animation-iteration-count: 1, infinite;
- -webkit-animation-fill-mode: forwards;
- animation-fill-mode: forwards;
- -webkit-animation-direction: normal, alternate;
- animation-direction: normal, alternate;
- }
- </style>
- </head>
- <body>
- <center>
- <div class="container">
- <div class="floaty1" id="other">
- <img src="FLOATING IMAGE 1" id="hvr-bob">
- </div> <!--FLOATY 1-->
- <div class="header"></div> <!--HEADER-->
- <div class="container1">
- <!--POSITION THIS MARQUEE WHEREEVER YOU WANT-->
- <marquee scrolldelay="90" style="margin-bottom: 10px;">
- IMAGES OR TEXT CAN GO HERE! ANYTHING AT ALL!
- </marquee>
- </div> <!--CONTAINER 1-->
- <div class="fixborder"></div><!--FIX BORDER-->
- <div class="calendar" align="center" id="calendar">
- <script text="JavaScript">
- monthnames = new Array(
- 'January',
- 'February',
- 'March',
- 'April',
- 'May',
- 'June',
- 'July',
- 'August',
- 'September',
- 'October',
- 'November',
- 'December'
- );
- var linkcount = 0;
- class addlink {
- constructor(month, day, href) {
- var entry = new Array(3);
- entry[0] = month;
- entry[1] = day;
- entry[2] = href;
- this[(linkcount += 1)] = entry;
- }
- }
- Array.prototype.addlink = addlink;
- linkdays = [];
- monthdays = new Array(12);
- monthdays[0] = 31;
- monthdays[1] = 28;
- monthdays[2] = 31;
- monthdays[3] = 30;
- monthdays[4] = 31;
- monthdays[5] = 30;
- monthdays[6] = 31;
- monthdays[7] = 31;
- monthdays[8] = 30;
- monthdays[9] = 31;
- monthdays[10] = 30;
- monthdays[11] = 31;
- todayDate = new Date();
- thisday = todayDate.getDay();
- thismonth = todayDate.getMonth();
- thisdate = todayDate.getDate();
- thisyear = todayDate.getYear();
- thisyear = thisyear % 100;
- thisyear = thisyear < 50 ? 2000 + thisyear : 1900 + thisyear;
- if ((thisyear % 4 === 0 && !(thisyear % 100 === 0)) || thisyear % 400 === 0) {
- monthdays[1] += 1;
- }
- startspaces = thisdate;
- while (startspaces > 7) {
- startspaces -= 7;
- }
- startspaces = thisday - startspaces + 1;
- if (startspaces < 0) {
- startspaces += 7;
- }
- document.write("<font face='CALEDNAR FONT HERE'>");
- document.write('<table border=0 ');
- document.write(' style="text-align: center;" cellpadding=2 cellspacing=4>');
- document.write(
- '<tr><td colspan=7><center>' +
- monthnames[thismonth] +
- ' ' +
- thisyear +
- '</strong></center></font></td></tr>'
- );
- document.write('<tr>');
- document.write('<td align=center><b>S</b></td>');
- document.write('<td align=center><b>M</b></td>');
- document.write('<td align=center><b>T</b></td>');
- document.write('<td align=center><b>W</b></td>');
- document.write('<td align=center><b>T</b></td>');
- document.write('<td align=center><b>F</b></td>');
- document.write('<td align=center><b>S</b></td>');
- document.write('</tr>');
- document.write('<tr>');
- for (s = 0; s < startspaces; s += 1) {
- document.write('<td> </td>');
- }
- count = 1;
- while (count <= monthdays[thismonth]) {
- for (b = startspaces; b < 7; b += 1) {
- linktrue = false;
- document.write('<td>');
- for (c = 0; c < linkdays.length; c += 1) {
- if (linkdays[c] != null) {
- if (linkdays[c][0] === thismonth + 1 && linkdays[c][1] === count) {
- document.write('<a href="' + linkdays[c][2] + '">');
- linktrue = true;
- }
- }
- }
- if (count === thisdate) {
- document.write("<b><font color='COLOR FOR WHAT DAY IT IS HERE'></b>");
- }
- if (count <= monthdays[thismonth]) {
- document.write(count);
- } else {
- document.write(' ');
- }
- if (count === thisdate) {
- document.write('</font>');
- }
- if (linktrue) {
- document.write('</a>');
- }
- document.write('</td>');
- count += 1;
- }
- document.write('</tr>');
- document.write('<tr>');
- startspaces = 0;
- }
- document.write('</table>');
- </script>
- </font></div> <!--CALENDAR-->
- <div class="container2">
- </div> <!--CONTAINER 2-->
- <div class="fixborder2"></div> <!--FIX BORDER 2-->
- <div class="container3">
- </div> <!--CONTAINER 3-->
- <div class="floaty2" id="other2">
- <img src="FLOATING IMAGE 2" id="hvr-bob">
- </div> <!--FLOATY 2-->
- </div> <!--CONTAINER-->
- </center>
- <div id="credit">
- <a href="https://doffy.tumblr.com/" target="_blank" title="CODED BY JOYBOY">🦩</a>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement