diff --git a/public/assets/css/images.css b/public/assets/css/images.css deleted file mode 100644 index ea8e3f6..0000000 --- a/public/assets/css/images.css +++ /dev/null @@ -1,90 +0,0 @@ -#showSearchDataSection { - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 20px; - padding: 10px; - width: 95%; - margin: auto; -} - -#showSearchDataSection>div { - position: relative; - z-index: -1; - display: flex; -} - -#showSearchDataSection>div>img { - width: 100%; -} - -#showSearchDataSection>div>div { - position: absolute; - bottom: 0; - left: 0; - background-color: #24292f; - color: white; - width: 100%; -} - -#showSearchDataSection>div>div h1 { - text-align: center; - font-size: 18px; -} - -#showSearchDataSection>div>div p { - display: flex; - justify-content: space-between; - padding: 3px 10px; -} - -/* -#showSearchDataSection>div>img:hover { - animation: shake 0.5s; - animation-iteration-count: infinite; -} - -@keyframes shake { - 0% { - transform: translate(1px, 1px) rotate(0deg); - } - - 10% { - transform: translate(-1px, -2px) rotate(-1deg); - } - - 20% { - transform: translate(-3px, 0px) rotate(1deg); - } - - 30% { - transform: translate(3px, 2px) rotate(0deg); - } - - 40% { - transform: translate(1px, -1px) rotate(1deg); - } - - 50% { - transform: translate(-1px, 2px) rotate(-1deg); - } - - 60% { - transform: translate(-3px, 1px) rotate(0deg); - } - - 70% { - transform: translate(3px, 1px) rotate(-1deg); - } - - 80% { - transform: translate(-1px, -1px) rotate(1deg); - } - - 90% { - transform: translate(1px, 2px) rotate(0deg); - } - - 100% { - transform: translate(1px, -2px) rotate(-1deg); - } -} */ \ No newline at end of file diff --git a/public/assets/css/maps.css b/public/assets/css/maps.css deleted file mode 100644 index d9115dc..0000000 --- a/public/assets/css/maps.css +++ /dev/null @@ -1,9 +0,0 @@ -#showMapSection { - width: 100%; - height: 87vh; -} - -#showMapSection iframe { - width: 100%; - height: 87vh; -} \ No newline at end of file diff --git a/public/assets/css/navbar.css b/public/assets/css/navbar.css deleted file mode 100644 index 8e415ca..0000000 --- a/public/assets/css/navbar.css +++ /dev/null @@ -1,127 +0,0 @@ -* { - margin: 0; - box-sizing: border-box; - padding: 0; - font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -::-webkit-scrollbar { - width: 7px; -} - -/* Track */ -::-webkit-scrollbar-track { - background: #ffffff; -} - -/* Handle */ -::-webkit-scrollbar-thumb { - background: rgba(124, 124, 124, 0.959); - border-radius: 12px; -} - -/* Handle on hover */ -::-webkit-scrollbar-thumb:hover { - background: rgba(80, 80, 80, 0.911); - border-radius: 12px; -} - -section { - min-width: 1024px; - max-width: 1680px; -} - -#navbarSection { - width: 100%; - height: 112px; - position: fixed; - top: 0; - left: 0; - background-color: white; - z-index: 5; -} - -#navbarSection>div { - display: flex; - align-items: center; - width: 100%; - padding: 0 25px; -} - -#navbarTopPart { - height: 66px; - justify-content: space-between; -} - -#navbarTopPart>img:first-child { - height: 35px; -} - -#navbarBottomPart { - height: 46px; - border-top: 1px solid gray; - border-bottom: 1px solid gray; -} - -#navbarTopPart form { - display: flex; - align-items: center; - border: 1px solid gray; - height: 40px; - border-radius: 25px; - padding: 0 10px; -} - -#navbarTopPart form img { - cursor: pointer; - width: 20px; - margin: 0 10px; -} - -#navbarTopPart form input[type="submit"] { - background: none; - border: none; - cursor: pointer; - z-index: 1; - font-size: 50px; - border-radius: 50%; - font-weight: 500; - color: #e31b46; - transform: rotate(100deg); - margin: 5px; -} - -#navbarTopPart form input[type="text"] { - font-size: 16px; - padding: 5px 10px; - width: 415px; - border: none; - outline: none; - background: none; - border-right: 1px solid gray; -} - -#navbarBottomPart { - display: flex; - align-items: center; - gap: 20px; - -} - -#navbarBottomPart a { - text-decoration: none; - display: flex; - align-items: center; - gap: 5px; - font-size: 16px; - letter-spacing: 1px; - color: #5f6368; -} - -#navbarBottomPart a svg { - height: 15px; -} \ No newline at end of file diff --git a/public/assets/css/news.css b/public/assets/css/news.css deleted file mode 100644 index b016b08..0000000 --- a/public/assets/css/news.css +++ /dev/null @@ -1,133 +0,0 @@ -#showSearchNewsDataSection { - width: 95%; - margin: auto; - margin-top: 25px; - display: grid; - grid-template-columns: 1fr 3fr; -} - -#searchNews { - height: 600px; - position: sticky; - top: 105px; - left: 0; -} - -#searchNews>div { - display: flex; - flex-direction: column; - width: 90%; - gap: 10px; - margin: 10px auto 40px auto; -} - -#searchNews>div label { - font-size: 16px; - font-weight: 600; -} - -#searchNews>div p { - font-size: 16px; - font-weight: 600; - text-align: center; -} - -#searchNews>div input, -#searchNews>div select { - font-size: 16px; - padding: 5px 10px; - outline: none; - border: 1px solid gray; - border-radius: 5px; -} - -#searchNews>div input[type="submit"] { - background: none; - cursor: pointer; -} - -#showSearchNewsData { - display: grid; - grid-template-columns: repeat(3, 1fr); - gap: 20px; - padding: 0 5px; -} - -#showSearchNewsData>div { - position: relative; - box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px; - overflow: hidden; - border-radius: 5px; - cursor: pointer; -} - -#showSearchNewsData>div img { - width: 100%; - height: 180px; -} - -#showSearchNewsData>div>div>h2 { - font-size: 16px; - font-weight: 600; - letter-spacing: 0.3px; - margin: 2px 5px 5px 5px; -} - -#showSearchNewsData>div>div>p { - font-size: 14px; - letter-spacing: 0.3px; - margin: 2px 5px 5px 5px; - color: gray; -} - -#showSearchNewsData>div>span { - position: absolute; - padding: 3px 6px; - border-radius: 5px; - background-color: #090103; - color: #db0923; - width: auto; - top: 5px; - right: 5px; - font-size: 12px; -} - -#showNewsOneINOneSection { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100vh; - overflow: hidden; - color: white; - display: none; - background-color: #000000cb; - z-index: 6; -} - -#showNewsOneINOneSection>div { - display: grid; - grid-template-columns: 1fr 1fr; - width: 90%; - margin: auto; - gap: 20px; -} - -#showNewsOneINOneSection>p { - font-size: 50px; - padding: 25px; - color: rgb(255, 0, 0); - text-align: center; - cursor: pointer; -} - -#showNewsOneINOneDiv>img { - width: 100%; -} - -#showNewsOneINOneDiv>div>p { - margin: 15px 0; - border-top: 1px solid gray; - border-bottom: 1px solid gray; - padding: 15px 0; -} \ No newline at end of file diff --git a/public/assets/css/style.css b/public/assets/css/style.css deleted file mode 100644 index 00c1e04..0000000 --- a/public/assets/css/style.css +++ /dev/null @@ -1,345 +0,0 @@ -* { - margin: 0; - box-sizing: border-box; - padding: 0; - font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, - Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -body { - background: linear-gradient(0deg, - rgba(254, 254, 254, 1) 0%, - rgba(254, 177, 177, 0.7091211484593838) 55%, - rgba(253, 103, 234, 0.8071603641456583) 81%, - rgba(45, 53, 253, 1) 100%); - height: 100vh; - width: 100%; -} - -#navbarSection { - height: 66px; - width: 100%; - display: flex; - align-items: center; - justify-content: end; - padding: 25px; -} - -#navbarSection a { - text-decoration: none; - color: rgb(255, 255, 255); - font-size: 25px; - font-weight: 700; - margin: 0 10px; -} - -#homePageOfGomasaiSection { - width: 100%; - height: auto; - display: flex; - justify-content: center; - align-items: center; - position: relative; -} - -#homePageOfGomasaiSection form { - position: absolute; - top: 39vh; - left: 30%; - width: 46%; - height: 60px; - display: flex; - align-items: center; -} - -#homePageOfGomasaiSection form input[type="text"] { - width: 70%; - background-color: #c4b7b787; - border: none; - outline: none; - font-size: 20px; - padding: 10px 15px; - margin-right: 9px; - margin-top: 4%; - margin-left: 25%; - border-bottom: 1px solid #e31b46; - border-radius: 15px; - color: black; -} - -::placeholder { - color: black; - opacity: 1; -} - -#homePageOfGomasaiSection form input[type="submit"] { - background: none; - border: none; - cursor: pointer; - z-index: 1; - font-size: 74px; - height: 90px; - width: 90px; - margin-top: 3.5%; - margin-right: -10px; - border-radius: 50%; - font-weight: 600; - color: #e31b46; - transform: rotate(100deg); -} - -#homePageOfGomasaiSection form .backGroundIcon { - position: absolute; - cursor: pointer; - width: 108%; - right: 13px; - top: -41px; - z-index: -1; -} - -#timerCountForStart { - position: absolute; - top: 5vh; - font-size: 36px; - font-weight: 700; - letter-spacing: 1px; -} - -#timerCountForStart div { - display: flex; - align-items: center; - justify-content: center; -} - -#timerCountForStart div>div { - margin: 0 10px; - padding: 20px 10px; -} - -#timerCountForStart h1 { - display: block; - width: 100%; - text-align: center; - text-transform: uppercase; -} - -@media only screen and (min-width: 320px) and (max-width: 612px) { - body { - background-repeat: no-repeat; - background-size: 284%; - background-position: top; - } - - #navbarSection { - height: 48px; - width: 100%; - display: flex; - align-items: center; - justify-content: end; - padding: 12px; - z-index: 2; - } - - #navbarSection>p { - font-size: 38px; - color: blue; - cursor: move; - } - - #navbarSection a { - text-decoration: none; - color: rgb(255, 255, 255); - font-size: 14px; - font-weight: 700; - margin: 0 10px; - } - - #homePageOfGomasaiSection form { - position: absolute; - top: 35vh; - left: 20%; - width: 70%; - /* height: 60px; */ - display: flex; - align-items: center; - } - - #homePageOfGomasaiSection form .backGroundIcon { - width: 70%; - /* right: 13px; */ - top: -160px; - left: 26px; - } - - #homePageOfGomasaiSection form input[type="text"] { - border: none; - outline: none; - font-size: 12px; - padding: 8px 15px; - margin: 0; - margin-left: 10%; - margin-top: -20%; - margin-right: 5px; - border-bottom: 1px solid #e31b46; - border-radius: 15px; - color: black; - } - - #homePageOfGomasaiSection form input[type="submit"] { - z-index: 3; - font-size: 35px; - height: 90px; - width: 90px; - position: absolute; - right: 14%; - margin-top: -20%; - } -} - -@media only screen and (min-width: 613px) and (max-width: 750px) { - body { - background-repeat: no-repeat; - background-size: 150%; - background-position: top; - } - - #navbarSection { - height: 54px; - width: 100%; - padding: 14px; - z-index: 2; - } - - #navbarSection>p { - font-size: 42px; - color: blue; - } - - #navbarSection a { - text-decoration: none; - color: rgb(255, 255, 255); - font-size: 18px; - font-weight: 700; - margin: 0 10px; - } - - #homePageOfGomasaiSection form { - position: absolute; - top: 130px; - left: 25%; - width: 60%; - height: 60px; - } - - #homePageOfGomasaiSection form input[type="text"] { - margin-top: -14%; - margin-left: 28%; - } - - #homePageOfGomasaiSection form input[type="submit"] { - font-size: 50px; - margin-top: -13%; - } -} - -@media only screen and (min-width: 751px) and (max-width: 812px) { - body { - background-repeat: no-repeat; - background-size: 150%; - background-position: top; - } - - #navbarSection { - height: 54px; - width: 100%; - padding: 14px; - z-index: 2; - } - - #navbarSection>p { - font-size: 42px; - color: blue; - } - - #navbarSection a { - text-decoration: none; - color: rgb(255, 255, 255); - font-size: 18px; - font-weight: 700; - margin: 0 10px; - } - - #homePageOfGomasaiSection form { - position: absolute; - top: 130px; - left: 25%; - width: 60%; - height: 60px; - } - - #homePageOfGomasaiSection form input[type="text"] { - margin-top: -8%; - margin-left: 28%; - } - - #homePageOfGomasaiSection form input[type="submit"] { - font-size: 55px; - margin-top: -30px; - } -} - -@media only screen and (min-width: 813px) and (max-width: 1250px) { - body { - background-repeat: no-repeat; - background-size: 130%; - background-position: top; - } - - #navbarSection { - height: 58px; - width: 100%; - display: flex; - align-items: center; - justify-content: end; - padding: 15px; - z-index: 2; - } - - #navbarSection>p { - font-size: 44px; - color: blue; - } - - #navbarSection>div a { - text-decoration: none; - color: blue; - font-size: 16px; - font-weight: 700; - } - - #homePageOfGomasaiSection form { - position: absolute; - /* top: 39vh; */ - top: 150px; - left: 20%; - width: 70%; - height: 60px; - display: flex; - align-items: center; - /* position: relative; */ - } - - #homePageOfGomasaiSection form input[type="text"] { - margin-top: 4%; - margin-left: 27%; - } - - #homePageOfGomasaiSection form input[type="submit"] { - font-size: 50px; - margin-top: 25px; - } -} \ No newline at end of file diff --git a/public/assets/css/translate.css b/public/assets/css/translate.css deleted file mode 100644 index 91dffc0..0000000 --- a/public/assets/css/translate.css +++ /dev/null @@ -1,80 +0,0 @@ -#translatePartSection { - width: 90%; - margin: auto; - display: flex; - gap: 20px; - margin-top: 25px; -} - -#translatePartSection>div { - width: 50%; - display: flex; - flex-direction: column; - gap: 15px; -} - -#translatePartSection>div>select { - font-size: 16px; - padding: 3px 10px; - font-weight: 600; - letter-spacing: 1px; - border-radius: 5px; - border: 1px solid rgb(158, 158, 158); - cursor: pointer; -} - -#translatePartSection>div textarea { - border: 1px solid rgb(158, 158, 158); - border-radius: 5px; - font-size: 16px; - padding: 3px 10px; - letter-spacing: 1px; - color: black; -} - -#translatePartSection>div>div { - display: flex; - justify-content: end; - padding-right: 25px; - gap: 20px; - align-items: center; - margin: auto; -} - -#translatePartSection>div img { - height: 25px; - cursor: pointer; -} - -#translatePartSection>div>div>select { - font-size: 14px; - padding: 3px; - font-weight: 600; - letter-spacing: 1px; - border-radius: 5px; - border: 1px solid rgb(158, 158, 158); - width: 60%; - cursor: pointer; -} - -#translatePartSection>div>div>p { - font-size: 14px; - font-weight: 600; -} - -#translatePartSection>div>div>button { - font-size: 14px; - padding: 3px; - font-weight: 600; - letter-spacing: 1px; - border-radius: 5px; - border: 1px solid rgb(158, 158, 158); - width: 251px; - cursor: pointer; - background: none; - cursor: pointer; -} - -#translatePartSection>div>div>button:hover { - background: lavender; -} \ No newline at end of file diff --git a/public/assets/css/videos.css b/public/assets/css/videos.css deleted file mode 100644 index d1bea37..0000000 --- a/public/assets/css/videos.css +++ /dev/null @@ -1,65 +0,0 @@ -#youtubeVideoList { - width: 95%; - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 5px; - color: black; - margin: auto; - margin-top: 25px; -} - - -.videoItemsCard { - cursor: pointer; - box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; - overflow: hidden; - border-radius: 0 0 9px 9px; -} - -.videoItemsCard>img { - width: 100%; -} - -.videoItemsCard h1 { - margin: 3px 9px; - font-size: 16px; - margin-bottom: 9px; -} - -.videoItemsCard p { - margin: 0 9px; - font-size: 12px; - margin-bottom: 9px; - color: rgb(80, 80, 80); -} - -#youtubeVideoPlayer { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100vh; - overflow: hidden; - color: white; - display: none; - background-color: #888888cb; - z-index: 6; -} - -#youtubeVideoPlayer>div { - display: flex; -} - -#youtubeVideoPlayer>p { - font-size: 50px; - padding: 25px; - color: black; - text-align: center; - cursor: pointer; -} - -#youtubeVideoPlayer iframe { - width: 90%; - height: 60vh; - margin: auto; -} \ No newline at end of file diff --git a/public/assets/css/view.css b/public/assets/css/view.css deleted file mode 100644 index e2cf28f..0000000 --- a/public/assets/css/view.css +++ /dev/null @@ -1,160 +0,0 @@ -#showSearchDataSection { - width: 80%; - margin: auto; -} - -#showrequestDataCount { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - font-family: Google Sans, arial, sans-serif; - padding: 5px 0; - font-size: 13px; - letter-spacing: 1px; - color: #505050; -} - -#showrequestDataCount span { - font-weight: 600; -} - -#searchItemsList { - display: flex; - flex-direction: column; - gap: 20px; - padding: 10px 0; - width: 100%; -} - -#searchItemsList>div { - display: flex; - box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px; - border-radius: 0 8px 8px 0; - overflow: hidden; - justify-content: space-between; - padding: 15px; - margin: 10px; -} - -#searchItemsList>div>div { - padding: 5px 10px 5px 5px; -} - -#searchItemsList>div>div #searchUrl { - display: block; - text-decoration: none; - font-size: 14px; - color: #1d1d1d; - padding-bottom: 5px; -} - -#searchItemsList>div>div #searchTitel { - display: block; - font-size: 20px; - font-weight: 600; - text-decoration: none; - padding-bottom: 5px; -} - -#searchItemsList>div>div #searchTitel:hover { - text-decoration: underline; -} - -#searchItemsList>div>div #searchDescription { - display: block; - text-decoration: none; - font-size: 14px; - color: #4d5156; -} - -#searchItemsList>div>img { - height: 200px; - width: 250px; -} - -.showSearchDataSectionPart { - display: flex; -} - -#masaiAds { - width: 19%; - box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset; -} - -#masaiAds>div { - display: flex; - flex-direction: column; - align-items: center; - padding: 25px 2px; - width: 100%; - position: sticky; - top: 120px; - height: auto; -} - -#masaiAds>div>iframe { - width: 95%; -} - -#masaiAds>div>p { - padding: 10px; - font-size: 12px; - text-align: justify; - letter-spacing: 0.5px; -} - -.primary-btn { - display: inline-block; - font-size: 15px; - font-family: "Play", sans-serif; - font-weight: 700; - padding: 15px 20px 15px; - color: #00bfe7; - text-transform: uppercase; - letter-spacing: 2px; - position: relative; - z-index: 1; - border: none; - background: none; - cursor: pointer; -} - -.primary-btn:hover:before { - height: 100%; - width: 100%; -} - -.primary-btn:hover:after { - height: 100%; - width: 100%; -} - -.primary-btn:before { - position: absolute; - left: 0; - top: 0; - height: 30px; - width: 30px; - border-left: 2px solid #00bfe7; - border-top: 2px solid #00bfe7; - content: ""; - z-index: -1; - -webkit-transition: all, 0.7s; - -o-transition: all, 0.7s; - transition: all, 0.7s; -} - -.primary-btn:after { - position: absolute; - right: 0; - bottom: 0; - height: 30px; - width: 30px; - border-right: 2px solid #00bfe7; - border-bottom: 2px solid #00bfe7; - content: ""; - z-index: -1; - -webkit-transition: all, 0.7s; - -o-transition: all, 0.7s; - transition: all, 0.7s; -} \ No newline at end of file diff --git a/public/assets/img/01.png b/public/assets/img/01.png deleted file mode 100644 index be1a01c..0000000 Binary files a/public/assets/img/01.png and /dev/null differ diff --git a/public/assets/img/favicon.png b/public/assets/img/favicon.png deleted file mode 100644 index 23bb1f1..0000000 Binary files a/public/assets/img/favicon.png and /dev/null differ diff --git a/public/assets/img/gomasai.png b/public/assets/img/gomasai.png deleted file mode 100644 index 93a8ecf..0000000 Binary files a/public/assets/img/gomasai.png and /dev/null differ diff --git a/public/assets/img/gomasai1.png b/public/assets/img/gomasai1.png deleted file mode 100644 index e25e685..0000000 Binary files a/public/assets/img/gomasai1.png and /dev/null differ diff --git a/public/assets/img/masai.jpg b/public/assets/img/masai.jpg deleted file mode 100644 index 23bb1f1..0000000 Binary files a/public/assets/img/masai.jpg and /dev/null differ diff --git a/public/assets/img/micicon.png b/public/assets/img/micicon.png deleted file mode 100644 index c2013eb..0000000 Binary files a/public/assets/img/micicon.png and /dev/null differ diff --git a/public/assets/img/miciconon.png b/public/assets/img/miciconon.png deleted file mode 100644 index 2938c93..0000000 Binary files a/public/assets/img/miciconon.png and /dev/null differ diff --git a/public/assets/img/navbarlogo.png b/public/assets/img/navbarlogo.png deleted file mode 100644 index b6f2424..0000000 Binary files a/public/assets/img/navbarlogo.png and /dev/null differ diff --git a/public/assets/img/sound01.png b/public/assets/img/sound01.png deleted file mode 100644 index b612df4..0000000 Binary files a/public/assets/img/sound01.png and /dev/null differ diff --git a/public/assets/img/sound02.png b/public/assets/img/sound02.png deleted file mode 100644 index 79beff6..0000000 Binary files a/public/assets/img/sound02.png and /dev/null differ diff --git a/public/assets/js/images.js b/public/assets/js/images.js deleted file mode 100644 index bd1858c..0000000 --- a/public/assets/js/images.js +++ /dev/null @@ -1,47 +0,0 @@ -document.getElementById("imagesNavbarIten").style.fill = "#e31b46"; - -let inputValFromHomePage; -document.querySelector("form").addEventListener("submit", (event) => { - event.preventDefault(); - inputValFromHomePage = document.getElementById("searchInputOfView").value; - - // console.log(inputValFromHomePage); - localStorage.setItem("searchValue", inputValFromHomePage); - document.getElementById("searchInputOfView").value = - localStorage.getItem("searchValue"); - findSearchImages(); -}); -findSearchImages(); -async function findSearchImages() { - try { - let res = await fetch("https://api.pexels.com/v1/search?query=people", { - method: "GET", - headers: { - Authorization: - "563492ad6f9170000100000192f32b8405cf4c8892a5a9150ee529f9", - }, - }); - let data = await res.json(); - dishplayData(data.photos); - } catch (error) { - console.log(error); - } -} - -function dishplayData(array) { - document.getElementById("showSearchDataSection").innerHTML = ""; - array.forEach((data) => { - let val = ` - -
-

