added theme switcher to all pages
This commit is contained in:
parent
232b09a445
commit
65b7ce6763
53
css/main.css
53
css/main.css
@ -284,10 +284,11 @@ ul .balance:last-of-type {
|
||||
}
|
||||
|
||||
.header {
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
padding: 2em 0;
|
||||
justify-items: center;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#logo {
|
||||
@ -298,6 +299,7 @@ ul .balance:last-of-type {
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#logo h4 {
|
||||
@ -318,9 +320,13 @@ ul .balance:last-of-type {
|
||||
#first_section {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
-ms-grid-rows: auto 1fr auto;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
min-height: 100vh;
|
||||
-ms-grid-rows: 1fr auto;
|
||||
grid-template-rows: 1fr auto;
|
||||
min-height: calc(100vh - 8rem);
|
||||
}
|
||||
|
||||
header.grid-2 {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
#search_page {
|
||||
@ -719,6 +725,14 @@ ul .balance:last-of-type {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
#main_header {
|
||||
height: 8rem;
|
||||
}
|
||||
|
||||
#main_header > .flex:first-of-type {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
#page_header {
|
||||
padding: 1rem 0;
|
||||
-webkit-box-align: center;
|
||||
@ -747,7 +761,7 @@ ul .balance:last-of-type {
|
||||
}
|
||||
|
||||
#page_header #secondary_search_btn {
|
||||
margin-left: 1rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.page {
|
||||
@ -932,10 +946,6 @@ p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#homepage {
|
||||
margin: 0 1.5rem;
|
||||
}
|
||||
|
||||
@-webkit-keyframes fade {
|
||||
from {
|
||||
opacity: 0;
|
||||
@ -1061,6 +1071,7 @@ p {
|
||||
gap: 1rem;
|
||||
-ms-grid-columns: (minmax(12rem, 1fr))[auto-fill];
|
||||
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
#all_blocks_page .card, #top_blocks_container .card, #token_balance_container .card {
|
||||
@ -1073,9 +1084,6 @@ p {
|
||||
|
||||
@media only screen and (min-width: 640px) {
|
||||
.margin, .page {
|
||||
margin: 0 6vw;
|
||||
}
|
||||
#homepage {
|
||||
margin: 0 4vw;
|
||||
}
|
||||
.input {
|
||||
@ -1145,10 +1153,7 @@ p {
|
||||
|
||||
@media only screen and (min-width: 1280px) {
|
||||
.margin, .page {
|
||||
margin: 0 16vw;
|
||||
}
|
||||
#homepage {
|
||||
margin: 0 8vw;
|
||||
margin: 0 12vw;
|
||||
}
|
||||
.input {
|
||||
width: 50% !important;
|
||||
@ -1185,10 +1190,7 @@ p {
|
||||
font-size: 24px;
|
||||
}
|
||||
.margin, .page {
|
||||
margin: 0 26vw;
|
||||
}
|
||||
#homepage {
|
||||
margin: 0 12vw;
|
||||
margin: 0 16vw;
|
||||
}
|
||||
#search_page {
|
||||
padding: 1.5rem 12vw;
|
||||
@ -1203,10 +1205,7 @@ p {
|
||||
font-size: 24px;
|
||||
}
|
||||
.margin, .page {
|
||||
margin: 0 32vw;
|
||||
}
|
||||
#homepage {
|
||||
margin: 0 24vw;
|
||||
margin: 0 26vw;
|
||||
}
|
||||
#search_page {
|
||||
padding: 1.5rem 24vw;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -208,13 +208,14 @@ ul{
|
||||
}
|
||||
}
|
||||
.header{
|
||||
align-items: center;
|
||||
padding: 2em 0;
|
||||
justify-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
#logo{
|
||||
display: inline-flex;
|
||||
letter-spacing: 0.1em;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
h4{
|
||||
font-weight: 400;
|
||||
}
|
||||
@ -230,8 +231,11 @@ ul{
|
||||
}
|
||||
#first_section{
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
min-height: 100vh;
|
||||
grid-template-rows: 1fr auto;
|
||||
min-height: calc(100vh - 8rem);
|
||||
}
|
||||
header.grid-2{
|
||||
margin-top: 2rem;
|
||||
}
|
||||
#search_page{
|
||||
position: fixed;
|
||||
@ -478,6 +482,12 @@ ul{
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
#main_header{
|
||||
& > .flex:first-of-type{
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
height: 8rem;
|
||||
}
|
||||
#page_header{
|
||||
padding: 1rem 0;
|
||||
align-items: center;
|
||||
@ -498,7 +508,7 @@ ul{
|
||||
padding: 0.4rem 0 0.4rem 0.4rem;
|
||||
}
|
||||
#secondary_search_btn{
|
||||
margin-left: 1rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
.page{
|
||||
@ -634,9 +644,6 @@ p{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
#homepage{
|
||||
margin: 0 1.5rem;
|
||||
}
|
||||
@keyframes fade{
|
||||
from{
|
||||
opacity: 0;
|
||||
@ -712,6 +719,7 @@ p{
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
|
||||
margin-top: 1rem;
|
||||
.card{
|
||||
margin: 0;
|
||||
}
|
||||
@ -721,9 +729,6 @@ p{
|
||||
}
|
||||
@media only screen and (min-width: 640px){
|
||||
.margin, .page{
|
||||
margin: 0 6vw;
|
||||
}
|
||||
#homepage{
|
||||
margin: 0 4vw;
|
||||
}
|
||||
.input{
|
||||
@ -784,10 +789,7 @@ p{
|
||||
}
|
||||
@media only screen and (min-width: 1280px){
|
||||
.margin, .page{
|
||||
margin: 0 16vw;
|
||||
}
|
||||
#homepage{
|
||||
margin: 0 8vw;
|
||||
margin: 0 12vw;
|
||||
}
|
||||
.input{
|
||||
width: 50% !important;
|
||||
@ -817,10 +819,7 @@ p{
|
||||
font-size: 24px;
|
||||
}
|
||||
.margin, .page{
|
||||
margin: 0 26vw;
|
||||
}
|
||||
#homepage{
|
||||
margin: 0 12vw;
|
||||
margin: 0 16vw;
|
||||
}
|
||||
#search_page{
|
||||
padding: 1.5rem 12vw;
|
||||
@ -834,10 +833,7 @@ p{
|
||||
font-size: 24px;
|
||||
}
|
||||
.margin, .page{
|
||||
margin: 0 32vw;
|
||||
}
|
||||
#homepage{
|
||||
margin: 0 24vw;
|
||||
margin: 0 26vw;
|
||||
}
|
||||
#search_page{
|
||||
padding: 1.5rem 24vw;
|
||||
|
||||
103
index.html
103
index.html
@ -39,43 +39,56 @@
|
||||
<ul id="suggestions"></ul>
|
||||
</label>
|
||||
</div>
|
||||
<header id="page_header" class="flex margin">
|
||||
<svg class="icon" onclick="history.back()" viewBox="0 0 64 64">
|
||||
<title>back_arrow</title>
|
||||
<polyline points="25.97 6.24 0.5 32.06 25.92 57.83" />
|
||||
<line x1="20" y1="32" x2="64" y2="32" />
|
||||
</svg>
|
||||
<h3 id="page_title"></h3>
|
||||
<label class="toggle" style="margin-left: auto" title="Change theme">
|
||||
<input type="checkbox" name="theme toggle" id="theme_toggle">
|
||||
<div class="switch">
|
||||
<svg class="circle" viewBox="0 0 64 64">
|
||||
<title>dark theme</title>
|
||||
<header id="main_header" class="flex margin header">
|
||||
<div class="flex">
|
||||
<div id="logo">
|
||||
<svg id="main_logo" viewBox="0 0 27.25 32">
|
||||
<title>RanchiMall</title>
|
||||
<path
|
||||
d="M48.25,45.45A27.26,27.26,0,0,1,20.82,18.37,26.75,26.75,0,0,1,27.47.71a31.71,31.71,0,0,0-27,31.2,31.8,31.8,0,0,0,32,31.59A32,32,0,0,0,63.12,41.12,27.59,27.59,0,0,1,48.25,45.45Z"
|
||||
transform="translate(0 0)" />
|
||||
</svg>
|
||||
<svg class="circle" viewBox="0 0 64 64">
|
||||
<title>light theme</title>
|
||||
<circle cx="32" cy="32" r="13.9" />
|
||||
<line x1="32" y1="6.86" x2="32" />
|
||||
<line x1="32" y1="64" x2="32" y2="57.14" />
|
||||
<line x1="57.14" y1="32" x2="64" y2="32" />
|
||||
<line y1="32" x2="6.86" y2="32" />
|
||||
<line x1="49.78" y1="14.22" x2="54.63" y2="9.37" />
|
||||
<line x1="9.37" y1="54.63" x2="14.22" y2="49.78" />
|
||||
<line x1="49.78" y1="49.78" x2="54.63" y2="54.63" />
|
||||
<line x1="9.37" y1="9.37" x2="14.22" y2="14.22" />
|
||||
d="M27.14,30.86c-.74-2.48-3-4.36-8.25-6.94a20,20,0,0,1-4.2-2.49,6,6,0,0,1-1.25-1.67,4,4,0,0,1,0-2.26c.37-1.08.79-1.57,3.89-4.55a11.66,11.66,0,0,0,3.34-4.67,6.54,6.54,0,0,0,.05-2.82C20,3.6,18.58,2,16.16.49c-.89-.56-1.29-.64-1.3-.24a3,3,0,0,1-.3.72l-.3.55L13.42.94C13,.62,12.4.26,12.19.15c-.4-.2-.73-.18-.72.05a9.39,9.39,0,0,1-.61,1.33s-.14,0-.27-.13C8.76.09,8-.27,8,.23A11.73,11.73,0,0,1,6.76,2.6C4.81,5.87,2.83,7.49.77,7.49c-.89,0-.88,0-.61,1,.22.85.33.92,1.09.69A5.29,5.29,0,0,0,3,8.33c.23-.17.45-.29.49-.26a2,2,0,0,1,.22.63A1.31,1.31,0,0,0,4,9.34a5.62,5.62,0,0,0,2.27-.87L7,8l.13.55c.19.74.32.82,1,.65a7.06,7.06,0,0,0,3.46-2.47l.6-.71-.06.64c-.17,1.63-1.3,3.42-3.39,5.42L6.73,14c-3.21,3.06-3,5.59.6,8a46.77,46.77,0,0,0,4.6,2.41c.28.13,1,.52,1.59.87,3.31,2,4.95,3.92,4.95,5.93a2.49,2.49,0,0,0,.07.77h0c.09.09,0,.1.9-.14a2.61,2.61,0,0,0,.83-.32,3.69,3.69,0,0,0-.55-1.83A11.14,11.14,0,0,0,17,26.81a35.7,35.7,0,0,0-5.1-2.91C9.37,22.64,8.38,22,7.52,21.17a3.53,3.53,0,0,1-1.18-2.48c0-1.38.71-2.58,2.5-4.23,2.84-2.6,3.92-3.91,4.67-5.65a3.64,3.64,0,0,0,.42-2A3.37,3.37,0,0,0,13.61,5l-.32-.74.29-.48c.17-.27.37-.63.46-.8l.15-.3.44.64a5.92,5.92,0,0,1,1,2.81,5.86,5.86,0,0,1-.42,1.94c0,.12-.12.3-.15.4a9.49,9.49,0,0,1-.67,1.1,28,28,0,0,1-4,4.29C8.62,15.49,8.05,16.44,8,17.78a3.28,3.28,0,0,0,1.11,2.76c.95,1,2.07,1.74,5.25,3.32,3.64,1.82,5.22,2.9,6.41,4.38A4.78,4.78,0,0,1,21.94,31a3.21,3.21,0,0,0,.14.92,1.06,1.06,0,0,0,.43-.05l.83-.22.46-.12-.06-.46c-.21-1.53-1.62-3.25-3.94-4.8a37.57,37.57,0,0,0-5.22-2.82A13.36,13.36,0,0,1,11,21.19a3.36,3.36,0,0,1-.8-4.19c.41-.85.83-1.31,3.77-4.15,2.39-2.31,3.43-4.13,3.43-6a5.85,5.85,0,0,0-2.08-4.29c-.23-.21-.44-.43-.65-.65A2.5,2.5,0,0,1,15.27.69a10.6,10.6,0,0,1,2.91,2.78A4.16,4.16,0,0,1,19,6.16a4.91,4.91,0,0,1-.87,3c-.71,1.22-1.26,1.82-4.27,4.67a9.47,9.47,0,0,0-2.07,2.6,2.76,2.76,0,0,0-.33,1.54,2.76,2.76,0,0,0,.29,1.47c.57,1.21,2.23,2.55,4.65,3.73a32.41,32.41,0,0,1,5.82,3.24c2.16,1.6,3.2,3.16,3.2,4.8a1.94,1.94,0,0,0,.09.76,4.54,4.54,0,0,0,1.66-.4C27.29,31.42,27.29,31.37,27.14,30.86ZM6.1,7h0a3.77,3.77,0,0,1-1.46.45L4,7.51l.68-.83a25.09,25.09,0,0,0,3-4.82A12,12,0,0,1,8.28.76c.11-.12.77.32,1.53,1l.63.58-.57.84A10.34,10.34,0,0,1,6.1,7Zm5.71-1.78A9.77,9.77,0,0,1,9.24,7.18h0a5.25,5.25,0,0,1-1.17.28l-.58,0,.65-.78a21.29,21.29,0,0,0,2.1-3.12c.22-.41.42-.76.44-.79s.5.43.9,1.24L12,5ZM13.41,3a2.84,2.84,0,0,1-.45.64,11,11,0,0,1-.9-.91l-.84-.9.19-.45c.34-.79.39-.8,1-.31A9.4,9.4,0,0,1,13.8,2.33q-.18.34-.39.69Z" />
|
||||
</svg>
|
||||
<h4>RanchiMall</h4>
|
||||
</div>
|
||||
</label>
|
||||
<svg id="secondary_search_btn" class="icon hover" viewBox="0 0 64 64">
|
||||
<title>
|
||||
search for block, transactions, address, token or contract
|
||||
</title>
|
||||
<circle cx="25.34" cy="25.34" r="24.84" />
|
||||
<line x1="63.65" y1="63.65" x2="42.91" y2="42.91" />
|
||||
</svg>
|
||||
<label class="toggle" style="margin-left: auto" title="Change theme">
|
||||
<input type="checkbox" name="theme toggle" id="theme_toggle">
|
||||
<div class="switch">
|
||||
<svg class="circle" viewBox="0 0 64 64">
|
||||
<title>dark theme</title>
|
||||
<path
|
||||
d="M48.25,45.45A27.26,27.26,0,0,1,20.82,18.37,26.75,26.75,0,0,1,27.47.71a31.71,31.71,0,0,0-27,31.2,31.8,31.8,0,0,0,32,31.59A32,32,0,0,0,63.12,41.12,27.59,27.59,0,0,1,48.25,45.45Z"
|
||||
transform="translate(0 0)" />
|
||||
</svg>
|
||||
<svg class="circle" viewBox="0 0 64 64">
|
||||
<title>light theme</title>
|
||||
<circle cx="32" cy="32" r="13.9" />
|
||||
<line x1="32" y1="6.86" x2="32" />
|
||||
<line x1="32" y1="64" x2="32" y2="57.14" />
|
||||
<line x1="57.14" y1="32" x2="64" y2="32" />
|
||||
<line y1="32" x2="6.86" y2="32" />
|
||||
<line x1="49.78" y1="14.22" x2="54.63" y2="9.37" />
|
||||
<line x1="9.37" y1="54.63" x2="14.22" y2="49.78" />
|
||||
<line x1="49.78" y1="49.78" x2="54.63" y2="54.63" />
|
||||
<line x1="9.37" y1="9.37" x2="14.22" y2="14.22" />
|
||||
</svg>
|
||||
</div>
|
||||
</label>
|
||||
|
||||
</div>
|
||||
<div id="page_header" class="flex">
|
||||
<svg class="icon" onclick="history.back()" viewBox="0 0 64 64">
|
||||
<title>back_arrow</title>
|
||||
<polyline points="25.97 6.24 0.5 32.06 25.92 57.83" />
|
||||
<line x1="20" y1="32" x2="64" y2="32" />
|
||||
</svg>
|
||||
<h3 id="page_title"></h3>
|
||||
<svg id="secondary_search_btn" class="icon hover" viewBox="0 0 64 64">
|
||||
<title>
|
||||
search for block, transactions, address, token or contract
|
||||
</title>
|
||||
<circle cx="25.34" cy="25.34" r="24.84" />
|
||||
<line x1="63.65" y1="63.65" x2="42.91" y2="42.91" />
|
||||
</svg>
|
||||
</div>
|
||||
</header>
|
||||
<main id="page_container">
|
||||
</main>
|
||||
@ -105,15 +118,6 @@
|
||||
page.id = "homepage";
|
||||
page.innerHTML = `
|
||||
<section id="first_section">
|
||||
<header class="header flex">
|
||||
<div id="logo">
|
||||
<svg id="main_logo" viewBox="0 0 27.25 32">
|
||||
<title>RanchiMall</title>
|
||||
<path d="M27.14,30.86c-.74-2.48-3-4.36-8.25-6.94a20,20,0,0,1-4.2-2.49,6,6,0,0,1-1.25-1.67,4,4,0,0,1,0-2.26c.37-1.08.79-1.57,3.89-4.55a11.66,11.66,0,0,0,3.34-4.67,6.54,6.54,0,0,0,.05-2.82C20,3.6,18.58,2,16.16.49c-.89-.56-1.29-.64-1.3-.24a3,3,0,0,1-.3.72l-.3.55L13.42.94C13,.62,12.4.26,12.19.15c-.4-.2-.73-.18-.72.05a9.39,9.39,0,0,1-.61,1.33s-.14,0-.27-.13C8.76.09,8-.27,8,.23A11.73,11.73,0,0,1,6.76,2.6C4.81,5.87,2.83,7.49.77,7.49c-.89,0-.88,0-.61,1,.22.85.33.92,1.09.69A5.29,5.29,0,0,0,3,8.33c.23-.17.45-.29.49-.26a2,2,0,0,1,.22.63A1.31,1.31,0,0,0,4,9.34a5.62,5.62,0,0,0,2.27-.87L7,8l.13.55c.19.74.32.82,1,.65a7.06,7.06,0,0,0,3.46-2.47l.6-.71-.06.64c-.17,1.63-1.3,3.42-3.39,5.42L6.73,14c-3.21,3.06-3,5.59.6,8a46.77,46.77,0,0,0,4.6,2.41c.28.13,1,.52,1.59.87,3.31,2,4.95,3.92,4.95,5.93a2.49,2.49,0,0,0,.07.77h0c.09.09,0,.1.9-.14a2.61,2.61,0,0,0,.83-.32,3.69,3.69,0,0,0-.55-1.83A11.14,11.14,0,0,0,17,26.81a35.7,35.7,0,0,0-5.1-2.91C9.37,22.64,8.38,22,7.52,21.17a3.53,3.53,0,0,1-1.18-2.48c0-1.38.71-2.58,2.5-4.23,2.84-2.6,3.92-3.91,4.67-5.65a3.64,3.64,0,0,0,.42-2A3.37,3.37,0,0,0,13.61,5l-.32-.74.29-.48c.17-.27.37-.63.46-.8l.15-.3.44.64a5.92,5.92,0,0,1,1,2.81,5.86,5.86,0,0,1-.42,1.94c0,.12-.12.3-.15.4a9.49,9.49,0,0,1-.67,1.1,28,28,0,0,1-4,4.29C8.62,15.49,8.05,16.44,8,17.78a3.28,3.28,0,0,0,1.11,2.76c.95,1,2.07,1.74,5.25,3.32,3.64,1.82,5.22,2.9,6.41,4.38A4.78,4.78,0,0,1,21.94,31a3.21,3.21,0,0,0,.14.92,1.06,1.06,0,0,0,.43-.05l.83-.22.46-.12-.06-.46c-.21-1.53-1.62-3.25-3.94-4.8a37.57,37.57,0,0,0-5.22-2.82A13.36,13.36,0,0,1,11,21.19a3.36,3.36,0,0,1-.8-4.19c.41-.85.83-1.31,3.77-4.15,2.39-2.31,3.43-4.13,3.43-6a5.85,5.85,0,0,0-2.08-4.29c-.23-.21-.44-.43-.65-.65A2.5,2.5,0,0,1,15.27.69a10.6,10.6,0,0,1,2.91,2.78A4.16,4.16,0,0,1,19,6.16a4.91,4.91,0,0,1-.87,3c-.71,1.22-1.26,1.82-4.27,4.67a9.47,9.47,0,0,0-2.07,2.6,2.76,2.76,0,0,0-.33,1.54,2.76,2.76,0,0,0,.29,1.47c.57,1.21,2.23,2.55,4.65,3.73a32.41,32.41,0,0,1,5.82,3.24c2.16,1.6,3.2,3.16,3.2,4.8a1.94,1.94,0,0,0,.09.76,4.54,4.54,0,0,0,1.66-.4C27.29,31.42,27.29,31.37,27.14,30.86ZM6.1,7h0a3.77,3.77,0,0,1-1.46.45L4,7.51l.68-.83a25.09,25.09,0,0,0,3-4.82A12,12,0,0,1,8.28.76c.11-.12.77.32,1.53,1l.63.58-.57.84A10.34,10.34,0,0,1,6.1,7Zm5.71-1.78A9.77,9.77,0,0,1,9.24,7.18h0a5.25,5.25,0,0,1-1.17.28l-.58,0,.65-.78a21.29,21.29,0,0,0,2.1-3.12c.22-.41.42-.76.44-.79s.5.43.9,1.24L12,5ZM13.41,3a2.84,2.84,0,0,1-.45.64,11,11,0,0,1-.9-.91l-.84-.9.19-.45c.34-.79.39-.8,1-.31A9.4,9.4,0,0,1,13.8,2.33q-.18.34-.39.69Z"/>
|
||||
</svg>
|
||||
<h4>RanchiMall</h4>
|
||||
</div>
|
||||
</header>
|
||||
<div id="main_search">
|
||||
<h2 class="other-font">FLO SCOUT</h2>
|
||||
<h4>Search for<br>block, transaction, address,<br>token and contract</h4>
|
||||
@ -146,7 +150,7 @@
|
||||
</div>
|
||||
</section>
|
||||
<section id="latest_transaction_section">
|
||||
<header class="grid grid-2 header">
|
||||
<header class="grid grid-2">
|
||||
<h3 class="heading">Latest transactions</h3>
|
||||
<button id='all_trans_btn' class="margin-left-auto">view all</button>
|
||||
</header>
|
||||
@ -154,7 +158,7 @@
|
||||
</div>
|
||||
</section>
|
||||
<section id="latest_blocks_section">
|
||||
<header class="grid grid-2 header">
|
||||
<header class="grid grid-2">
|
||||
<h3 class="heading">Latest blocks</h3>
|
||||
<button id='all_blocks_btn' class="margin-left-auto">view all</button>
|
||||
</header>
|
||||
@ -839,6 +843,15 @@
|
||||
let suggestions = document.getElementById('suggestions'),
|
||||
mainSearch = document.getElementById("main_search_field");
|
||||
|
||||
document.getElementById('logo').addEventListener('click', function(e){
|
||||
appState = {
|
||||
page: "homepage",
|
||||
thisField: null,
|
||||
};
|
||||
history.pushState(appState, null, '');
|
||||
render("homepage")
|
||||
})
|
||||
|
||||
mainSearch.addEventListener("keydown", function (e) {
|
||||
if (e.key === 'Enter') {
|
||||
processNavbarSearch()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user