diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000..0e259d42
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,121 @@
+Creative Commons Legal Code
+
+CC0 1.0 Universal
+
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
+ HEREUNDER.
+
+Statement of Purpose
+
+The laws of most jurisdictions throughout the world automatically confer
+exclusive Copyright and Related Rights (defined below) upon the creator
+and subsequent owner(s) (each and all, an "owner") of an original work of
+authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for
+the purpose of contributing to a commons of creative, cultural and
+scientific works ("Commons") that the public can reliably and without fear
+of later claims of infringement build upon, modify, incorporate in other
+works, reuse and redistribute as freely as possible in any form whatsoever
+and for any purposes, including without limitation commercial purposes.
+These owners may contribute to the Commons to promote the ideal of a free
+culture and the further production of creative, cultural and scientific
+works, or to gain reputation or greater distribution for their Work in
+part through the use and efforts of others.
+
+For these and/or other purposes and motivations, and without any
+expectation of additional consideration or compensation, the person
+associating CC0 with a Work (the "Affirmer"), to the extent that he or she
+is an owner of Copyright and Related Rights in the Work, voluntarily
+elects to apply CC0 to the Work and publicly distribute the Work under its
+terms, with knowledge of his or her Copyright and Related Rights in the
+Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be
+protected by copyright and related or neighboring rights ("Copyright and
+Related Rights"). Copyright and Related Rights include, but are not
+limited to, the following:
+
+ i. the right to reproduce, adapt, distribute, perform, display,
+ communicate, and translate a Work;
+ ii. moral rights retained by the original author(s) and/or performer(s);
+iii. publicity and privacy rights pertaining to a person's image or
+ likeness depicted in a Work;
+ iv. rights protecting against unfair competition in regards to a Work,
+ subject to the limitations in paragraph 4(a), below;
+ v. rights protecting the extraction, dissemination, use and reuse of data
+ in a Work;
+ vi. database rights (such as those arising under Directive 96/9/EC of the
+ European Parliament and of the Council of 11 March 1996 on the legal
+ protection of databases, and under any national implementation
+ thereof, including any amended or successor version of such
+ directive); and
+vii. other similar, equivalent or corresponding rights throughout the
+ world based on applicable law or treaty, and any national
+ implementations thereof.
+
+2. Waiver. To the greatest extent permitted by, but not in contravention
+of, applicable law, Affirmer hereby overtly, fully, permanently,
+irrevocably and unconditionally waives, abandons, and surrenders all of
+Affirmer's Copyright and Related Rights and associated claims and causes
+of action, whether now known or unknown (including existing as well as
+future claims and causes of action), in the Work (i) in all territories
+worldwide, (ii) for the maximum duration provided by applicable law or
+treaty (including future time extensions), (iii) in any current or future
+medium and for any number of copies, and (iv) for any purpose whatsoever,
+including without limitation commercial, advertising or promotional
+purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
+member of the public at large and to the detriment of Affirmer's heirs and
+successors, fully intending that such Waiver shall not be subject to
+revocation, rescission, cancellation, termination, or any other legal or
+equitable action to disrupt the quiet enjoyment of the Work by the public
+as contemplated by Affirmer's express Statement of Purpose.
+
+3. Public License Fallback. Should any part of the Waiver for any reason
+be judged legally invalid or ineffective under applicable law, then the
+Waiver shall be preserved to the maximum extent permitted taking into
+account Affirmer's express Statement of Purpose. In addition, to the
+extent the Waiver is so judged Affirmer hereby grants to each affected
+person a royalty-free, non transferable, non sublicensable, non exclusive,
+irrevocable and unconditional license to exercise Affirmer's Copyright and
+Related Rights in the Work (i) in all territories worldwide, (ii) for the
+maximum duration provided by applicable law or treaty (including future
+time extensions), (iii) in any current or future medium and for any number
+of copies, and (iv) for any purpose whatsoever, including without
+limitation commercial, advertising or promotional purposes (the
+"License"). The License shall be deemed effective as of the date CC0 was
+applied by Affirmer to the Work. Should any part of the License for any
+reason be judged legally invalid or ineffective under applicable law, such
+partial invalidity or ineffectiveness shall not invalidate the remainder
+of the License, and in such case Affirmer hereby affirms that he or she
+will not (i) exercise any of his or her remaining Copyright and Related
+Rights in the Work or (ii) assert any associated claims and causes of
+action with respect to the Work, in either case contrary to Affirmer's
+express Statement of Purpose.
+
+4. Limitations and Disclaimers.
+
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
+ surrendered, licensed or otherwise affected by this document.
+ b. Affirmer offers the Work as-is and makes no representations or
+ warranties of any kind concerning the Work, express, implied,
+ statutory or otherwise, including without limitation warranties of
+ title, merchantability, fitness for a particular purpose, non
+ infringement, or the absence of latent or other defects, accuracy, or
+ the present or absence of errors, whether or not discoverable, all to
+ the greatest extent permissible under applicable law.
+ c. Affirmer disclaims responsibility for clearing rights of other persons
+ that may apply to the Work or any use thereof, including without
+ limitation any person's Copyright and Related Rights in the Work.
+ Further, Affirmer disclaims responsibility for obtaining any necessary
+ consents, permissions or other rights required for any use of the
+ Work.
+ d. Affirmer understands and acknowledges that Creative Commons is not a
+ party to this document and has no duty or obligation with respect to
+ this CC0 or use of the Work.
diff --git a/README.md b/README.md
index ac6780d3..8a605186 100644
--- a/README.md
+++ b/README.md
@@ -26,8 +26,8 @@
-### site: [win11.blueedge.me](https://win11.blueedge.me)
+### visit: [win11.blueedge.me](https://win11.blueedge.me)
Check out the game 🎮 , **UNESCAPE** , I am working on [blueedge.me/unescape](https://blueedge.me/unescape)
-[contact me](mailto:blueedgetechno@gmail.com) if you want to collab or make an issue for any upcoming update you want
+[contact me](mailto:blueedgetechno@gmail.com) if you want to collab or make an issue for any upcoming update you want
diff --git a/package-lock.json b/package-lock.json
index e3d119d7..b7a81aac 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3921,6 +3921,11 @@
"resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
},
+ "catenary-curve": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/catenary-curve/-/catenary-curve-1.0.1.tgz",
+ "integrity": "sha512-vSHQtYFjItV4wxUH5OkicA3Kmln6thBBWlJLiw2f4apfvkKw4BVe8bTbG6lnbJe60CIr8PyHzjSX27blSJ07Ww=="
+ },
"chalk": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz",
@@ -8881,6 +8886,11 @@
"webpack-sources": "^1.1.0"
}
},
+ "lazy-brush": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/lazy-brush/-/lazy-brush-1.0.1.tgz",
+ "integrity": "sha512-xT/iSClTVi7vLoF8dCWTBhCuOWqsLXCMPa6ucVmVAk6hyNCM5JeS1NLhXqIrJktUg+caEYKlqSOUU4u3cpXzKg=="
+ },
"leven": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
@@ -11909,6 +11919,17 @@
"whatwg-fetch": "^3.4.1"
}
},
+ "react-canvas-draw": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/react-canvas-draw/-/react-canvas-draw-1.1.1.tgz",
+ "integrity": "sha512-PvZc7g21bYSGebsi73qMgQUV1QQXC464/FouTACwffdytUcMhZM77Jlbj6sOJnctKY9x0IRlJIF2cZj3UVPWGg==",
+ "requires": {
+ "catenary-curve": "^1.0.1",
+ "lazy-brush": "^1.0.1",
+ "prop-types": "^15.6.2",
+ "resize-observer-polyfill": "^1.5.0"
+ }
+ },
"react-dev-utils": {
"version": "11.0.4",
"resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-11.0.4.tgz",
@@ -12582,6 +12603,11 @@
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
"integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8="
},
+ "resize-observer-polyfill": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
+ "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg=="
+ },
"resolve": {
"version": "1.18.1",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.18.1.tgz",
diff --git a/package.json b/package.json
index 6b76d40e..ac3b609f 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
"axios": "^0.21.1",
"node-sass": "^6.0.1",
"react": "^17.0.2",
+ "react-canvas-draw": "^1.1.1",
"react-dom": "^17.0.2",
"react-redux": "^7.2.4",
"react-scripts": "4.0.3",
diff --git a/public/dycalendar.css b/public/dycalendar.css
new file mode 100644
index 00000000..5e89c6cc
--- /dev/null
+++ b/public/dycalendar.css
@@ -0,0 +1,353 @@
+/*!
+ * dyCalendar is a JavaScript library for creating Calendar.
+ *
+ * Author: Yusuf Shakeel
+ * https://github.com/yusufshakeel
+ *
+ * GitHub Link: https://github.com/yusufshakeel/dyCalendarJS
+ *
+ * MIT license
+ * Copyright (c) 2016 Yusuf Shakeel
+ *
+ * Date: 2014-08-17 sunday
+ */
+.dycalendar-container {
+ display: inline-block;
+ border: 1px solid #eee;
+}
+
+.dycalendar-container.round-edge {
+ border-radius: 5%;
+ -o-border-radius: 5%;
+ -moz-border-radius: 5%;
+ -webkit-border-radius: 5%;
+}
+
+/*================================== DAY CALENDAR ========================*/
+/*
+ * day calendar style
+ *-------------------------------------------------*/
+.dycalendar-day-container {
+ padding: 10px;
+ text-align: center;
+ font-family: Arial;
+}
+
+.dycalendar-day-container div {
+ padding: 0;
+ margin-bottom: 10px;
+}
+
+.dycalendar-day-container .dycalendar-span-day {
+ font-size: 110%;
+}
+
+.dycalendar-day-container .dycalendar-span-date {
+ font-size: 250%;
+}
+
+.dycalendar-day-container .dycalendar-span-month-year {
+ font-size: 90%
+}
+
+/*================================== DAY CALENDAR ENDS HERE ===============*/
+/*================================== MONTH CALENDAR DEFAULT ========================*/
+/*
+ * month calendar style
+ *-------------------------------------------------*/
+.dycalendar-month-container {
+ padding: 10px;
+ text-align: center;
+ font-family: Arial;
+}
+
+.dycalendar-month-container div {
+ padding: 0;
+ margin-bottom: 10px;
+}
+
+.dycalendar-month-container .dycalendar-header {
+ position: relative;
+}
+
+.dycalendar-month-container .dycalendar-header .dycalendar-prev-next-btn {
+ position: absolute;
+ top: 0;
+ cursor: pointer;
+}
+
+.dycalendar-month-container .dycalendar-header .dycalendar-prev-next-btn.prev-btn {
+ left: 0;
+}
+
+.dycalendar-month-container .dycalendar-header .dycalendar-prev-next-btn.next-btn {
+ right: 0;
+}
+
+.dycalendar-month-container .dycalendar-span-month-year {
+ margin: 5px;
+ cursor: pointer;
+}
+
+.dycalendar-month-container .dycalendar-body table tr td {
+ padding: 12px;
+ font-size: 0.64em;
+ cursor: pointer;
+ transition: all 200ms ease-in-out;
+}
+
+.dycalendar-month-container .dycalendar-body table tr td:hover {
+ border-radius: 4px;
+ background: rgba(0, 0, 0, 0.1);
+}
+
+.dycalendar-month-container .dycalendar-body table tr:first-child td {
+ font-weight: 600;
+}
+
+.dycalendar-today-date {
+ background-color: #246ff2;
+ color: #fff;
+ border-radius: 24px;
+}
+
+/*================================== MONTH CALENDAR ENS HERE ===============*/
+/*================================== DYCALENDAR SKIN =======================*/
+/*
+ * calendar skin (default skin)
+ *-------------------------------------------------*/
+.dycalendar-container.gradient {
+ background: #fff;
+ background: linear-gradient(#fff, #d3d3d3);
+ background: -o-linear-gradient(#fff, #d3d3d3);
+ background: -moz-linear-gradient(#fff, #d3d3d3);
+ background: -webkit-linear-gradient(#fff, #d3d3d3);
+}
+
+/*
+ * calendar skin (skin-black)
+ *-------------------------------------------------*/
+.dycalendar-container.skin-black {
+ color: #fff;
+ background-color: #111;
+ border: 0;
+}
+
+.dycalendar-container.skin-black.gradient {
+ background: #111;
+ background: linear-gradient(#555, #111);
+ background: -o-linear-gradient(#555, #111);
+ background: -moz-linear-gradient(#555, #111);
+ background: -webkit-linear-gradient(#555, #111);
+}
+
+.dycalendar-container.skin-black .dycalendar-today-date,
+.dycalendar-container.skin-black .dycalendar-target-date {
+ background-color: #fff;
+ color: #111;
+ border-radius: 2px;
+}
+
+/*
+ * calendar skin (skin-blue)
+ *-------------------------------------------------*/
+.dycalendar-container.skin-blue {
+ color: #fff;
+ background-color: #3c99d3;
+ border: 0;
+}
+
+.dycalendar-container.skin-blue.gradient {
+ background: #3c99d3;
+ background: linear-gradient(#5ebbf5, #3c99d3);
+ background: -o-linear-gradient(#5ebbf5, #3c99d3);
+ background: -moz-linear-gradient(#5ebbf5, #3c99d3);
+ background: -webkit-linear-gradient(#5ebbf5, #3c99d3);
+}
+
+.dycalendar-container.skin-blue .dycalendar-today-date,
+.dycalendar-container.skin-blue .dycalendar-target-date {
+ background-color: #fff;
+ color: #3c99d3;
+ border-radius: 2px;
+}
+
+/*
+ * calendar skin (skin-green)
+ *-------------------------------------------------*/
+.dycalendar-container.skin-green {
+ color: #fff;
+ background-color: #2bb063;
+ border: 0;
+}
+
+.dycalendar-container.skin-green.gradient {
+ background: #2bb063;
+ background: linear-gradient(#3dd175, #2bb063);
+ background: -o-linear-gradient(#3dd175, #2bb063);
+ background: -moz-linear-gradient(#3dd175, #2bb063);
+ background: -webkit-linear-gradient(#3dd175, #2bb063);
+}
+
+.dycalendar-container.skin-green .dycalendar-today-date,
+.dycalendar-container.skin-green .dycalendar-target-date {
+ background-color: #fff;
+ color: #2bb063;
+ border-radius: 2px;
+}
+
+/*
+ * calendar skin (skin-purple)
+ *-------------------------------------------------*/
+.dycalendar-container.skin-purple {
+ color: #fff;
+ background-color: #975ea4;
+ border: 0;
+}
+
+.dycalendar-container.skin-purple.gradient {
+ background: #975ea4;
+ background: linear-gradient(#ca82d7, #975ea4);
+ background: -o-linear-gradient(#ca82d7, #975ea4);
+ background: -moz-linear-gradient(#ca82d7, #975ea4);
+ background: -webkit-linear-gradient(#ca82d7, #975ea4);
+}
+
+.dycalendar-container.skin-purple .dycalendar-today-date,
+.dycalendar-container.skin-purple .dycalendar-target-date {
+ background-color: #fff;
+ color: #975ea4;
+ border-radius: 2px;
+}
+
+/*
+ * calendar skin (skin-red)
+ *-------------------------------------------------*/
+.dycalendar-container.skin-red {
+ color: #fff;
+ background-color: #e94d40;
+ border: 0;
+}
+
+.dycalendar-container.skin-red.gradient {
+ background: #e94d40;
+ background: linear-gradient(#fb6f62, #e94d40);
+ background: -o-linear-gradient(#fb6f62, #e94d40);
+ background: -moz-linear-gradient(#fb6f62, #e94d40);
+ background: -webkit-linear-gradient(#fb6f62, #e94d40);
+}
+
+.dycalendar-container.skin-red .dycalendar-today-date,
+.dycalendar-container.skin-red .dycalendar-target-date {
+ background-color: #fff;
+ color: #e94d40;
+ border-radius: 2px;
+}
+
+/*
+ * calendar skin (skin-spacegray)
+ *-------------------------------------------------*/
+.dycalendar-container.skin-spacegray {
+ color: #fff;
+ background-color: #343d46;
+ border: 0;
+}
+
+.dycalendar-container.skin-spacegray.gradient {
+ background: #343d46;
+ background: linear-gradient(#454e57, #343d46);
+ background: -o-linear-gradient(#454e57, #343d46);
+ background: -moz-linear-gradient(#454e57, #343d46);
+ background: -webkit-linear-gradient(#454e57, #343d46);
+}
+
+.dycalendar-container.skin-spacegray .dycalendar-today-date,
+.dycalendar-container.skin-spacegray .dycalendar-target-date {
+ background-color: #fff;
+ color: #343d46;
+ border-radius: 2px;
+}
+
+/*================================== DYCALENDAR SKIN ENDS HERE =============*/
+/*================================== DYCALENDAR SHADOW =====================*/
+/*
+ * calendar shadow (shadow-default)
+ *-------------------------------------------------*/
+.dycalendar-container.shadow-default {
+ -o-box-shadow: 0 4px 4px 0 rgba(50, 50, 50, 0.4);
+ -moz-box-shadow: 0 4px 4px 0 rgba(50, 50, 50, 0.4);
+ -webkit-box-shadow: 0 4px 4px 0 rgba(50, 50, 50, 0.4);
+ box-shadow: 0 4px 4px 0 rgba(50, 50, 50, 0.4);
+}
+
+/*
+ * calendar shadow (shadow-black)
+ *-------------------------------------------------*/
+.dycalendar-container.shadow-black {
+ -o-box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.4);
+ -moz-box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.4);
+ -webkit-box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.4);
+ box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.4);
+}
+
+/*
+ * calendar shadow (shadow-blue)
+ *-------------------------------------------------*/
+.dycalendar-container.shadow-blue {
+ -o-box-shadow: 0 4px 4px 0 rgba(60, 153, 211, 0.4);
+ -moz-box-shadow: 0 4px 4px 0 rgba(60, 153, 211, 0.4);
+ -webkit-box-shadow: 0 4px 4px 0 rgba(60, 153, 211, 0.4);
+ box-shadow: 0 4px 4px 0 rgba(60, 153, 211, 0.4);
+}
+
+/*
+ * calendar shadow (shadow-green)
+ *-------------------------------------------------*/
+.dycalendar-container.shadow-green {
+ -o-box-shadow: 0 4px 4px 0 rgba(43, 176, 99, 0.4);
+ -moz-box-shadow: 0 4px 4px 0 rgba(43, 176, 99, 0.4);
+ -webkit-box-shadow: 0 4px 4px 0 rgba(43, 176, 99, 0.4);
+ box-shadow: 0 4px 4px 0 rgba(43, 176, 99, 0.4);
+}
+
+/*
+ * calendar shadow (shadow-purple)
+ *-------------------------------------------------*/
+.dycalendar-container.shadow-purple {
+ -o-box-shadow: 0 4px 4px 0 rgba(151, 94, 164, 0.4);
+ -moz-box-shadow: 0 4px 4px 0 rgba(151, 94, 164, 0.4);
+ -webkit-box-shadow: 0 4px 4px 0 rgba(151, 94, 164, 0.4);
+ box-shadow: 0 4px 4px 0 rgba(151, 94, 164, 0.4);
+}
+
+/*
+ * calendar shadow (shadow-red)
+ *-------------------------------------------------*/
+.dycalendar-container.shadow-red {
+ -o-box-shadow: 0 4px 4px 0 rgba(233, 77, 64, 0.4);
+ -moz-box-shadow: 0 4px 4px 0 rgba(233, 77, 64, 0.4);
+ -webkit-box-shadow: 0 4px 4px 0 rgba(233, 77, 64, 0.4);
+ box-shadow: 0 4px 4px 0 rgba(233, 77, 64, 0.4);
+}
+
+/*
+ * calendar shadow (shadow-spacegray)
+ *-------------------------------------------------*/
+.dycalendar-container.shadow-spacegray {
+ -o-box-shadow: 0 4px 4px 0 rgba(52, 61, 70, 1);
+ -moz-box-shadow: 0 4px 4px 0 rgba(52, 61, 70, 1);
+ -webkit-box-shadow: 0 4px 4px 0 rgba(52, 61, 70, 1);
+ box-shadow: 0 4px 4px 0 rgba(52, 61, 70, 1);
+}
+
+.dycalendar-span-month-year {
+ font-size: 0.8em;
+ font-weight: 600;
+}
+
+.dycalendar-prev-next-btn {
+ font-size: 0.8em;
+ padding: 0 4px;
+}
+
+/*================================== DYCALENDAR SHADOW ENDS HERE ===========*/
diff --git a/public/dycalendar.js b/public/dycalendar.js
new file mode 100644
index 00000000..3ec586c0
--- /dev/null
+++ b/public/dycalendar.js
@@ -0,0 +1,566 @@
+/*!
+ * dyCalendar is a JavaScript library for creating Calendar.
+ *
+ * Author: Yusuf Shakeel
+ * https://github.com/yusufshakeel
+ *
+ * GitHub Link: https://github.com/yusufshakeel/dyCalendarJS
+ *
+ * MIT license
+ * Copyright (c) 2016 Yusuf Shakeel
+ *
+ * Date: 2014-08-17 sunday
+ */
+/*! dyCalendarJS | (c) 2016 Yusuf Shakeel | https://github.com/yusufshakeel/dyCalendarJS */
+(function(global) {
+
+ "use strict";
+
+ var
+ //this will be used by the user.
+ dycalendar = {},
+
+ //window document
+ document = global.document,
+
+ //starting year
+ START_YEAR = 1900,
+
+ //end year
+ END_YEAR = 9999,
+
+ //name of the months
+ monthName = {
+ full: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
+ mmm: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
+ },
+
+ //name of the days
+ dayName = {
+ full: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
+ d: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
+ dd: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
+ ddd: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
+ };
+
+ /**
+ * this function will create month table.
+ *
+ * @param object data this contains the calendar data
+ * @param object option this is the settings object
+ * @return html
+ */
+ function createMonthTable(data, option) {
+
+ var
+ table, tr, td,
+ r, c, count;
+
+ table = document.createElement("table");
+ tr = document.createElement("tr");
+
+ //create 1st row for the day letters
+ for (c = 0; c <= 6; c = c + 1) {
+ td = document.createElement("td");
+ // td.innerHTML = "SMTWTFS"[c];
+ td.innerHTML = dayName.dd[c];
+ tr.appendChild(td);
+ }
+ table.appendChild(tr);
+
+ //create 2nd row for dates
+ tr = document.createElement("tr");
+
+ //blank td
+ for (c = 0; c <= 6; c = c + 1) {
+ if (c === data.firstDayIndex) {
+ break;
+ }
+ td = document.createElement("td");
+ tr.appendChild(td);
+ }
+
+ //remaing td of dates for the 2nd row
+ count = 1;
+ while (c <= 6) {
+ td = document.createElement("td");
+ td.innerHTML = count;
+ if (option.date === count && option.month === data.monthIndex && option.highlighttargetdate === true) {
+ td.setAttribute("class", "dycalendar-target-date");
+ }
+
+ if (data.today.date === count && data.today.monthIndex === data.monthIndex && option.highlighttoday === true) {
+ td.setAttribute("class", "dycalendar-today-date");
+ }
+
+ tr.appendChild(td);
+ count = count + 1;
+ c = c + 1;
+ }
+ table.appendChild(tr);
+
+ //create remaining rows
+ for (r = 3; r <= 7; r = r + 1) {
+ tr = document.createElement("tr");
+ for (c = 0; c <= 6; c = c + 1) {
+ if (count > data.totaldays) {
+ table.appendChild(tr);
+ return table;
+ }
+ td = document.createElement('td');
+ td.innerHTML = count;
+ if (option.date === count && option.month === data.monthIndex && option.highlighttargetdate === true) {
+ td.setAttribute("class", "dycalendar-target-date");
+ }
+
+ if (data.today.date === count && data.today.monthIndex === data.monthIndex && option.highlighttoday === true) {
+ td.setAttribute("class", "dycalendar-today-date");
+ }
+
+ count = count + 1;
+ tr.appendChild(td);
+ }
+ table.appendChild(tr);
+ }
+
+ return table;
+ }
+
+ /**
+ * this function will draw Calendar Month Table
+ *
+ * @param object data this contains the calendar data
+ * @param object option this is the settings object
+ * @return html
+ */
+ function drawCalendarMonthTable(data, option) {
+
+ var
+ table,
+ div, container, elem;
+
+ //get table
+ table = createMonthTable(data, option);
+
+ //calendar container
+ container = document.createElement("div");
+ container.setAttribute("class", "dycalendar-month-container");
+
+ //-------------------------- Header ------------------
+
+ //header div
+ div = document.createElement("div");
+ div.setAttribute("class", "dycalendar-header");
+ div.setAttribute("data-option", JSON.stringify(option));
+
+ //month span
+ elem = document.createElement("span");
+ elem.setAttribute("class", "dycalendar-span-month-year");
+ if (option.monthformat === "mmm") {
+ elem.innerHTML = data.monthName + " " + data.year;
+ } else if (option.monthformat === "full") {
+ elem.innerHTML = data.monthNameFull + " " + data.year;
+ }
+
+ //add month span to header div
+ div.appendChild(elem);
+
+ //prev button
+ if (option.prevnextbutton === "show") {
+ elem = document.createElement("span");
+ elem.setAttribute("class", "dycalendar-prev-next-btn prev-btn");
+ elem.setAttribute("data-date", option.date);
+ elem.setAttribute("data-month", option.month);
+ elem.setAttribute("data-year", option.year);
+ elem.setAttribute("data-btn", "prev");
+ elem.innerHTML = "◁";
+ //add prev button span to header div
+ div.appendChild(elem);
+
+ elem = document.createElement("span");
+ elem.setAttribute("class", "dycalendar-prev-next-btn next-btn");
+ elem.setAttribute("data-date", option.date);
+ elem.setAttribute("data-month", option.month);
+ elem.setAttribute("data-year", option.year);
+ elem.setAttribute("data-btn", "next");
+ elem.innerHTML = "▷";
+ //add prev button span to header div
+ div.appendChild(elem);
+ }
+
+ //add header div to container
+ container.appendChild(div);
+
+ //-------------------------- Body ------------------
+
+ //body div
+ div = document.createElement("div");
+ div.setAttribute("class", "dycalendar-body");
+ div.appendChild(table);
+
+ //add body div to container div
+ container.appendChild(div);
+
+ //return container
+ return container;
+ }
+
+ /**
+ * this function will draw Calendar Day
+ *
+ * @param object data this contains the calendar data
+ * @param object option this is the settings object
+ * @return html
+ */
+ function drawCalendarDay(data, option) {
+
+ var
+ div, container, elem;
+
+ //calendar container
+ container = document.createElement("div");
+ container.setAttribute("class", "dycalendar-day-container");
+
+ //-------------------------- Header ------------------
+
+ //header div
+ div = document.createElement("div");
+ div.setAttribute("class", "dycalendar-header");
+
+ //day span
+ elem = document.createElement("span");
+ elem.setAttribute("class", "dycalendar-span-day");
+ if (option.dayformat === "ddd") {
+ elem.innerHTML = dayName.ddd[data.targetedDayIndex];
+ } else if (option.dayformat === "full") {
+ elem.innerHTML = dayName.full[data.targetedDayIndex];
+ }
+
+ //add day span to footer div
+ div.appendChild(elem);
+
+ //add header div to container
+ container.appendChild(div);
+
+ //-------------------------- Body ------------------
+
+ //body div
+ div = document.createElement("div");
+ div.setAttribute("class", "dycalendar-body");
+
+ //date span
+ elem = document.createElement("span");
+ elem.setAttribute("class", "dycalendar-span-date");
+ elem.innerHTML = data.date;
+
+ //add date span to body div
+ div.appendChild(elem);
+
+ //add body div to container
+ container.appendChild(div);
+
+ //-------------------------- Footer ------------------
+
+ //footer div
+ div = document.createElement("div");
+ div.setAttribute("class", "dycalendar-footer");
+
+ //add footer div to container
+ container.appendChild(div);
+
+ //return container
+ return container;
+ }
+
+ /**
+ * this function will extend source object with defaults object.
+ *
+ * @param object source this is the source object
+ * @param object defaults this is the default object
+ * @return object
+ */
+ function extendSource(source, defaults) {
+ var property;
+ for (property in defaults) {
+ if (source.hasOwnProperty(property) === false) {
+ source[property] = defaults[property];
+ }
+ }
+ return source;
+ }
+
+ /**
+ * This function will return calendar detail.
+ *
+ * @param integer year 1900-9999 (optional) if not set will consider
+ * the current year.
+ * @param integer month 0-11 (optional) 0 = Jan, 1 = Feb, ... 11 = Dec,
+ * if not set will consider the current month.
+ * @param integer date 1-31 (optional)
+ * @return boolean|object if error return false, else calendar detail
+ */
+ function getCalendar(year, month, date) {
+
+ var
+ dateObj = new Date(),
+ dateString,
+ result = {},
+ idx;
+
+ if (year < START_YEAR || year > END_YEAR) {
+ global.console.error("Invalid Year");
+ return false;
+ }
+ if (month > 11 || month < 0) {
+ global.console.error("Invalid Month");
+ return false;
+ }
+ if (date > 31 || date < 1) {
+ global.console.error("Invalid Date");
+ return false;
+ }
+
+ result.year = year;
+ result.month = month;
+ result.date = date;
+
+ //today
+ result.today = {};
+ dateString = dateObj.toString().split(" ");
+
+ idx = dayName.ddd.indexOf(dateString[0]);
+ result.today.dayIndex = idx;
+ result.today.dayName = dateString[0];
+ result.today.dayFullName = dayName.full[idx];
+
+ idx = monthName.mmm.indexOf(dateString[1]);
+ result.today.monthIndex = idx;
+ result.today.monthName = dateString[1];
+ result.today.monthNameFull = monthName.full[idx];
+
+ result.today.date = dateObj.getDate();
+
+ result.today.year = dateString[3];
+
+ //get month-year first day
+ dateObj.setDate(1);
+ dateObj.setMonth(month);
+ dateObj.setFullYear(year);
+ dateString = dateObj.toString().split(" ");
+
+ idx = dayName.ddd.indexOf(dateString[0]);
+ result.firstDayIndex = idx;
+ result.firstDayName = dateString[0];
+ result.firstDayFullName = dayName.full[idx];
+
+ idx = monthName.mmm.indexOf(dateString[1]);
+ result.monthIndex = idx;
+ result.monthName = dateString[1];
+ result.monthNameFull = monthName.full[idx];
+
+ //get total days for the month-year
+ dateObj.setFullYear(year);
+ dateObj.setMonth(month + 1);
+ dateObj.setDate(0);
+ result.totaldays = dateObj.getDate();
+
+ //get month-year targeted date
+ dateObj.setFullYear(year);
+ dateObj.setMonth(month);
+ dateObj.setDate(date);
+ dateString = dateObj.toString().split(" ");
+
+ idx = dayName.ddd.indexOf(dateString[0]);
+ result.targetedDayIndex = idx;
+ result.targetedDayName = dateString[0];
+ result.targetedDayFullName = dayName.full[idx];
+
+ return result;
+
+ }
+
+ /**
+ * this function will handle the on click event.
+ */
+ function onClick() {
+
+ document.body.onclick = function(e) {
+
+ //get event object (window.event for IE compatibility)
+ e = global.event || e;
+
+ var
+ //get target dom object reference
+ targetDomObject = e.target || e.srcElement,
+
+ //other variables
+ date, month, year, btn, option, dateObj;
+
+ //prev-next button click
+ //extra checks to make sure object exists and contains the class of interest
+ if ((targetDomObject) && (targetDomObject.classList) && (targetDomObject.classList.contains("dycalendar-prev-next-btn"))) {
+ date = parseInt(targetDomObject.getAttribute("data-date"));
+ month = parseInt(targetDomObject.getAttribute("data-month"));
+ year = parseInt(targetDomObject.getAttribute("data-year"));
+ btn = targetDomObject.getAttribute("data-btn");
+ option = JSON.parse(targetDomObject.parentElement.getAttribute("data-option"));
+
+ if (btn === "prev") {
+ month = month - 1;
+ if (month < 0) {
+ year = year - 1;
+ month = 11;
+ }
+ }
+ else if (btn === "next") {
+ month = month + 1;
+ if (month > 11) {
+ year = year + 1;
+ month = 0;
+ }
+ }
+
+ option.date = date;
+ option.month = month;
+ option.year = year;
+
+ drawCalendar(option);
+ }
+
+ //month click
+ //extra checks to make sure object exists and contains the class of interest
+ if ((targetDomObject) && (targetDomObject.classList) && (targetDomObject.classList.contains("dycalendar-span-month-year"))) {
+ option = JSON.parse(targetDomObject.parentElement.getAttribute("data-option"));
+ dateObj = new Date();
+
+ option.date = dateObj.getDate();
+ option.month = dateObj.getMonth();
+ option.year = dateObj.getFullYear();
+
+ drawCalendar(option);
+ }
+ };
+ }
+
+ //------------------------------ dycalendar.draw() ----------------------
+
+ /**
+ * this function will draw the calendar based on user preferences.
+ *
+ * option = {
+ * target : "#id|.class" //(mandatory) for id use #id | for class use .class
+ * type : "calendar-type" //(optional) values: "day|month" (default "day")
+ * month : "integer" //(optional) value 0-11, where 0 = January, ... 11 = December (default current month)
+ * year : "integer" //(optional) example 1990. (default current year)
+ * date : "integer" //(optional) example 1-31. (default current date)
+ * monthformat : "full" //(optional) values: "mmm|full" (default "full")
+ * dayformat : "full" //(optional) values: "ddd|full" (default "full")
+ * highlighttoday : boolean //(optional) (default false) if true will highlight today's date
+ * highlighttargetdate : boolean //(optional) (default false) if true will highlight targeted date of the month year
+ * prevnextbutton : "hide" //(optional) (default "hide") (values: "show|hide") if set to "show" it will show the nav button (prev|next)
+ * }
+ *
+ * @param object option user preferences
+ * @return boolean true if success, false otherwise
+ */
+ dycalendar.draw = function(option) {
+
+ //check if option is passed or not
+ if (typeof option === "undefined") {
+ global.console.error("Option missing");
+ return false;
+ }
+
+ var
+ self = this, //pointing at dycalendar object
+
+ dateObj = new Date(),
+
+ //default settings
+ defaults = {
+ type: "day",
+ month: dateObj.getMonth(),
+ year: dateObj.getFullYear(),
+ date: dateObj.getDate(),
+ monthformat: "full",
+ dayformat: "full",
+ highlighttoday: false,
+ highlighttargetdate: false,
+ prevnextbutton: "hide"
+ };
+
+ //extend user options with predefined options
+ option = extendSource(option, defaults);
+
+ drawCalendar(option);
+
+ };
+
+ //------------------------------ dycalendar.draw() ends here ------------
+
+ /**
+ * this function will draw the calendar inside the target container.
+ */
+ function drawCalendar(option) {
+
+ var
+ //variables for creating calendar
+ calendar,
+ calendarHTML,
+ targetedElementBy = "id",
+ targetElem,
+
+ //other variables
+ i, len, elemArr;
+
+ //find target element by
+ if (option.target[0] === "#") {
+ targetedElementBy = "id";
+ } else if (option.target[0] === ".") {
+ targetedElementBy = "class";
+ }
+ targetElem = option.target.substring(1);
+
+ //get calendar HTML
+ switch (option.type) {
+ case "day":
+ //get calendar detail
+ calendar = getCalendar(option.year, option.month, option.date);
+ //get calendar html
+ calendarHTML = drawCalendarDay(calendar, option);
+ break;
+
+ case "month":
+ //get calendar detail
+ calendar = getCalendar(option.year, option.month, option.date);
+ //get calendar html
+ calendarHTML = drawCalendarMonthTable(calendar, option);
+ break;
+
+ default:
+ global.console.error("Invalid type");
+ return false;
+ }
+
+ //draw calendar
+ if (targetedElementBy === "id") {
+
+ document.getElementById(targetElem).innerHTML = calendarHTML.outerHTML;
+
+ } else if (targetedElementBy === "class") {
+
+ elemArr = document.getElementsByClassName(targetElem);
+ for (i = 0, len = elemArr.length; i < len; i = i + 1) {
+ elemArr[i].innerHTML = calendarHTML.outerHTML;
+ }
+
+ }
+ }
+
+ //events
+ onClick();
+
+ //attach to global window object
+ global.dycalendar = dycalendar;
+
+}(typeof window !== "undefined" ? window : this));
diff --git a/public/img/icon/ui/dustbin.png b/public/img/icon/ui/dustbin.png
new file mode 100644
index 00000000..7ce89794
Binary files /dev/null and b/public/img/icon/ui/dustbin.png differ
diff --git a/public/img/icon/ui/marker.png b/public/img/icon/ui/marker.png
new file mode 100644
index 00000000..d6c21530
Binary files /dev/null and b/public/img/icon/ui/marker.png differ
diff --git a/public/img/icon/ui/marker1.png b/public/img/icon/ui/marker1.png
new file mode 100644
index 00000000..345fb9db
Binary files /dev/null and b/public/img/icon/ui/marker1.png differ
diff --git a/public/img/icon/unescape.png b/public/img/icon/unescape.png
new file mode 100644
index 00000000..6de85e1e
Binary files /dev/null and b/public/img/icon/unescape.png differ
diff --git a/public/img/icon/win/764.png b/public/img/icon/win/themes.png
similarity index 100%
rename from public/img/icon/win/764.png
rename to public/img/icon/win/themes.png
diff --git a/public/img/store/lucacover.png b/public/img/store/lucacover.png
index 99ef1353..aeb55cd6 100644
Binary files a/public/img/store/lucacover.png and b/public/img/store/lucacover.png differ
diff --git a/public/img/windows11.png b/public/img/windows11.png
new file mode 100644
index 00000000..3d9f2f79
Binary files /dev/null and b/public/img/windows11.png differ
diff --git a/public/index.html b/public/index.html
index b0a858e3..bca08964 100644
--- a/public/index.html
+++ b/public/index.html
@@ -12,9 +12,11 @@