${data.alt}

-

Id : ${data.photographer_id} PG : ${data.photographer}

-
- `; - let div = document.createElement("div"); - div.innerHTML = val; - document.getElementById("showSearchDataSection").append(div); - }); -} - -// 563492ad6f9170000100000192f32b8405cf4c8892a5a9150ee529f9 diff --git a/public/assets/js/index.js b/public/assets/js/index.js deleted file mode 100644 index 1fa27ef..0000000 --- a/public/assets/js/index.js +++ /dev/null @@ -1,18 +0,0 @@ -let inputValFromHomePage; -document.querySelector("form").addEventListener("submit", (event) => { - event.preventDefault(); - inputValFromHomePage = document.getElementById("searchAnythingForm").value; - - // console.log(inputValFromHomePage); - localStorage.setItem("searchValue", inputValFromHomePage); - document.getElementById("searchAnythingForm").value = ""; - window.open("./view.html", "_Self"); -}); - -// fetch("https://jsonservermasai.herokuapp.com/brands", { -// method: "POST", -// body: JSON.stringify({ -// data:"myData" -// }), -// headers: { "Content-Type": "application/json" }, -// }); diff --git a/public/assets/js/maps.js b/public/assets/js/maps.js deleted file mode 100644 index 4b54996..0000000 --- a/public/assets/js/maps.js +++ /dev/null @@ -1,23 +0,0 @@ -document.getElementById("mapsNavbarIten").style.fill = "#e31b46"; - -let inputValFromHomePage; -document.querySelector("form").addEventListener("submit", (event) => { - event.preventDefault(); - inputValFromHomePage = document.getElementById("searchInputOfView").value; - - // console.log(inputValFromHomePage); - localStorage.setItem("searchValue", inputValFromHomePage); - document.getElementById("searchInputOfView").value = - localStorage.getItem("searchValue"); - dataShow(inputValFromHomePage); -}); - -// https://maps.google.com/maps?q=${cityName}&t=&z=13&ie=UTF8&iwloc=&output=embed - -dataShow(localStorage.getItem("searchValue")); - -function dataShow(val) { - document.getElementById( - "showMapSection" - ).innerHTML = ``; -} diff --git a/public/assets/js/navbar.js b/public/assets/js/navbar.js deleted file mode 100644 index 1460624..0000000 --- a/public/assets/js/navbar.js +++ /dev/null @@ -1,68 +0,0 @@ -document.getElementById("navbarSection").innerHTML = ` - - - `; - -function runSpeechRecognition() { - var output = document.getElementById("searchInputOfView"); - var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition; - var recognition = new SpeechRecognition(); - - recognition.onstart = function () { - document.getElementById("miciconNavbarPart").src = - "./assets/img/miciconon.png"; - }; - - recognition.onspeechend = function () { - document.getElementById("miciconNavbarPart").src = - "./assets/img/micicon.png"; - recognition.stop(); - }; - - recognition.onresult = function (event) { - var transcript = event.results[0][0].transcript; - output.value = transcript; - }; - - recognition.start(); -} - -document.getElementById("searchInputOfView").value = - localStorage.getItem("searchValue"); diff --git a/public/assets/js/news.js b/public/assets/js/news.js deleted file mode 100644 index 850803a..0000000 --- a/public/assets/js/news.js +++ /dev/null @@ -1,109 +0,0 @@ -document.getElementById("newsNavbarIten").style.fill = "#e31b46"; -document.getElementById("queryForFilter").value = - localStorage.getItem("searchValue"); -document.getElementById("searchInputOfView").value = ""; -let inputValFromHomePage; -document.querySelector("form").addEventListener("submit", (event) => { - event.preventDefault(); - inputValFromHomePage = document.getElementById("searchInputOfView").value; - - // console.log(inputValFromHomePage); - localStorage.setItem("searchValue", inputValFromHomePage); - document.getElementById("searchInputOfView").value = - localStorage.getItem("searchValue"); - document.getElementById("queryForFilter").value = - localStorage.getItem("searchValue"); -}); - -showAllTime(); - -function showAllTime() { - let val = `https://gnews.io/api/v4/top-headlines?&token=169817000b938e4a84d28a8d84a20e79&country=in`; - displayData(val); -} - -function showAllFiliterData() { - let val = document.getElementById("queryForFilter").value; - let ext = document.getElementById("ShowErrorMessage"); - if (val == "") { - ext.innerHTML = "The query is required"; - ext.style.color = "red"; - } else { - ext.innerHTML = "Query"; - ext.style.color = "black"; - let from = document.getElementById("fromDateForFilter").value; - let to = document.getElementById("toDateForFilter").value; - let cou = document.getElementById("countryForFilter").value; - let cat = document.getElementById("categoryForFilter").value; - let lan = document.getElementById("languageForFilter").value; - let url = - "https://gnews.io/api/v4/search?token=169817000b938e4a84d28a8d84a20e79"; - if (val != "") { - url += `&q=${val}`; - } - if (from != "") { - url += `&from=${from}`; - } - if (to != "") { - url += `&to=${to}`; - } - if (cou != "") { - url += `&country=${cou}`; - } - if (cat != "") { - url += `&to=${cat}`; - } - if (lan != "") { - url += `&lang=${lan}`; - } - - displayData(url); - } -} - -async function displayData(val) { - try { - let res = await fetch(`${val}`); - let data = await res.json(); - console.log(data); - document.getElementById("showSearchNewsData").innerHTML = ""; - data.articles.forEach((element) => { - let div = document.createElement("div"); - div.addEventListener("click", () => { - document.getElementById("showNewsOneINOneSection").style.display = - "block"; - document.getElementById("showNewsOneINOneDiv").innerHTML = ` - urlToImage -
-

${element.title}

-

${element.content}

-

${element.publishedAt}

- Go to news page -
- - - `; - }); - div.innerHTML = ` - urlToImage -
-

${element.title.slice(0, 70)}...

-

${element.publishedAt}

-
- gnews - `; - - document.getElementById("showSearchNewsData").append(div); - }); - } catch (err) { - console.log(err); - } -} - -function closePlayVideo() { - document.getElementById("showNewsOneINOneSection").style.display = "none"; -} diff --git a/public/assets/js/translate.js b/public/assets/js/translate.js deleted file mode 100644 index 8bd4471..0000000 --- a/public/assets/js/translate.js +++ /dev/null @@ -1,88 +0,0 @@ -document.getElementById("translateNavbarIten").style.fill = "#e31b46"; - -document.getElementById("searchInputOfView").value = ""; - -function translateInputStart() { - var output = document.getElementById("noteInput_textarea"); - var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition; - var recognition = new SpeechRecognition(); - - recognition.onstart = function () { - document.getElementById("noteInput_textarea_Img").src = - "./assets/img/miciconon.png"; - }; - - recognition.onspeechend = function () { - document.getElementById("noteInput_textarea_Img").src = - "./assets/img/micicon.png"; - recognition.stop(); - }; - - recognition.onresult = function (event) { - var transcript = event.results[0][0].transcript; - output.value += transcript + " "; - }; - - recognition.start(); -} - -var txtInput = document.querySelector("#noteInput_textarea"); -var voiceList = document.querySelector("#voiceList"); -var btnSpeak = document.querySelector("#notePlay_textarea_Img"); -var synth = window.speechSynthesis; -var voices = []; - -PopulateVoices(); -if (speechSynthesis !== undefined) { - speechSynthesis.onvoiceschanged = PopulateVoices; -} - -btnSpeak.addEventListener("click", () => { - var toSpeak = new SpeechSynthesisUtterance(txtInput.value); - var selectedVoiceName = - voiceList.selectedOptions[0].getAttribute("data-name"); - voices.forEach((voice) => { - if (voice.name === selectedVoiceName) { - toSpeak.voice = voice; - } - }); - synth.speak(toSpeak); -}); - -function PopulateVoices() { - voices = synth.getVoices(); - var selectedIndex = voiceList.selectedIndex < 0 ? 0 : voiceList.selectedIndex; - voiceList.innerHTML = ""; - voices.forEach((voice) => { - var listItem = document.createElement("option"); - listItem.textContent = voice.name; - listItem.setAttribute("data-lang", voice.lang); - listItem.setAttribute("data-name", voice.name); - voiceList.appendChild(listItem); - }); - voiceList.selectedIndex = selectedIndex; -} - -async function changeWord() { - try { - let chLuc = document.getElementById("translateOutLuc").value; - let data = document.getElementById("noteInput_textarea"); - console.log(data.value); - const res = await fetch("https://libretranslate.de/translate", { - method: "POST", - body: JSON.stringify({ - q: data.value, - source: "en", - target: chLuc, - format: "text", - }), - headers: { "Content-Type": "application/json" }, - }); - let outputText = await res.json(); - - document.getElementById("noteOutput_textarea").textContent = - outputText.translatedText; - } catch (err) { - console.log(err); - } -} diff --git a/public/assets/js/videos.js b/public/assets/js/videos.js deleted file mode 100644 index f39dbac..0000000 --- a/public/assets/js/videos.js +++ /dev/null @@ -1,61 +0,0 @@ -document.getElementById("videosNavbarIten").style.fill = "#e31b46"; - -let inputValFromHomePage; -document.querySelector("form").addEventListener("submit", (event) => { - event.preventDefault(); - inputValFromHomePage = document.getElementById("searchInputOfView").value; - - // console.log(inputValFromHomePage); - localStorage.setItem("searchValue", inputValFromHomePage); - document.getElementById("searchInputOfView").value = - localStorage.getItem("searchValue"); - - getMyDataFromApi(document.getElementById("searchInputOfView").value); -}); - -getMyDataFromApi(document.getElementById("searchInputOfView").value); -async function getMyDataFromApi(titleValue) { - try { - let key = "AIzaSyBgZZ0wK_-4WDNTaYJLOlDQDFN-CMdpJ_Q"; - let url = ` https://youtube.googleapis.com/youtube/v3/search?type=video&part=snippet&maxResults=12&q=${titleValue}&key=${key}`; - let res = await fetch(url); - let data = await res.json(); - // console.log(data); - displayonData(data.items); - } catch (err) { - console.log(err); - } -} - -function displayonData(items) { - document.getElementById("youtubeVideoList").innerHTML = ""; - items.map((ele) => { - let ImgUrl = ele.snippet.thumbnails.high.url; - let VideoTitle = ele.snippet.title; - const viewData = ` - -
-

${VideoTitle}...

-

${ele.snippet.channelTitle}

-

${ele.snippet.publishTime}

-
- `; - let div = document.createElement("div"); - div.setAttribute("class", "videoItemsCard"); - div.setAttribute("onclick", `displayMyVideo('${ele.id.videoId}')`); - div.innerHTML = viewData; - document.getElementById("youtubeVideoList").append(div); - }); -} - -function displayMyVideo(videoNameId) { - document.getElementById("youtubeVideoPlayer").style.display = "block"; - document - .getElementById("myPlayVideo") - .setAttribute("src", `https://www.youtube.com/embed/${videoNameId}`); -} - -function closePlayVideo() { - document.getElementById("youtubeVideoPlayer").style.display = "none"; - document.getElementById("myPlayVideo").setAttribute("src", ""); -} diff --git a/public/assets/js/view.js b/public/assets/js/view.js deleted file mode 100644 index 560f2fd..0000000 --- a/public/assets/js/view.js +++ /dev/null @@ -1,313 +0,0 @@ -document.getElementById("allNavbarIten").style.fill = "#e31b46"; - -let inputValFromHomePage; -document.querySelector("form").addEventListener("submit", (event) => { - event.preventDefault(); - inputValFromHomePage = document.getElementById("searchInputOfView").value; - - // console.log(inputValFromHomePage); - localStorage.setItem("searchValue", inputValFromHomePage); - document.getElementById("searchInputOfView").value = - localStorage.getItem("searchValue"); - displayData(); -}); - -displayData(); -const myArray = [ - { - titel: "Masai School - The Coding School that cares about you ...", - description: - "Become a Software Developer in 7 months with Masai School. Pay Rs. 0 until you get a job of Rs. 5 LPA or more.Attend live coding classes from anywhere in ...", - subDescription: "Full Stack Web Development", - wesiteUrl: "https://www.masaischool.com", - urlLinkPath: "https://www.masaischool.com", - keywords: "", - id: 1, - }, - { - titel: "Get Personalized Handmade Gifts by Stoned Santa", - description: - "Our Art Experts will help you curate the 'Just Perfect' gift for you and your loved ones by speaking with you and understanding your requirements.", - subDescription: - "Stoned Santa is an IIM-Bangalore incubated art startup where ...", - wesiteUrl: "https://www.stonedsanta.in", - urlLinkPath: "https://www.stonedsanta.in", - keywords: "", - id: 2, - }, - { - titel: "Google", - description: - "Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking ...", - subDescription: - "Search for terms in the whole page, page title, or web address, or ...", - wesiteUrl: "https://www.google.co.in", - urlLinkPath: "https://www.google.co.in", - keywords: "", - id: 3, - }, - { - titel: "Yahoo India", - description: - "As of August 26th, 2021 Yahoo India will no longer be publishing content. Your Yahoo Account, Mail and Search experiences will not be affected in any way ...", - subDescription: - "Best-in-class Yahoo Mail, breaking local, national and global news ...", - wesiteUrl: "https://in.yahoo.com", - urlLinkPath: "https://in.yahoo.com", - keywords: "", - id: 4, - }, - { - titel: "Log into Facebook", - description: - "Log into Facebook to start sharing and connecting with your friends, family, ...", - subDescription: - "Internet company Community Values We believe people can do more together than alone and that ...", - wesiteUrl: "https://www.facebook.com", - urlLinkPath: "https://www.facebook.com › login", - keywords: "", - id: 5, - }, - { - titel: "YouTube", - description: - " Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.", - subDescription: "Share your videos with friends, family, and the world.", - wesiteUrl: "https://www.youtube.com", - urlLinkPath: "https://www.youtube.com", - keywords: "", - id: 6, - }, - { - titel: "Wikipedia", - description: - "Wikipedia is a free online encyclopedia, created and edited by volunteers around the world and hosted by the Wikimedia Foundation.", - subDescription: "Thor: Love and Thunder ·India · Elon Musk · Nope (film)", - wesiteUrl: "https://www.wikipedia.org", - urlLinkPath: "https://www.wikipedia.org", - keywords: "", - id: 7, - }, - { - titel: "National Informatics Centre | Govt. of India", - description: - "NIC endeavours to cater to ICT needs at all levels of governance for making last mile delivery of Government services ·", - subDescription: - "Data Centre - Nicnet - National Cloud - Webcast - NKN - ..", - wesiteUrl: "https://www.nic.in", - urlLinkPath: "https://www.nic.in", - keywords: "", - id: 8, - }, - { - titel: "Ask.com - What's Your Question?", - description: - "Answers you want. Content for days. What more could you Ask for? ... What more can you ask for? Sign up for the Ask newsletter. Email Address.", - subDescription: "", - wesiteUrl: "https://www.ask.com", - urlLinkPath: "https://www.ask.com", - keywords: "", - id: 9, - }, - { - titel: "IRCTC Next Generation eTicketing System", - description: - "IRCTC Next Generation eTicketing System. ... New IRCTC launches ticket booking on ASK DISHA 2.0 Click here. Indian Railways have started provisioning of ...", - subDescription: - "One step login to existing users; Search and Book train tickets ...", - wesiteUrl: "https://www.irctc.co.in", - urlLinkPath: "https://www.irctc.co.in", - keywords: "", - id: 10, - }, - { - titel: "Indiatimes.com: Trending stories on Indian Lifestyle, Culture ...", - description: - "Indiatimes.com brings you the news, articles, stories and videos on entertainment, latest lifestyle, culture and new technologies emerging worldwide.", - subDescription: - "Get the latest news from India, national news, business news ...", - wesiteUrl: "https://www.indiatimes.com", - urlLinkPath: "https://www.indiatimes.com", - keywords: "", - id: 11, - }, - { - titel: "Naukri.com: Jobs - Recruitment - Job Search - Employment ...", - description: - "Connect with 20000+ employers. Apply to millions of job opportunities across top companies, industries and locations on India's No.1 jo site. Apply online.", - subDescription: - "New to Naukri? checkOne click apply using naukri profile ...", - wesiteUrl: "https://www.naukri.com", - urlLinkPath: "https://www.naukri.com", - keywords: "", - id: 12, - }, - { - titel: "Bing", - description: - "Bing helps you turn information into action, making it faster and easier to go from searching to doing.", - subDescription: - "Bing helps you turn information into action, making it faster and ...", - wesiteUrl: "https://www.bing.com", - urlLinkPath: "https://www.bing.com", - keywords: "", - id: 13, - }, - { - titel: "Internet for people, not profit — Mozilla", - description: - "Mozilla is the not-for-profit behind the lightning fast Firefox browser. We put people over profit to give everyone more power online.", - subDescription: - "Get Firefox, a free web browser backed by Mozilla, a non-profit ...", - wesiteUrl: "https://www.mozilla.org", - urlLinkPath: "https://www.mozilla.org › en-US", - keywords: "", - id: 14, - }, - { - titel: "Free Classified Ads in India, Post Ads Online | Quikr India", - description: - "Widely known as India's no. 1 online classifieds platform, Quikr is all about you. Our aim is to empower every person in the country to independently connect ...", - subDescription: - "QuikrJobs offers the largest platform for job seekers. You ...", - wesiteUrl: "https://www.quikr.com", - urlLinkPath: "https://www.quikr.com", - keywords: "", - id: 15, - }, - { - titel: "WordPress.com: Fast, Secure Managed WordPress Hosting", - description: - "Create a free website or build a blog with ease on WordPress.com. Dozens of free, customizable, mobile-ready designs and themes. Free hosting and support.", - subDescription: - "If you continue with Google or Apple and don't already have a ...", - wesiteUrl: "https://wordpress.com", - urlLinkPath: "https://wordpress.com", - keywords: "", - id: 16, - }, - { - titel: "Microsoft – Cloud, Computers, Apps & Gaming", - description: - "Explore Microsoft products and services for your home or business. Shop Surface, Microsoft 365, Xbox, Windows, Azure and more.", - subDescription: - "Hear from Microsoft employees. Lauren, Senior Software ...", - wesiteUrl: "https://www.microsoft.com", - urlLinkPath: "https://www.microsoft.com › en-in", - keywords: "", - id: 17, - }, - { - titel: "MakeMyTrip - #1 Travel Website 50% OFF on Hotels, Flights ...", - description: - "Use coupon code MMTDEAL to get Upto 5000 Off on Domestic flight booking Find best deals at MakeMyTrip for ✓ Flight Tickets, Hotels, Holiday Packages, ...", - subDescription: - "International Flights - Domestic Flight Offers - Delhi to Goa Flights", - wesiteUrl: "https://www.makemytrip.com", - urlLinkPath: "https://www.makemytrip.com", - keywords: "", - id: 18, - }, - { - titel: "Log in to Twitter", - description: - "Log in to Twitter to see the latest. Join the conversation, follow accounts, see your Home Timeline, and catch up on Tweets from the people you know.", - subDescription: "", - wesiteUrl: "https://twitter.com", - urlLinkPath: "https://twitter.com › login", - keywords: "", - id: 19, - }, - { - titel: "Bharat Sanchar Nigam Limited", - description: - "BSNL offers Spaces for Rent List of vacant spaces. Amazing Project Mobile Explore various Offers for Mobile. Amazing Project Broadband Explore various offers ...", - subDescription: - "BSNL Selfcare · Mobile Services · Broadband Plans · Rajasthan", - wesiteUrl: "https://www.bsnl.co.in", - urlLinkPath: "https://www.bsnl.co.in", - keywords: "", - id: 20, - }, - { - titel: "LinkedIn India: Log In or Sign Up", - description: - "750 million+ members | Manage your professional identity. Build and engage with your professional network. Access knowledge, insights and opportunities.", - subDescription: - "Job Search · 7,000+ Human Resources... · 55,000+ Finance jobs in India...", - wesiteUrl: "https://in.linkedin.com", - urlLinkPath: "https://in.linkedin.com", - keywords: "", - id: 21, - }, - { - titel: "BillDesk", - description: - "BillDesk is a leading BBPOU in the Bharat Bill Payment System (BBPS). Know More. Recurring Payment Solutions. Collect Payments. Always. BillDesk Recurring ...", - subDescription: "Online Electricity Bill Payment ", - wesiteUrl: "https://www.billdesk.com", - urlLinkPath: "https://www.billdesk.com", - keywords: "", - id: 22, - }, - { - titel: "Yatra.com: Flight, Cheap Air Tickets , Hotels, Holiday, Trains ...", - description: - "On Yatra.com, you can tailor your trip from end-to-end by scouring suitable flights and making your flight booking before proceeding with your hotel ...", - subDescription: - "Yatra gives you the flexibility of safeguarding your international ...", - wesiteUrl: "https://www.yatra.com", - urlLinkPath: "https://www.yatra.com", - keywords: "", - id: 23, - }, - { - titel: - "OLX - Free classifieds in India, Buy and Sell for free anywhere ...", - description: - "OLX has 1000's ads available in India of goods for sale from cars, furniture, electronics to jobs and services listings. Buy or sell something today!", - subDescription: "", - wesiteUrl: "https://www.olx.in", - urlLinkPath: "https://www.olx.in", - keywords: "", - id: 24, - }, -]; -async function displayData() { - try { - let val = localStorage.getItem("searchValue"); - let res = await fetch( - `https://gomasai.herokuapp.com/gomasai?q=${val}&_page=${1}&_limit=${15}` - ); - let data = await res.json(); - document.getElementById("showSearchDataSection").innerHTML = ` -
- `; - - if (data.length < 15) { - let newLangth = 15 - data.length; - for (let i = 0; i < newLangth; i++) { - data.push(myArray[i]); - } - } - data.forEach((element) => { - let div = document.createElement("div"); - div.innerHTML = ` -
- ${ - element.urlLinkPath - } - ${ - element.titel - } -

${element.description.slice(0, 150)}...

-

${element.subDescription.slice(0, 150)}

-
- `; - - document.getElementById("searchItemsList").append(div); - }); - } catch (error) { - console.log(error); - } -} diff --git a/public/favicon.png b/public/favicon.png deleted file mode 100644 index 23bb1f1..0000000 Binary files a/public/favicon.png and /dev/null differ diff --git a/public/images.html b/public/images.html deleted file mode 100644 index 3fa291e..0000000 --- a/public/images.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - Images || Gomasai - - - - - - -
-
- -
- - - - - \ No newline at end of file diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 657ae44..0000000 --- a/public/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - Gomasai || Search or type a URL - - - - -
- - - \ No newline at end of file diff --git a/public/maps.html b/public/maps.html deleted file mode 100644 index 44ea403..0000000 --- a/public/maps.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - Maps || Gomasai - - - - - - -
-
- - - - - - \ No newline at end of file diff --git a/public/news.html b/public/news.html deleted file mode 100644 index bd15f65..0000000 --- a/public/news.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - News || Gomasai - - - - - - -
-
-
-
- - - - - - - - - - - - - - - - -
-
-
-
-
-
-

-
-
-
- - - - - \ No newline at end of file diff --git a/public/translate.html b/public/translate.html deleted file mode 100644 index c5a4362..0000000 --- a/public/translate.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - Translate || Gomasai - - - - - - -
- -
-
- - -
-

Select Voice:

- - - -
-
-

- -
- - -
- - -
-
-
- - - - - - \ No newline at end of file diff --git a/public/videos.html b/public/videos.html deleted file mode 100644 index d17db49..0000000 --- a/public/videos.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - Video || Gomasai - - - - - - -
-
-
-

-
- -
-
- - - - - \ No newline at end of file diff --git a/public/view.html b/public/view.html deleted file mode 100644 index c6df3e2..0000000 --- a/public/view.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - Search || Gomasai - - - - - - -
-
-
-
-
- - -

Masai School

-

Become a Software Developer in 7 months with Masai School. Pay Rs. 0 until you get a job of Rs. 5 LPA - or more. Attend live coding classes from anywhere in India.

- - Join Masai School -
-
-
- - - - - \ No newline at end of file