first commit
This commit is contained in:
12
templates/instytut_dendrologii_/akk.js
Normal file
12
templates/instytut_dendrologii_/akk.js
Normal file
@@ -0,0 +1,12 @@
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
akk();
|
||||
})
|
||||
function akk(){
|
||||
document.querySelectorAll('.aktualno .jt-title').forEach(items => {
|
||||
|
||||
items.href=items.href.replaceAll('aktualnosci-filmy','viewart');
|
||||
|
||||
items.href=items.href.replaceAll('aktualnosci-post','viewart');
|
||||
|
||||
})
|
||||
}
|
||||
0
templates/instytut_dendrologii_/changebold.js
Normal file
0
templates/instytut_dendrologii_/changebold.js
Normal file
322
templates/instytut_dendrologii_/css/aktualnosci.css
Normal file
322
templates/instytut_dendrologii_/css/aktualnosci.css
Normal file
@@ -0,0 +1,322 @@
|
||||
:root {
|
||||
--backgr: '';
|
||||
--disp: '';
|
||||
}
|
||||
.aktualno .jt-introtext p:has(img){
|
||||
display: none;
|
||||
}
|
||||
.aktualno .jt-introtext p:has(' '){
|
||||
display: none;
|
||||
}
|
||||
.aktualno .jt-cs .jt-imagecover {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: fit-content;
|
||||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
.klasx {
|
||||
|
||||
height: 270px !important;
|
||||
width: 460px !important;
|
||||
border-radius: 0px !important;
|
||||
background: rgba(255, 255, 255, 0.85) !important;
|
||||
box-shadow: 0px 5px 10px 2px rgba(48, 46, 46, 0.1) !important;
|
||||
backdrop-filter: blur(5px) !important;
|
||||
position: absolute !important;
|
||||
z-index: 10 !important;
|
||||
top: 106px !important;
|
||||
left: 39px !important;
|
||||
}
|
||||
|
||||
.aktualno .owl-carousel .owl-item {
|
||||
width: unset !important;
|
||||
}
|
||||
|
||||
.aktualno .nposts {
|
||||
width: 1200px;
|
||||
max-width: 100%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.aktualno .owl-carousel .owl-stage {
|
||||
position: relative;
|
||||
-ms-touch-action: pan-Y;
|
||||
touch-action: manipulation;
|
||||
-moz-backface-visibility: hidden;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.aktualno .fake-col-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
row-gap: 100px;
|
||||
}
|
||||
|
||||
.aktualno .jtcs_item_wrapper .jt-title {
|
||||
position: absolute;
|
||||
top: 181px;
|
||||
left: 136px;
|
||||
z-index: 25;
|
||||
font-family: Palatino Linotype !important;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
line-height: 30px;
|
||||
letter-spacing: 0em;
|
||||
text-align: center;
|
||||
height: 55px;
|
||||
width: 243px;
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.aktualno .jt-cs p.readmore a {
|
||||
position: absolute;
|
||||
top: 343px;
|
||||
right: 55px;
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
z-index: 25;
|
||||
font-family: Palatino Linotype !important;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: 21px;
|
||||
letter-spacing: 0em;
|
||||
text-align: center;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.aktualno .jt-introtext img {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.aktualno .jt-introtext {
|
||||
font-family: Poppins !important;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
line-height: 21px;
|
||||
letter-spacing: 0em;
|
||||
text-align: center;
|
||||
width: 369px;
|
||||
border-radius: nullpx;
|
||||
overflow: hidden;
|
||||
top: 270px;
|
||||
left: 72px;
|
||||
position: absolute;
|
||||
z-index: 20;
|
||||
|
||||
}
|
||||
|
||||
.aktualno .jtcs-author-date {
|
||||
position: absolute !important;
|
||||
font-family: Poppins;
|
||||
font-size: 14px !important;
|
||||
font-weight: 500 !important;
|
||||
line-height: 30px !important;
|
||||
letter-spacing: 0em !important;
|
||||
text-align: center !important;
|
||||
justify-content: center !important;
|
||||
color: #109846 !important;
|
||||
z-index: 25 !important;
|
||||
top: 127px !important;
|
||||
width: 100% !important;
|
||||
column-gap: 10px !important;
|
||||
left: -5px !important;
|
||||
display:none !important;
|
||||
}
|
||||
|
||||
.aktualno .cat-link:hover,
|
||||
.aktualno .jtc_introdate:hover {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.aktualno .jt-cs .jt-imagecover::before {
|
||||
background: unset !important;
|
||||
}
|
||||
|
||||
.aktualno .owl-carousel .owl-stage {
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
.aktualno .jt-inner::after {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.aktualno .jt-cs .jtcs-author-date::after {
|
||||
content: ' | ';
|
||||
order: 2;
|
||||
color: black !important;
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
.aktualno .jt-author {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.aktualno .jt-date {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.aktualno main {
|
||||
max-width: 1200px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.aktualno .owl-carousel .owl-stage-outer {
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
.aktualno .article-info {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.aktualno .jtcs_item_wrapper .jt-title,
|
||||
.aktualno .jt-author,
|
||||
.aktualno .jt-introtext,
|
||||
.aktualno .jt-cs p.readmore,
|
||||
.aktualno .jt-date {
|
||||
display: none;
|
||||
|
||||
}
|
||||
|
||||
.aktualno .mback {
|
||||
height: 100px;
|
||||
width: 333px;
|
||||
position: absolute;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 5px 10px 2px rgba(89, 86, 86, 0.1);
|
||||
top: 279px;
|
||||
left: 93px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
.aktualno .cat-link {
|
||||
font-family: Poppins;
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
line-height: 30px;
|
||||
letter-spacing: 0em;
|
||||
text-align: center;
|
||||
color: #109846;
|
||||
position: absolute;
|
||||
top: 299px;
|
||||
left: 113px;
|
||||
z-index: 1000;
|
||||
text-decoration: none;
|
||||
height: 30px;
|
||||
width: 293px;
|
||||
border-radius: nullpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media(max-width:1250px) {
|
||||
.aktualno .owl-carousel .owl-stage {
|
||||
max-width: 558px !important;
|
||||
flex-direction: column;
|
||||
margin: auto;
|
||||
row-gap: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media(max-width: 700px) {
|
||||
.aktualno .jtcs-author-date {
|
||||
left: 17px !important;
|
||||
}
|
||||
|
||||
.aktualno .jt-cs p.readmore a {
|
||||
right: 11px;
|
||||
|
||||
}
|
||||
|
||||
.aktualno .jt-introtext {
|
||||
font-family: Poppins !important;
|
||||
font-size: 11px;
|
||||
font-weight: 300;
|
||||
line-height: 21px;
|
||||
letter-spacing: 0em;
|
||||
text-align: center;
|
||||
height: 72px;
|
||||
width: 251px;
|
||||
border-radius: nullpx;
|
||||
overflow: hidden;
|
||||
top: 260px;
|
||||
left: 58px;
|
||||
position: absolute;
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
.aktualno .jtcs_item_wrapper .jt-title {
|
||||
left: 63px;
|
||||
font-size: 17px;
|
||||
|
||||
}
|
||||
|
||||
.aktualno .cat-link {
|
||||
|
||||
top: 312px !important;
|
||||
left: 40px !important;
|
||||
|
||||
}
|
||||
|
||||
.aktualno .mback {
|
||||
|
||||
width: 311px !important;
|
||||
position: absolute;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 5px 10px 2px rgba(89, 86, 86, 0.1);
|
||||
top: 291px;
|
||||
left: 27px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
html .aktualno .owl-carousel .owl-stage,
|
||||
.aktualno .owl-carousel .owl-stage img {
|
||||
max-width: 350px !important;
|
||||
|
||||
}
|
||||
|
||||
.aktualno .owl-carousel .owl-stage img {
|
||||
max-width: 345px !important;
|
||||
|
||||
}
|
||||
}
|
||||
@media(max-width: 390px) {
|
||||
.aktualno .jt-introtext {
|
||||
|
||||
left: 44px;
|
||||
|
||||
}
|
||||
.aktualno .jtcs_item_wrapper .jt-title {
|
||||
left: 41px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.aktualno .jtcs-author-date {
|
||||
left: 0px !important;
|
||||
}
|
||||
|
||||
.aktualno .owl-carousel .owl-stage img {
|
||||
max-width: 325px !important;
|
||||
}
|
||||
.aktualno .mback {
|
||||
width: 311px !important;
|
||||
position: absolute;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 5px 10px 2px rgba(89, 86, 86, 0.1);
|
||||
top: 291px;
|
||||
left: 16px !important;
|
||||
}
|
||||
.aktualno .cat-link {
|
||||
top: 312px !important;
|
||||
left: 20px !important;
|
||||
}
|
||||
}
|
||||
97
templates/instytut_dendrologii_/css/ar-style.css
Normal file
97
templates/instytut_dendrologii_/css/ar-style.css
Normal file
@@ -0,0 +1,97 @@
|
||||
.socials-arboretum {
|
||||
filter: invert(1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.socials-arboretum .hr {
|
||||
background-color: transparent;
|
||||
}
|
||||
.menugornear .nav {
|
||||
list-style-type: none;
|
||||
display: flex;
|
||||
flex-wrap:wrap;
|
||||
column-gap: 40px;
|
||||
}
|
||||
.menugornear1 .nav {
|
||||
list-style-type: none;
|
||||
display: flex;
|
||||
flex-wrap:wrap;
|
||||
column-gap: 97px;
|
||||
}
|
||||
|
||||
|
||||
.menugornear .nav a {
|
||||
text-decoration: none;
|
||||
font-family: Poppins;
|
||||
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
letter-spacing: 0em;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
color: #052026;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.socials-ar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.socials-ar .sc {
|
||||
display: flex;
|
||||
column-gap: 21px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
|
||||
.socials-ar .contrast {
|
||||
display: flex;
|
||||
column-gap: 4px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.socials-ar .languages {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.socials-ar .socc {
|
||||
display: flex;
|
||||
column-gap: 2px;
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
.header-ar {
|
||||
display: flex;
|
||||
column-gap: 53px;
|
||||
}
|
||||
|
||||
.bip-ar {
|
||||
margin-right: 32px;
|
||||
}
|
||||
|
||||
.socc img:nth-child(1) {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.ar-lines {
|
||||
width: 1380px;
|
||||
border-bottom: 1px solid black;
|
||||
margin-left: 17px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.header-ar{
|
||||
position: initial !important;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 30px;
|
||||
margin-left:131px;
|
||||
|
||||
}
|
||||
.arboretum-logo{
|
||||
|
||||
}
|
||||
.arboretum-logo p{
|
||||
padding: 0;
|
||||
margin:0;
|
||||
}
|
||||
1138
templates/instytut_dendrologii_/css/arboretum.css
Normal file
1138
templates/instytut_dendrologii_/css/arboretum.css
Normal file
File diff suppressed because it is too large
Load Diff
1
templates/instytut_dendrologii_/css/awsome.css
Normal file
1
templates/instytut_dendrologii_/css/awsome.css
Normal file
File diff suppressed because one or more lines are too long
402
templates/instytut_dendrologii_/css/bip.css
Normal file
402
templates/instytut_dendrologii_/css/bip.css
Normal file
@@ -0,0 +1,402 @@
|
||||
.grid-bip .socials-bip .contrast div {
|
||||
display: flex;
|
||||
}
|
||||
.menu-bip .socials-bip{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu-bip ul li ul {
|
||||
height: 0;
|
||||
transition: all 1s ease-in-out;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
|
||||
}
|
||||
|
||||
.menu-bip ul li ul {}
|
||||
|
||||
|
||||
.bipox {
|
||||
margin-left: 85px;
|
||||
}
|
||||
|
||||
.cwhiteb {
|
||||
border-bottom: unset !important;
|
||||
}
|
||||
|
||||
.bip-articlesinformacja {
|
||||
height: 117px;
|
||||
transform: translateY(-100%);
|
||||
border-radius: 0px;
|
||||
background-color: #AF1016;
|
||||
position: absolute;
|
||||
font-family: Poppins;
|
||||
font-size: 48px;
|
||||
font-weight: 500;
|
||||
line-height: 72px;
|
||||
letter-spacing: 0em;
|
||||
text-align: left;
|
||||
right: 0;
|
||||
top: 0;
|
||||
color: white;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
.grid-bip {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.socials-bip {
|
||||
top: -47px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.joomla-hidden-mail a {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
.pstr a {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
.pnone:nth-child(1) {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.grid-bip main {
|
||||
/* width: 1180px; */
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.grid-bip .languages span {
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.pagination__wrapper ul {
|
||||
display: flex;
|
||||
column-gap: 31px;
|
||||
}
|
||||
|
||||
.pagination__wrapper ul li::marker {
|
||||
display: none !important;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.obrpra p:nth-child(1) {
|
||||
font-family: Poppins;
|
||||
font-size: 30px;
|
||||
font-weight: 500;
|
||||
line-height: 35px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #AF1016;
|
||||
|
||||
}
|
||||
|
||||
.obrpra p:nth-child(2) {
|
||||
font-family: Poppins;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: 21px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
margin-top: 13px;
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
|
||||
|
||||
.bip-articles .list-hits,
|
||||
#categorylist_header_title,
|
||||
#categorylist_header_author,
|
||||
#categorylist_header_hits {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bip-articles table a {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.obrpra p:nth-child(3) {
|
||||
font-family: Poppins;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: 21px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.obrpra div div:nth-child(1) {
|
||||
display: flex;
|
||||
flex-flow: wrap row;
|
||||
column-gap: 26px;
|
||||
}
|
||||
|
||||
.obrpra div div:nth-child(1) p {
|
||||
font-family: Poppins;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: 19px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: black;
|
||||
margin: unset;
|
||||
|
||||
}
|
||||
|
||||
.obrpra div .promotor p,
|
||||
.obrpra div .promotor p span {
|
||||
font-family: Poppins;
|
||||
font-size: 16px !important;
|
||||
font-weight: 300;
|
||||
line-height: 19px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: black;
|
||||
|
||||
}
|
||||
|
||||
.obrpra div .recenzenci div:nth-child(1) p {
|
||||
font-family: Poppins;
|
||||
font-size: 16px;
|
||||
font-weight: 600 !important;
|
||||
line-height: 19px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: black;
|
||||
|
||||
}
|
||||
|
||||
.obrpra div .recenzenci div:nth-child(2) {
|
||||
display: flex;
|
||||
column-gap: 6px;
|
||||
margin-top: 7px;
|
||||
|
||||
}
|
||||
|
||||
.obrpra div .recenzenci div:nth-child(3) {
|
||||
display: flex;
|
||||
column-gap: 6px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.obrpra div .recenzenci div:nth-child(4) {
|
||||
display: flex;
|
||||
column-gap: 6px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.obrpra div .recenzenci div p {
|
||||
font-family: Poppins;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: 19px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
color: black;
|
||||
display: flex;
|
||||
|
||||
}
|
||||
|
||||
.uchwala {
|
||||
font-family: Poppins;
|
||||
font-size: 15px;
|
||||
font-weight: 300;
|
||||
line-height: 18px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.metryczka::before {
|
||||
content: url('/images/BIP/czinf.png');
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.metryczka {
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
|
||||
}
|
||||
|
||||
.metryczka p {
|
||||
font-family: Poppins;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 23px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.content-categorykonkursybip tr {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
}
|
||||
|
||||
.content-categorykonkursybip tr td::before {
|
||||
content: 'TERMIN SKŁADANIA OFERT:';
|
||||
color: #AF1016 !important;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.grid-bip p a {
|
||||
margin-bottom: unset !important;
|
||||
}
|
||||
|
||||
.printbip:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.grid-bip .page-header {
|
||||
display: flex;
|
||||
column-gap: 10px;
|
||||
}
|
||||
|
||||
.grid-bip .page-header h1 {
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.menu-bip .socials-bip {
|
||||
top: 5px;
|
||||
position: relative;
|
||||
|
||||
}
|
||||
.bip-articles table a{
|
||||
font-family: Roboto !important;
|
||||
text-align: left;
|
||||
font-size: 20px !important;
|
||||
font-weight: 300;
|
||||
line-height: 30px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: black !important;
|
||||
text-decoration: none;
|
||||
}
|
||||
.bipprintandemail {
|
||||
display: flex;
|
||||
column-gap: 30px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.bipprintandemail div {
|
||||
height: 36px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
.itemid-165 .page-header h2{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.printbip {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
.menu-bip ul li ul li a::after {
|
||||
content: url(/images/BIP/cztroj.png);
|
||||
margin-right: 17px;
|
||||
filter: invert(0.5);
|
||||
}
|
||||
.menu-bip ul li ul li{
|
||||
font-size: 16px;
|
||||
}
|
||||
.bipprintandemail div img {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.bipprintandemail div:nth-child(2) img {
|
||||
position: relative;
|
||||
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
body .bipprintandemail a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: Center;
|
||||
}
|
||||
|
||||
.bipprintandemail div:nth-child(2) {
|
||||
|
||||
position: relative;
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.bipprintandemail a {
|
||||
color: #AF1016 !important;
|
||||
|
||||
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.menugornear ul li ul li:hover ul {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
.podstawy p {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.podstawy p img {
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.content-categorykonkursybip tr td {
|
||||
|
||||
font-family: Poppins;
|
||||
font-size: 20px !important;
|
||||
font-weight: 500;
|
||||
line-height: 23px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #AF1016 !important;
|
||||
margin-bottom: 32px;
|
||||
|
||||
}
|
||||
|
||||
.content-categorykonkursybip tr {
|
||||
margin-bottom: 32px;
|
||||
border-bottom: 1px solid #302E2E;
|
||||
}
|
||||
|
||||
.content-categorykonkursybip tr a {
|
||||
font-family: Poppins;
|
||||
font-size: 32px !important;
|
||||
font-weight: 300;
|
||||
line-height: 37px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
|
||||
}
|
||||
|
||||
.content-categorykonkursybip td,
|
||||
th {
|
||||
border: unset !important;
|
||||
}
|
||||
|
||||
.content-categorykonkursybip caption {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media(min-width: 1920px) {
|
||||
.bip-articlesinformacja {
|
||||
width: 1377px;
|
||||
left: 540px !important;
|
||||
}
|
||||
}
|
||||
617
templates/instytut_dendrologii_/css/dendrobiology.css
Normal file
617
templates/instytut_dendrologii_/css/dendrobiology.css
Normal file
@@ -0,0 +1,617 @@
|
||||
:root {
|
||||
--artykul-nag: '';
|
||||
}
|
||||
|
||||
.dendro-menu ul {
|
||||
display: flex;
|
||||
column-gap: 76px;
|
||||
list-style-type: none;
|
||||
margin-left: 71px;
|
||||
}
|
||||
|
||||
.dendro-art,
|
||||
.dendrobiology>* {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.dendro-menu ul li a {
|
||||
font-family: Poppins;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: 24px;
|
||||
letter-spacing: 0em;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.dendro-art .com-content-article__body p:nth-child(2),
|
||||
.dendro-art .com-content-article__body p:nth-child(2) span {
|
||||
font-family: Poppins;
|
||||
font-size: 24px !important;
|
||||
font-weight: 500;
|
||||
line-height: 28px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #109846 !important;
|
||||
|
||||
}
|
||||
|
||||
.dendro-art .page-header h2 {
|
||||
font-family: Palatino Linotype;
|
||||
font-size: 34px;
|
||||
font-weight: 400;
|
||||
line-height: 37px;
|
||||
letter-spacing: -0.04em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.grid-dendrocontent .dendro-art .blog-items .item-content p{
|
||||
word-break: break-word !important;
|
||||
}
|
||||
|
||||
html .view-category .dendro-art .com-content-article__body p:nth-child(3),
|
||||
html .view-category .dendro-art .com-content-article__body p:nth-child(3) span,
|
||||
html .view-category .dendro-art .com-content-article__body p:nth-child(3) strong em {
|
||||
font-family: Roboto;
|
||||
font-size: 18px !important;
|
||||
font-style: italic;
|
||||
font-weight: 600 !important;
|
||||
line-height: 24px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #217E46 !important;
|
||||
}
|
||||
|
||||
.dendro-menu {
|
||||
margin-top: 43px;
|
||||
}
|
||||
|
||||
|
||||
.dendro {
|
||||
margin-top: 175px !important;
|
||||
}
|
||||
|
||||
.dendro-napis,
|
||||
.dendro-napis a {
|
||||
font-family: Inter;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: 19px;
|
||||
letter-spacing: 0em;
|
||||
text-align: left;
|
||||
color: #40AD6B;
|
||||
text-decoration: underline;
|
||||
margin-left: 103px;
|
||||
|
||||
}
|
||||
|
||||
.dendro-grid {
|
||||
display: flex;
|
||||
font-family: Poppins;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: 24px;
|
||||
letter-spacing: 0.05em;
|
||||
text-align: left;
|
||||
background: url(/images/Dendrobiology/dendrotlo.png) no-repeat top left;
|
||||
background-position: top right;
|
||||
|
||||
}
|
||||
|
||||
.dendro-tekstlogo {
|
||||
margin-left: 95px;
|
||||
width: 1030px;
|
||||
}
|
||||
|
||||
.dendro .line11,
|
||||
.dendro .line22,
|
||||
.dendro .line33,
|
||||
.dendro .line44 {
|
||||
margin-top: 80px;
|
||||
}
|
||||
|
||||
.dendro-impfaktor {
|
||||
border: 1px solid black;
|
||||
border-right: none;
|
||||
height: 383px;
|
||||
width: 630px;
|
||||
border-radius: 0px;
|
||||
margin-top: 40px;
|
||||
margin-left: 43px;
|
||||
|
||||
}
|
||||
|
||||
.dendro-impfaktor .custom {
|
||||
margin-left: 53px;
|
||||
margin-top: 23px;
|
||||
}
|
||||
|
||||
.dendro-impfaktor .custom p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.dendro-impfaktor .custom p:nth-child(1) {
|
||||
font-family: Poppins;
|
||||
font-size: 24px;
|
||||
font-weight: 300;
|
||||
line-height: 35px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.dendro-impfaktor .custom p:nth-child(2) {
|
||||
font-family: Palatino Linotype;
|
||||
font-size: 64px;
|
||||
font-weight: 400;
|
||||
line-height: 69px;
|
||||
letter-spacing: -0.04em;
|
||||
text-align: left;
|
||||
-webkit-text-stroke: 1px black;
|
||||
color: white;
|
||||
|
||||
}
|
||||
|
||||
.dendro-impfaktor .custom p:nth-child(3) {
|
||||
font-family: Poppins;
|
||||
font-size: 30px;
|
||||
font-weight: 600;
|
||||
line-height: 35px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #109846;
|
||||
width: 291px;
|
||||
|
||||
}
|
||||
|
||||
.dendro-impfaktor .custom p:nth-child(4) {
|
||||
font-family: Poppins;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 29px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.dendro-impfaktor .custom p:nth-child(5) {
|
||||
font-family: Poppins;
|
||||
font-size: 24px;
|
||||
font-weight: 300;
|
||||
line-height: 28px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #109846;
|
||||
width: 413px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.dendro-impfaktor .custom p:nth-child(6) {
|
||||
font-family: Poppins;
|
||||
font-size: 22px;
|
||||
font-weight: 300;
|
||||
line-height: 26px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
height: 78px;
|
||||
width: 393px;
|
||||
border-radius: nullpx;
|
||||
margin-top: 18px;
|
||||
|
||||
}
|
||||
|
||||
.dendro-podimpfaktor {
|
||||
width: 630px;
|
||||
height: 311px;
|
||||
margin-left: 43px;
|
||||
border: 1px solid black;
|
||||
border-right: none;
|
||||
margin-top: 27px;
|
||||
}
|
||||
|
||||
.dendro-podimpfaktor .custom {
|
||||
margin-left: 54px;
|
||||
margin-top: 44px;
|
||||
width: 454px;
|
||||
font-family: Poppins;
|
||||
font-size: 20px;
|
||||
font-weight: 275;
|
||||
line-height: 23px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.dendro-podimpfaktor .custom p:nth-child(1) {
|
||||
font-family: Poppins;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
line-height: 23px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
width: 466px;
|
||||
|
||||
}
|
||||
|
||||
.dendro-grid1 {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding-bottom: 450px;
|
||||
column-gap: 90px;
|
||||
margin-top: 50px;
|
||||
margin-left: 80px;
|
||||
|
||||
}
|
||||
|
||||
.dendro-grid1 p a {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
.dendro-grid1 p:not(:first-child) {
|
||||
font-family: Poppins;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: 27px;
|
||||
letter-spacing: 0.05em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.dendro-grid1left p:nth-child(1) {
|
||||
font-family: Poppins;
|
||||
font-size: 32px;
|
||||
font-weight: 500;
|
||||
line-height: 37px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #109846;
|
||||
|
||||
}
|
||||
|
||||
.dendro-grid1right p:nth-child(1) {
|
||||
font-family: Poppins;
|
||||
font-size: 32px;
|
||||
font-weight: 500;
|
||||
line-height: 37px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #109846;
|
||||
}
|
||||
|
||||
.dendro-grid1left {
|
||||
height: 746px;
|
||||
width: 816px;
|
||||
border-radius: nullpx;
|
||||
|
||||
}
|
||||
|
||||
.dendro-grid1right {
|
||||
height: 721px;
|
||||
width: 573px;
|
||||
border-radius: nullpx;
|
||||
margin-top: 215px;
|
||||
|
||||
}
|
||||
|
||||
.dendro-art .com-content-article__body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
}
|
||||
|
||||
.dendro-art .com-content-article__body div:nth-child(2) {
|
||||
display: flex;
|
||||
flex-flow: wrap row;
|
||||
}
|
||||
|
||||
.dendro-art .com-content-article__body div:nth-child(2) p {
|
||||
flex: 1 1 300px
|
||||
}
|
||||
|
||||
.denline {
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
.grid-dendrocontent {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.dendro-art {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-left: 90px;
|
||||
width: 1420px;
|
||||
}
|
||||
|
||||
.dmost {
|
||||
align-self: start;
|
||||
margin-left: 80px;
|
||||
margin-bottom: 40px;
|
||||
font-family: Poppins;
|
||||
font-size: 30px;
|
||||
font-weight: 400;
|
||||
line-height: 44px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.dendro-menucontent li a {
|
||||
font-family: Palatino Linotype;
|
||||
font-size: 25px;
|
||||
font-weight: 400;
|
||||
line-height: 27px;
|
||||
letter-spacing: -0.04em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.dendro-menucontent {
|
||||
width: 280px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.dendro-menucontent ul {
|
||||
padding-top: 46px !important;
|
||||
row-gap: 60px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 280px;
|
||||
|
||||
}
|
||||
|
||||
.dendro-menucontent li {
|
||||
display: flex;
|
||||
justify-content: center !important;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.dendro-art .page-header {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.dendro-art .blog h1 {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-family: Palatino Linotype;
|
||||
font-size: 87px;
|
||||
font-weight: 400;
|
||||
line-height: 93px;
|
||||
letter-spacing: -0.04em;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.dendro-art .blog-items h2 a {
|
||||
font-family: Palatino Linotype;
|
||||
font-size: 34px;
|
||||
font-weight: 400;
|
||||
line-height: 37px;
|
||||
letter-spacing: -0.04em;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
|
||||
}
|
||||
|
||||
.dendro-art .blog-items .item-content {
|
||||
width: 640px;
|
||||
}
|
||||
|
||||
.dendro-art .blog-items {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.dendro-art .blog-items .item-content p:nth-child(2) {
|
||||
font-family: Roboto;
|
||||
font-size: 15px;
|
||||
font-weight: 300;
|
||||
line-height: 20px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.dendro-art .blog-items .item-content p:nth-child(n+3) span,.dendro-art .blog-items .item-content p:nth-child(n+3) span span{
|
||||
font-family: Poppins;
|
||||
font-size: 24px !important;
|
||||
font-weight: 500;
|
||||
line-height: 28px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #109846;
|
||||
|
||||
}
|
||||
|
||||
.dendro-art .blog-items .item-content p:nth-child(3)
|
||||
{
|
||||
font-family: Roboto;
|
||||
font-size: 18px ;
|
||||
font-weight: 300 !important;
|
||||
line-height: 20px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: black;
|
||||
margin-top: 20px;
|
||||
|
||||
}
|
||||
|
||||
body .dendro-art .blog-items .item-content .btn-secondary {
|
||||
font-family: Poppins !important;
|
||||
font-size: 16px !important;
|
||||
font-weight: 400 !important;
|
||||
line-height: 24px !important;
|
||||
letter-spacing: 0em !important;
|
||||
text-align: left !important;
|
||||
color: #0C7335 !important;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none !important;
|
||||
padding: 12px 42px 12px 42px;
|
||||
border: 1px solid #A3CBB3;
|
||||
}
|
||||
|
||||
body .dendro-art .blog-items .item-content .readmore {
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
}
|
||||
|
||||
.dmost {
|
||||
margin-top: 80px;
|
||||
}
|
||||
|
||||
.view-article .dendro-art .dendrobiology,
|
||||
.view-article .dendro-art .dmost {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.view-article .dendro-art .page-header .nag {
|
||||
-webkit-text-stroke: 1px black;
|
||||
color: white;
|
||||
font-family: Palatino Linotype;
|
||||
font-size: 48px;
|
||||
font-weight: 400;
|
||||
line-height: 52px;
|
||||
letter-spacing: -0.04em;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
padding-top: 60px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.view-article .dendro-art .page-header h1 {
|
||||
font-family: Palatino Linotype;
|
||||
font-size: 34px;
|
||||
font-weight: 400;
|
||||
line-height: 37px;
|
||||
letter-spacing: -0.04em;
|
||||
text-align: left;
|
||||
margin-top: 20px;
|
||||
|
||||
}
|
||||
|
||||
.view-article .dendro-art .com-content-article__body p:nth-child(1) {
|
||||
font-family: Roboto;
|
||||
font-size: 15px;
|
||||
font-weight: 300;
|
||||
line-height: 20px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.view-article .dendro-art .com-content-article__body p:nth-child(3) span {
|
||||
font-family: Poppins;
|
||||
font-size: 24px !important;
|
||||
font-weight: 500;
|
||||
line-height: 28px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #109846
|
||||
}
|
||||
|
||||
.view-article .dendro-art .com-content-article__body p a {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.view-article .dendro-art .com-content-article__body p:nth-child(5) {
|
||||
font-family: Roboto;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
line-height: 24px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
/* color: #109846; */
|
||||
|
||||
}
|
||||
|
||||
|
||||
.view-article .dendro-art .com-content-article__body p:nth-child(n+5) {
|
||||
|
||||
|
||||
font-family: Roboto;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: 24px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
.view-article .dendro-art {
|
||||
width: 1180px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.koper {
|
||||
display: flex;
|
||||
column-gap: 10px;
|
||||
}
|
||||
|
||||
.view-article .dendro-art .menugornear1 ul:after,
|
||||
.view-category .dendro-art .menugornear1 ul:after {
|
||||
content: '' !important;
|
||||
}
|
||||
|
||||
.dendro-arty {
|
||||
width: 1180px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
|
||||
.view-article .dendro-tekstlogo,
|
||||
.view-article .dendro-tekst-podlogo,
|
||||
.view-article .dendro-tekstprawa {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.view-article .dendro-grid1 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.view-article .dendro-grid {
|
||||
|
||||
background-position: top right;
|
||||
}
|
||||
|
||||
.gdnone p {
|
||||
color: black !important;
|
||||
text-decoration: none !important;
|
||||
font-style: normal !important;
|
||||
font-family: Roboto;
|
||||
font-size: 18px !important;
|
||||
font-weight: 300;
|
||||
line-height: 24px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
}
|
||||
html body .dendro-art .blog-items .item-content .grut{
|
||||
font-family: Poppins;
|
||||
font-size: 24px !important;
|
||||
font-weight: 500 !important;
|
||||
line-height: 28px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
color: #109846 !important;
|
||||
margin: 20px 0 40px 0;
|
||||
}
|
||||
body .grid-dendrocontent em {
|
||||
font-weight: 300 !important;
|
||||
}
|
||||
body .dendro-art .blog-items .item-content .grutx span{
|
||||
|
||||
color: black !important;
|
||||
}
|
||||
131
templates/instytut_dendrologii_/css/dvtr.css
Normal file
131
templates/instytut_dendrologii_/css/dvtr.css
Normal file
@@ -0,0 +1,131 @@
|
||||
@import 'grid.css';
|
||||
.jt-cs .fa-file-alt {
|
||||
display: none;
|
||||
/* ukrycie ikonki z fontawesome globalnie */
|
||||
}
|
||||
|
||||
.dvtr-wiadomosci-header {
|
||||
font-family: Poppins;
|
||||
font-size: 36px;
|
||||
line-height: 42px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: center;
|
||||
margin-top: 59px;
|
||||
}
|
||||
@media screen and (max-width: 480px) {
|
||||
.dvtr-wiadomosci-header {
|
||||
margin: 0 auto;
|
||||
font-size: 24px;
|
||||
line-height: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.posts-4 {
|
||||
height: auto !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.arboretum {
|
||||
height: auto !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
.arboretum .owl-stage-outer {
|
||||
height: auto !important;
|
||||
}
|
||||
}
|
||||
.arboretum .jt-cs {
|
||||
position: relative;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-nav {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-nav i {
|
||||
display: block;
|
||||
font-size: 25px;
|
||||
text-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-nav .owl-prev, .arboretum .jt-cs .owl-theme .owl-nav .owl-next {
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
opacity: 1;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-nav .owl-prev > i, .arboretum .jt-cs .owl-theme .owl-nav .owl-next > i {
|
||||
font-size: 30px;
|
||||
height: auto;
|
||||
width: auto;
|
||||
color: green;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-nav .owl-prev {
|
||||
left: -35px;
|
||||
right: auto;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-nav .owl-next {
|
||||
right: -35px;
|
||||
left: auto;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-item .thumb img:hover {
|
||||
opacity: inherit;
|
||||
background: inherit;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-item .mozar {
|
||||
display: none;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-item .category {
|
||||
display: none;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-item .title {
|
||||
font-family: Palatino Linotype;
|
||||
font-size: 48px;
|
||||
font-weight: normal;
|
||||
color: #075F2a;
|
||||
text-decoration: none;
|
||||
}
|
||||
@media screen and (max-width: 480px) {
|
||||
.arboretum .jt-cs .owl-theme .owl-item .title {
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-item .date {
|
||||
color: #777;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
margin-top: 100px;
|
||||
}
|
||||
@media screen and (max-width: 480px) {
|
||||
.arboretum .jt-cs .owl-theme .owl-item .date {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-item .introtext .notmozmr {
|
||||
font-weight: normal;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-item .introtext p {
|
||||
line-height: 1.5;
|
||||
font-size: 16px;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-item .introtext img {
|
||||
display: none;
|
||||
}
|
||||
.arboretum .jt-cs .owl-theme .owl-item .readmore {
|
||||
text-align: right;
|
||||
color: #444;
|
||||
text-decoration: none;
|
||||
float: right;
|
||||
}
|
||||
@media screen and (max-width: 480px) {
|
||||
.arboretum .jt-cs .owl-theme .owl-item .readmore {
|
||||
position: static;
|
||||
margin-top: 0px;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=dvtr.css.map */
|
||||
1
templates/instytut_dendrologii_/css/dvtr.css.map
Normal file
1
templates/instytut_dendrologii_/css/dvtr.css.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sourceRoot":"","sources":["dvtr.scss"],"names":[],"mappings":"AAAQ;AAGJ;EAEI;AAAe;;;AAGvB;EAGI;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAXJ;IAaQ;IACA;IACA;;;;AAMJ;EAEI;;AAGI;EACI;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EAEA;EACA;;AAEJ;EAII;EACA;EACA;;AAEA;EAEI;EACA;EACA;EACA;;AAGR;EACI;EACA;;AAGJ;EACI;EACA;;AASA;EAEI;EACA;;AAGR;EAEI;;AAEJ;EAEI;;AAEJ;EAGI;EACA;EACA;EACA;EACA;;AAGA;EAVJ;IAYQ;;;AAIR;EAEI;EACA;EACA;EACA;;AAEJ;EAEI;;AAIA;EAEI;EACA;;AAEJ;EACI;;AAGR;EAEI;EACA;EACA;EACA;;AAGA;EARJ;IAUQ;IACA","file":"dvtr.css"}
|
||||
182
templates/instytut_dendrologii_/css/dvtr.scss
Normal file
182
templates/instytut_dendrologii_/css/dvtr.scss
Normal file
@@ -0,0 +1,182 @@
|
||||
@import 'grid.css';
|
||||
.jt-cs
|
||||
{
|
||||
.fa-file-alt
|
||||
{
|
||||
display: none; /* ukrycie ikonki z fontawesome globalnie */
|
||||
}
|
||||
}
|
||||
.dvtr-wiadomosci-header
|
||||
{
|
||||
|
||||
font-family: Poppins;
|
||||
font-size: 36px;
|
||||
line-height: 42px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align:center;
|
||||
margin-top: 59px;
|
||||
//margin-left: 255px;
|
||||
|
||||
@media screen and (max-width: 480px)
|
||||
{
|
||||
margin: 0 auto;
|
||||
font-size: 24px;
|
||||
line-height: 32px;
|
||||
}
|
||||
}
|
||||
.posts-4
|
||||
{
|
||||
@media screen and (max-width: 480px)
|
||||
{
|
||||
|
||||
height: auto !important;
|
||||
overflow: hidden;;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
.arboretum
|
||||
{
|
||||
|
||||
@media screen and (max-width: 480px)
|
||||
{
|
||||
|
||||
height: auto !important;
|
||||
overflow: hidden;;
|
||||
|
||||
|
||||
.owl-stage-outer
|
||||
{
|
||||
height: auto !important;;
|
||||
}
|
||||
}
|
||||
.jt-cs
|
||||
{
|
||||
position: relative;
|
||||
.owl-theme
|
||||
{
|
||||
.owl-nav {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: -1;
|
||||
i {
|
||||
display: block;
|
||||
//background: yellow;
|
||||
font-size: 25px;
|
||||
text-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
|
||||
}
|
||||
.owl-prev, .owl-next
|
||||
{
|
||||
|
||||
//background: red;
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
opacity: 1;
|
||||
|
||||
> i
|
||||
{
|
||||
font-size: 30px;
|
||||
height: auto;
|
||||
width: auto;
|
||||
color: green;
|
||||
}
|
||||
}
|
||||
.owl-prev {
|
||||
left: -35px;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
.owl-next {
|
||||
right: -35px;
|
||||
left: auto;
|
||||
//background: blueviolet;
|
||||
}
|
||||
|
||||
}
|
||||
.owl-item
|
||||
{
|
||||
.thumb
|
||||
{
|
||||
img:hover
|
||||
{
|
||||
opacity: inherit;
|
||||
background: inherit;
|
||||
}
|
||||
}
|
||||
.mozar
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
.category
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
.title
|
||||
{
|
||||
|
||||
font-family: Palatino Linotype;
|
||||
font-size: 48px;
|
||||
font-weight: normal;
|
||||
color: #075F2a;
|
||||
text-decoration: none;
|
||||
|
||||
|
||||
@media screen and (max-width: 480px)
|
||||
{
|
||||
font-size: 32px;
|
||||
|
||||
}
|
||||
}
|
||||
.date
|
||||
{
|
||||
color: #777;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
margin-top: 100px;
|
||||
|
||||
@media screen and (max-width: 480px)
|
||||
{
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
.introtext .notmozmr
|
||||
{
|
||||
font-weight: normal;
|
||||
}
|
||||
.introtext
|
||||
{
|
||||
p
|
||||
{
|
||||
line-height: 1.5;
|
||||
font-size: 16px;
|
||||
}
|
||||
img{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.readmore
|
||||
{
|
||||
text-align: right;
|
||||
color: #444;
|
||||
text-decoration: none;
|
||||
float: right;
|
||||
|
||||
|
||||
@media screen and (max-width: 480px)
|
||||
{
|
||||
position: static;
|
||||
margin-top: 0px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
160
templates/instytut_dendrologii_/css/grid.css
Normal file
160
templates/instytut_dendrologii_/css/grid.css
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
|
||||
/* ==== GRID SYSTEM ==== */
|
||||
|
||||
.container {
|
||||
width: 90%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.row {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.row [class^="col"] {
|
||||
float: left;
|
||||
margin: 0.5rem 2%;
|
||||
min-height: 0.125rem;
|
||||
}
|
||||
|
||||
.col-1,
|
||||
.col-2,
|
||||
.col-3,
|
||||
.col-4,
|
||||
.col-5,
|
||||
.col-6,
|
||||
.col-7,
|
||||
.col-8,
|
||||
.col-9,
|
||||
.col-10,
|
||||
.col-11,
|
||||
.col-12 {
|
||||
width: 96%;
|
||||
}
|
||||
|
||||
.col-1-sm {
|
||||
width: 4.33%;
|
||||
}
|
||||
|
||||
.col-2-sm {
|
||||
width: 12.66%;
|
||||
}
|
||||
|
||||
.col-3-sm {
|
||||
width: 21%;
|
||||
}
|
||||
|
||||
.col-4-sm {
|
||||
width: 29.33%;
|
||||
}
|
||||
|
||||
.col-5-sm {
|
||||
width: 37.66%;
|
||||
}
|
||||
|
||||
.col-6-sm {
|
||||
width: 46%;
|
||||
}
|
||||
|
||||
.col-7-sm {
|
||||
width: 54.33%;
|
||||
}
|
||||
|
||||
.col-8-sm {
|
||||
width: 62.66%;
|
||||
}
|
||||
|
||||
.col-9-sm {
|
||||
width: 71%;
|
||||
}
|
||||
|
||||
.col-10-sm {
|
||||
width: 79.33%;
|
||||
}
|
||||
|
||||
.col-11-sm {
|
||||
width: 87.66%;
|
||||
}
|
||||
|
||||
.col-12-sm {
|
||||
width: 96%;
|
||||
}
|
||||
|
||||
.row::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.hidden-sm {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 33.75em) { /* 540px */
|
||||
.container {
|
||||
width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 45em) { /* 720px */
|
||||
.col-1 {
|
||||
width: 4.33%;
|
||||
}
|
||||
|
||||
.col-2 {
|
||||
width: 12.66%;
|
||||
}
|
||||
|
||||
.col-3 {
|
||||
width: 21%;
|
||||
}
|
||||
|
||||
.col-4 {
|
||||
width: 29.33%;
|
||||
}
|
||||
|
||||
.col-5 {
|
||||
width: 37.66%;
|
||||
}
|
||||
|
||||
.col-6 {
|
||||
width: 46%;
|
||||
}
|
||||
|
||||
.col-7 {
|
||||
width: 54.33%;
|
||||
}
|
||||
|
||||
.col-8 {
|
||||
width: 62.66%;
|
||||
}
|
||||
|
||||
.col-9 {
|
||||
width: 71%;
|
||||
}
|
||||
|
||||
.col-10 {
|
||||
width: 79.33%;
|
||||
}
|
||||
|
||||
.col-11 {
|
||||
width: 87.66%;
|
||||
}
|
||||
|
||||
.col-12 {
|
||||
width: 96%;
|
||||
}
|
||||
|
||||
.hidden-sm {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 60em) { /* 960px */
|
||||
.container {
|
||||
width: 75%;
|
||||
max-width: 60rem;
|
||||
}
|
||||
}
|
||||
1640
templates/instytut_dendrologii_/css/instytut.css
Normal file
1640
templates/instytut_dendrologii_/css/instytut.css
Normal file
File diff suppressed because it is too large
Load Diff
1
templates/instytut_dendrologii_/css/select2.min.css
vendored
Normal file
1
templates/instytut_dendrologii_/css/select2.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
10474
templates/instytut_dendrologii_/css/style.css
Normal file
10474
templates/instytut_dendrologii_/css/style.css
Normal file
File diff suppressed because it is too large
Load Diff
149
templates/instytut_dendrologii_/css/style1.css
Normal file
149
templates/instytut_dendrologii_/css/style1.css
Normal file
@@ -0,0 +1,149 @@
|
||||
@media(max-width: 1150px) {
|
||||
.pracowniknaukowy-grid {
|
||||
background: url(/images/StronaPracownikaNukowego/background_pracocwnik_naukowy.png)top right;
|
||||
height: 504px;
|
||||
width: 1068px;
|
||||
|
||||
}
|
||||
|
||||
.pracownik-naukowy {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 1150px) {
|
||||
|
||||
.pracowniknaukowy-grid {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
}
|
||||
|
||||
.pracownik-opis p:nth-child(1) span {
|
||||
font-family: Poppins;
|
||||
font-size: 26px !important;
|
||||
}
|
||||
|
||||
.pracownik-opis p:not(:nth-child(1)) span,
|
||||
.pracownik-opis li span {
|
||||
font-family: Poppins;
|
||||
font-size: 16px !important;
|
||||
}
|
||||
|
||||
.pracownik-grid1 {
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 850px) {
|
||||
|
||||
.pracowniknaukowy-grid {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
background: url(/images/StronaPracownikaNukowego/background_pracocwnik_naukowy.png)top right;
|
||||
height: 504px;
|
||||
width: 622px;
|
||||
|
||||
|
||||
}
|
||||
.pracownik-projects{
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.pracownik-opis p:nth-child(1) span {
|
||||
font-family: Poppins;
|
||||
font-size: 19px !important;
|
||||
}
|
||||
|
||||
.pracownik-opis p:not(:nth-child(1)) span,
|
||||
.pracownik-opis li span {
|
||||
font-family: Poppins;
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
.pracownik-grid1 {
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 635px) {
|
||||
|
||||
.pracowniknaukowy-grid {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
background: url(/images/StronaPracownikaNukowego/background_pracocwnik_naukowy.png)top right;
|
||||
height: 504px;
|
||||
width: 622px;
|
||||
line-height: 10.4px;
|
||||
height: 555px;
|
||||
|
||||
}
|
||||
|
||||
.pracownik-opis p:nth-child(1) span {
|
||||
font-family: Poppins;
|
||||
font-size: 12px !important;
|
||||
line-height: 10.4px;
|
||||
|
||||
}
|
||||
|
||||
.pracownik-opis p:not(:nth-child(1)) span,
|
||||
.pracownik-opis li span,
|
||||
.pracownik-opis li {
|
||||
font-family: Poppins;
|
||||
font-size: 9px !important;
|
||||
line-height: 10.4px !important;
|
||||
|
||||
}
|
||||
|
||||
.pracownik-grid1 {
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.pracownik-zdjecie img {
|
||||
width: 200px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.pracowniknaukowy-grid {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.pracownik-opis {
|
||||
left: 10px;
|
||||
top: 326px;
|
||||
}
|
||||
|
||||
.pracownik-opis li span {
|
||||
line-height: 4px;
|
||||
|
||||
}
|
||||
|
||||
.pracownik-opis ul {
|
||||
margin-left: -21px;
|
||||
|
||||
}
|
||||
|
||||
.pracownik-projects {
|
||||
font-family: Poppins;
|
||||
font-size: 13px;
|
||||
}
|
||||
.itemid-160 .pracownik-grids{
|
||||
margin:auto
|
||||
}
|
||||
.itemid-160 .pracownik-grid1, .itemid-160 .pracownik-grid1 .proj {
|
||||
width: 350px;
|
||||
}
|
||||
.itemid-160 .publ{
|
||||
width: 350px;
|
||||
|
||||
}
|
||||
.itemid-160 .pracownik-publications{
|
||||
width: 350px;
|
||||
}
|
||||
.itemid-160 .publ p,.itemid-160 .publ span{
|
||||
font-size: 12px !important;
|
||||
}
|
||||
}
|
||||
57
templates/instytut_dendrologii_/css/swiper.css
Normal file
57
templates/instytut_dendrologii_/css/swiper.css
Normal file
@@ -0,0 +1,57 @@
|
||||
.swiper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.swiper-slide {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
background: #fff;
|
||||
width: unset !important;
|
||||
height: unset !important;
|
||||
|
||||
/* Center slide text vertically */
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
justify-content: center;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.swiper-slide img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.swiper-arrows{
|
||||
width: 70px;
|
||||
margin: auto;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
column-gap: 20px;
|
||||
justify-content: center;
|
||||
margin-bottom: 37px;
|
||||
}
|
||||
|
||||
.swiper-button-next, .swiper-button-prev {
|
||||
right: 0 !important;
|
||||
left: 0 !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
position: relative !important;
|
||||
}
|
||||
.swiper-button-prev:after{
|
||||
content: url(/images/Arboretum/arll.png) !important;
|
||||
}
|
||||
.swiper-button-next:after{
|
||||
content: url(/images/Arboretum/arpp.png) !important;
|
||||
}
|
||||
0
templates/instytut_dendrologii_/css/swiper1.css
Normal file
0
templates/instytut_dendrologii_/css/swiper1.css
Normal file
41
templates/instytut_dendrologii_/css/swiper1.js
Normal file
41
templates/instytut_dendrologii_/css/swiper1.js
Normal file
@@ -0,0 +1,41 @@
|
||||
@media only screen and (max-width: 767px) {
|
||||
.pop-up-slide.swiper-slide-active {
|
||||
height: 400px !important;
|
||||
}
|
||||
.pop-up-slide.swiper-slide-duplicate-active {
|
||||
height: 400px !important;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-width: 567px) {
|
||||
.pop-up-slide.swiper-slide-active {
|
||||
height: 300px !important;
|
||||
}
|
||||
.pop-up-slide.swiper-slide-duplicate-active {
|
||||
height: 300px !important;
|
||||
}
|
||||
}
|
||||
.pop-up-slide.swiper-slide-active {
|
||||
height: 580px;
|
||||
}
|
||||
.pop-up-slide.swiper-slide-duplicate-active {
|
||||
height: 580px;
|
||||
}
|
||||
.swiper-pagination-bullet{
|
||||
display: block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: #FFFFFF;
|
||||
opacity: 0.3;
|
||||
border-radius: 50%;
|
||||
margin: 0 6px;
|
||||
cursor:pointer;
|
||||
transition: all ease 0.2s;
|
||||
}
|
||||
.swiper-pagination-bullet.swiper-pagination-bullet-active {
|
||||
opacity: 1;
|
||||
width:16px;
|
||||
height:16px;
|
||||
}
|
||||
.swiper-pagination-bullet:hover {
|
||||
opacity:1;
|
||||
}
|
||||
180
templates/instytut_dendrologii_/css/szkola.css
Normal file
180
templates/instytut_dendrologii_/css/szkola.css
Normal file
@@ -0,0 +1,180 @@
|
||||
.menu-szkola ul li:hover ul{
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 1px solid #dfdfdf;
|
||||
top: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
padding: 30px 14px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.menu-szkola ul li:hover ul {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
justify-content: start;
|
||||
align-items: start;
|
||||
position: absolute;
|
||||
top: 17px;
|
||||
/* left: -94%; */
|
||||
width: fit-content;
|
||||
z-index: 100000;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.menu-szkola ul li ul{
|
||||
display: none;
|
||||
}
|
||||
.menu-szkola ul li span{
|
||||
text-transform: uppercase;
|
||||
font-family: Poppins;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: 24px;
|
||||
letter-spacing: 0em;
|
||||
text-align: center;
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
.menu-szkola ul {
|
||||
column-gap: 60px;
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
}
|
||||
.menu-szkola ul li{
|
||||
position: relative;
|
||||
}
|
||||
.contrast div{
|
||||
display:flex;
|
||||
}
|
||||
|
||||
.menu-szkola ul li {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.menu-szkola a {
|
||||
font-family: Poppins;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: 24px;
|
||||
letter-spacing: 0em;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.menu-szkola {
|
||||
display: flex;
|
||||
margin-top: 24px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.grid-menu1 {
|
||||
display: flex;
|
||||
column-gap: 53px;
|
||||
flex-wrap:wrap;
|
||||
}
|
||||
|
||||
.grid-menu1 {
|
||||
position: relative
|
||||
}
|
||||
|
||||
|
||||
.naglowek-szkola p {
|
||||
font-family: Palatino Linotype;
|
||||
font-size: 57px;
|
||||
font-weight: 400;
|
||||
line-height: 58px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.naglowek-szkola {
|
||||
display: flex;
|
||||
margin-top: 84px;
|
||||
}
|
||||
|
||||
.liness2,
|
||||
.liness1 {
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
.lineleft {
|
||||
margin-top: 396px;
|
||||
}
|
||||
|
||||
.lineright {
|
||||
margin-top: 192px;
|
||||
}
|
||||
|
||||
.grid-szkolad {
|
||||
display: flex;
|
||||
column-gap: 56px;
|
||||
|
||||
}
|
||||
|
||||
.opisizdjecie {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: -101px;
|
||||
|
||||
}
|
||||
|
||||
.text-szkola {
|
||||
margin-top: 120px;
|
||||
font-family: Roboto;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
line-height: 22px;
|
||||
letter-spacing: 0.035em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.zdjecie-szkola img {
|
||||
position: relative;
|
||||
bottom: -4px;
|
||||
|
||||
}
|
||||
|
||||
.zdjecie-szkola p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
}
|
||||
|
||||
.text-szkola p {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.opisizdjecie::after {
|
||||
content: '';
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dolaczdonas-szkola {
|
||||
font-family: Poppins;
|
||||
font-size: 40px;
|
||||
font-weight: 500;
|
||||
line-height: 47px;
|
||||
letter-spacing: -0.015em;
|
||||
text-align: right;
|
||||
background: #109846;
|
||||
color: white;
|
||||
height: 100px;
|
||||
width: 429px;
|
||||
border-radius: 1px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 54px;
|
||||
}
|
||||
120
templates/instytut_dendrologii_/error.php
Normal file
120
templates/instytut_dendrologii_/error.php
Normal file
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.cassiopeia
|
||||
*
|
||||
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/** @var Joomla\CMS\Document\ErrorDocument $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
$wa = $this->getWebAssetManager();
|
||||
|
||||
// Detecting Active Variables
|
||||
$option = $app->input->getCmd('option', '');
|
||||
$view = $app->input->getCmd('view', '');
|
||||
$layout = $app->input->getCmd('layout', '');
|
||||
$task = $app->input->getCmd('task', '');
|
||||
$itemid = $app->input->getCmd('Itemid', '');
|
||||
$sitename = htmlspecialchars($app->get('sitename'), ENT_QUOTES, 'UTF-8');
|
||||
$menu = $app->getMenu()->getActive();
|
||||
$pageclass = $menu !== null ? $menu->getParams()->get('pageclass_sfx', '') : '';
|
||||
|
||||
// Template path
|
||||
$templatePath = 'media/templates/site/cassiopeia';
|
||||
|
||||
// Color Theme
|
||||
$paramsColorName = $this->params->get('colorName', 'colors_standard');
|
||||
$assetColorName = 'theme.' . $paramsColorName;
|
||||
$wa->registerAndUseStyle($assetColorName, $templatePath . '/css/global/' . $paramsColorName . '.css');
|
||||
|
||||
// Use a font scheme if set in the template style options
|
||||
$paramsFontScheme = $this->params->get('useFontScheme', false);
|
||||
$fontStyles = '';
|
||||
|
||||
if ($paramsFontScheme) {
|
||||
if (stripos($paramsFontScheme, 'https://') === 0) {
|
||||
$this->getPreloadManager()->preconnect('https://fonts.googleapis.com/', ['crossorigin' => 'anonymous']);
|
||||
$this->getPreloadManager()->preconnect('https://fonts.gstatic.com/', ['crossorigin' => 'anonymous']);
|
||||
$this->getPreloadManager()->preload($paramsFontScheme, ['as' => 'style', 'crossorigin' => 'anonymous']);
|
||||
$wa->registerAndUseStyle('fontscheme.current', $paramsFontScheme, [], ['media' => 'print', 'rel' => 'lazy-stylesheet', 'onload' => 'this.media=\'all\'', 'crossorigin' => 'anonymous']);
|
||||
|
||||
if (preg_match_all('/family=([^?:]*):/i', $paramsFontScheme, $matches) > 0) {
|
||||
$fontStyles = '--cassiopeia-font-family-body: "' . str_replace('+', ' ', $matches[1][0]) . '", sans-serif;
|
||||
--cassiopeia-font-family-headings: "' . str_replace('+', ' ', isset($matches[1][1]) ? $matches[1][1] : $matches[1][0]) . '", sans-serif;
|
||||
--cassiopeia-font-weight-normal: 400;
|
||||
--cassiopeia-font-weight-headings: 700;';
|
||||
}
|
||||
} else {
|
||||
$wa->registerAndUseStyle('fontscheme.current', $paramsFontScheme, ['version' => 'auto'], ['media' => 'print', 'rel' => 'lazy-stylesheet', 'onload' => 'this.media=\'all\'']);
|
||||
$this->getPreloadManager()->preload($wa->getAsset('style', 'fontscheme.current')->getUri() . '?' . $this->getMediaVersion(), ['as' => 'style']);
|
||||
}
|
||||
}
|
||||
|
||||
// Enable assets
|
||||
$wa->usePreset('template.cassiopeia.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr'))
|
||||
->useStyle('template.active.language')
|
||||
->useStyle('template.user')
|
||||
->useScript('template.user')
|
||||
->addInlineStyle(":root {
|
||||
--hue: 214;
|
||||
--template-bg-light: #f0f4fb;
|
||||
--template-text-dark: #495057;
|
||||
--template-text-light: #ffffff;
|
||||
--template-link-color: #2a69b8;
|
||||
--template-special-color: #001B4C;
|
||||
$fontStyles
|
||||
}");
|
||||
|
||||
// Override 'template.active' asset to set correct ltr/rtl dependency
|
||||
$wa->registerStyle('template.active', '', [], [], ['template.cassiopeia.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')]);
|
||||
|
||||
// Browsers support SVG favicons
|
||||
$this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon.svg', '', [], true, 1), 'icon', 'rel', ['type' => 'image/svg+xml']);
|
||||
$this->addHeadLink(HTMLHelper::_('image', 'favicon.ico', '', [], true, 1), 'alternate icon', 'rel', ['type' => 'image/vnd.microsoft.icon']);
|
||||
$this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon-pinned.svg', '', [], true, 1), 'mask-icon', 'rel', ['color' => '#000']);
|
||||
|
||||
// Logo file or site title param
|
||||
if ($this->params->get('logoFile')) {
|
||||
$logo = '<img src="' . htmlspecialchars(Uri::root() . $this->params->get('logoFile'), ENT_QUOTES, 'UTF-8') . '" alt="' . $sitename . '">';
|
||||
} elseif ($this->params->get('siteTitle')) {
|
||||
$logo = '<span title="' . $sitename . '">' . htmlspecialchars($this->params->get('siteTitle'), ENT_COMPAT, 'UTF-8') . '</span>';
|
||||
} else {
|
||||
$logo = HTMLHelper::_('image', 'logo.svg', $sitename, ['class' => 'logo d-inline-block'], true, 0);
|
||||
}
|
||||
|
||||
// Container
|
||||
$wrapper = $this->params->get('fluidContainer') ? 'wrapper-fluid' : 'wrapper-static';
|
||||
|
||||
$this->setMetaData('viewport', 'width=device-width, initial-scale=1');
|
||||
|
||||
// Defer font awesome
|
||||
$wa->getAsset('style', 'fontawesome')->setAttribute('rel', 'lazy-stylesheet');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
|
||||
<head>
|
||||
<jdoc:include type="metas" />
|
||||
<jdoc:include type="styles" />
|
||||
<jdoc:include type="scripts" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div style="display:flex;justify-content:center;align-items:center;font-size:40px;margin-top:100px;color:#109846"><h1>NIE MASZ UPRAWNIEŃ DO OGLĄDANIA TEJ STRONY</h1></div>
|
||||
<div style="display:flex;justify-content:center;align-items:center;font-size:40px;margin-top:30px;color:#109846"><h3><a href="/" STYLE="text-decoration:none">POWRÓT</a></h3></div>
|
||||
<jdoc:include type="modules" name="debug" style="none" />
|
||||
</body>
|
||||
</html>
|
||||
BIN
templates/instytut_dendrologii_/favicon.ico
Normal file
BIN
templates/instytut_dendrologii_/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.cassiopeia
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
$module = $displayData['module'];
|
||||
$params = $displayData['params'];
|
||||
$attribs = $displayData['attribs'];
|
||||
|
||||
if ($module->content === null || $module->content === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
$moduleTag = $params->get('module_tag', 'div');
|
||||
$moduleAttribs = [];
|
||||
$moduleAttribs['class'] = $module->position . ' card ' . htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_QUOTES, 'UTF-8');
|
||||
$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_QUOTES, 'UTF-8');
|
||||
$headerClass = htmlspecialchars($params->get('header_class', ''), ENT_QUOTES, 'UTF-8');
|
||||
$headerAttribs = [];
|
||||
$headerAttribs['class'] = $headerClass;
|
||||
|
||||
// Only output a header class if it is not card-title
|
||||
if ($headerClass !== 'card-title') :
|
||||
$headerAttribs['class'] = 'card-header ' . $headerClass;
|
||||
endif;
|
||||
|
||||
// Only add aria if the moduleTag is not a div
|
||||
if ($moduleTag !== 'div') {
|
||||
if ($module->showtitle) :
|
||||
$moduleAttribs['aria-labelledby'] = 'mod-' . $module->id;
|
||||
$headerAttribs['id'] = 'mod-' . $module->id;
|
||||
else :
|
||||
$moduleAttribs['aria-label'] = $module->title;
|
||||
endif;
|
||||
}
|
||||
|
||||
$header = '<' . $headerTag . ' ' . ArrayHelper::toString($headerAttribs) . '>' . $module->title . '</' . $headerTag . '>';
|
||||
?>
|
||||
<<?php echo $moduleTag; ?> <?php echo ArrayHelper::toString($moduleAttribs); ?>>
|
||||
<?php if ($module->showtitle && $headerClass !== 'card-title') : ?>
|
||||
<?php echo $header; ?>
|
||||
<?php endif; ?>
|
||||
<div class="card-body">
|
||||
<?php if ($module->showtitle && $headerClass === 'card-title') : ?>
|
||||
<?php echo $header; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $module->content; ?>
|
||||
</div>
|
||||
</<?php echo $moduleTag; ?>>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.cassiopeia
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
$module = $displayData['module'];
|
||||
$params = $displayData['params'];
|
||||
$attribs = $displayData['attribs'];
|
||||
|
||||
if ($module->content === null || $module->content === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
$moduleTag = $params->get('module_tag', 'div');
|
||||
$moduleAttribs = [];
|
||||
$moduleAttribs['class'] = $module->position . ' no-card ' . htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_QUOTES, 'UTF-8');
|
||||
$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_QUOTES, 'UTF-8');
|
||||
$headerClass = htmlspecialchars($params->get('header_class', ''), ENT_QUOTES, 'UTF-8');
|
||||
$headerAttribs = [];
|
||||
|
||||
// Only output a header class if one is set
|
||||
if ($headerClass !== '') {
|
||||
$headerAttribs['class'] = $headerClass;
|
||||
}
|
||||
|
||||
// Only add aria if the moduleTag is not a div
|
||||
if ($moduleTag !== 'div') {
|
||||
if ($module->showtitle) :
|
||||
$moduleAttribs['aria-labelledby'] = 'mod-' . $module->id;
|
||||
$headerAttribs['id'] = 'mod-' . $module->id;
|
||||
else :
|
||||
$moduleAttribs['aria-label'] = $module->title;
|
||||
endif;
|
||||
}
|
||||
|
||||
$header = '<' . $headerTag . ' ' . ArrayHelper::toString($headerAttribs) . '>' . $module->title . '</' . $headerTag . '>';
|
||||
?>
|
||||
<<?php echo $moduleTag; ?> <?php echo ArrayHelper::toString($moduleAttribs); ?>>
|
||||
<?php if ($module->showtitle) : ?>
|
||||
<?php echo $header; ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $module->content; ?>
|
||||
</<?php echo $moduleTag; ?>>
|
||||
31
templates/instytut_dendrologii_/html/mod_custom/banner.php
Normal file
31
templates/instytut_dendrologii_/html/mod_custom/banner.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_custom
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
$modId = 'mod-custom' . $module->id;
|
||||
|
||||
if ($params->get('backgroundimage')) {
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $app->getDocument()->getWebAssetManager();
|
||||
$wa->addInlineStyle('
|
||||
#' . $modId . '{background-image: url("' . Uri::root(true) . '/' . HTMLHelper::_('cleanImageURL', $params->get('backgroundimage'))->url . '");}
|
||||
', ['name' => $modId]);
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="mod-custom custom banner-overlay" id="<?php echo $modId; ?>">
|
||||
<div class="overlay">
|
||||
<?php echo $module->content; ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
HTMLHelper::_('bootstrap.collapse');
|
||||
?>
|
||||
|
||||
<nav class="navbar navbar-expand-md" aria-label="<?php echo htmlspecialchars($module->title, ENT_QUOTES, 'UTF-8'); ?>">
|
||||
<button class="navbar-toggler navbar-toggler-right" type="button" data-bs-toggle="collapse" data-bs-target="#navbar<?php echo $module->id; ?>" aria-controls="navbar<?php echo $module->id; ?>" aria-expanded="false" aria-label="<?php echo Text::_('MOD_MENU_TOGGLE'); ?>">
|
||||
<span class="icon-menu" aria-hidden="true"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbar<?php echo $module->id; ?>">
|
||||
<?php require __DIR__ . '/dropdown-metismenu.php'; ?>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Helper\ModuleHelper;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $app->getDocument()->getWebAssetManager();
|
||||
$wa->registerAndUseScript('metismenu', 'media/templates/site/cassiopeia/js/mod_menu/menu-metismenu.min.js', [], ['defer' => true], ['metismenujs']);
|
||||
|
||||
$attributes = [];
|
||||
$attributes['class'] = 'mod-menu mod-menu_dropdown-metismenu metismenu mod-list ' . $class_sfx;
|
||||
|
||||
if ($tagId = $params->get('tag_id', '')) {
|
||||
$attributes['id'] = $tagId;
|
||||
}
|
||||
|
||||
$start = (int) $params->get('startLevel', 1);
|
||||
|
||||
?>
|
||||
<ul <?php echo ArrayHelper::toString($attributes); ?>>
|
||||
<?php foreach ($list as $i => &$item) {
|
||||
// Skip sub-menu items if they are set to be hidden in the module's options
|
||||
if (!$showAll && $item->level > $start) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$itemParams = $item->getParams();
|
||||
$class = [];
|
||||
$class[] = 'metismenu-item item-' . $item->id . ' level-' . ($item->level - $start + 1);
|
||||
|
||||
if ($item->id == $default_id) {
|
||||
$class[] = 'default';
|
||||
}
|
||||
|
||||
if ($item->id == $active_id || ($item->type === 'alias' && $itemParams->get('aliasoptions') == $active_id)) {
|
||||
$class[] = 'current';
|
||||
}
|
||||
|
||||
if (in_array($item->id, $path)) {
|
||||
$class[] = 'active';
|
||||
} elseif ($item->type === 'alias') {
|
||||
$aliasToId = $itemParams->get('aliasoptions');
|
||||
|
||||
if (count($path) > 0 && $aliasToId == $path[count($path) - 1]) {
|
||||
$class[] = 'active';
|
||||
} elseif (in_array($aliasToId, $path)) {
|
||||
$class[] = 'alias-parent-active';
|
||||
}
|
||||
}
|
||||
|
||||
if ($item->type === 'separator') {
|
||||
$class[] = 'divider';
|
||||
}
|
||||
|
||||
if ($showAll) {
|
||||
if ($item->deeper) {
|
||||
$class[] = 'deeper';
|
||||
}
|
||||
|
||||
if ($item->parent) {
|
||||
$class[] = 'parent';
|
||||
}
|
||||
}
|
||||
|
||||
echo '<li class="' . implode(' ', $class) . '">';
|
||||
|
||||
switch ($item->type) :
|
||||
case 'separator':
|
||||
case 'component':
|
||||
case 'heading':
|
||||
case 'url':
|
||||
require ModuleHelper::getLayoutPath('mod_menu', 'dropdown-metismenu_' . $item->type);
|
||||
break;
|
||||
|
||||
default:
|
||||
require ModuleHelper::getLayoutPath('mod_menu', 'dropdown-metismenu_url');
|
||||
endswitch;
|
||||
|
||||
switch (true) :
|
||||
// The next item is deeper.
|
||||
case $showAll && $item->deeper:
|
||||
echo '<ul class="mm-collapse">';
|
||||
break;
|
||||
|
||||
// The next item is shallower.
|
||||
case $item->shallower:
|
||||
echo '</li>';
|
||||
echo str_repeat('</ul></li>', $item->level_diff);
|
||||
break;
|
||||
|
||||
// The next item is on the same level.
|
||||
default:
|
||||
echo '</li>';
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
?></ul>
|
||||
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Filter\OutputFilter;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
|
||||
$attributes = [];
|
||||
|
||||
if ($item->anchor_title) {
|
||||
$attributes['title'] = $item->anchor_title;
|
||||
}
|
||||
|
||||
if ($item->anchor_css) {
|
||||
$attributes['class'] = $item->anchor_css;
|
||||
}
|
||||
|
||||
if ($item->anchor_rel) {
|
||||
$attributes['rel'] = $item->anchor_rel;
|
||||
}
|
||||
|
||||
if ($item->id == $active_id) {
|
||||
$attributes['aria-current'] = 'location';
|
||||
|
||||
if ($item->current) {
|
||||
$attributes['aria-current'] = 'page';
|
||||
}
|
||||
}
|
||||
|
||||
$linktype = $item->title;
|
||||
|
||||
if ($item->menu_icon) {
|
||||
// The link is an icon
|
||||
if ($itemParams->get('menu_text', 1)) {
|
||||
// If the link text is to be displayed, the icon is added with aria-hidden
|
||||
$linktype = '<span class="p-2 ' . $item->menu_icon . '" aria-hidden="true"></span>' . $item->title;
|
||||
} else {
|
||||
// If the icon itself is the link, it needs a visually hidden text
|
||||
$linktype = '<span class="p-2 ' . $item->menu_icon . '" aria-hidden="true"></span><span class="visually-hidden">' . $item->title . '</span>';
|
||||
}
|
||||
} elseif ($item->menu_image) {
|
||||
// The link is an image, maybe with an own class
|
||||
$image_attributes = [];
|
||||
|
||||
if ($item->menu_image_css) {
|
||||
$image_attributes['class'] = $item->menu_image_css;
|
||||
}
|
||||
|
||||
$linktype = HTMLHelper::_('image', $item->menu_image, $item->title, $image_attributes);
|
||||
|
||||
if ($itemParams->get('menu_text', 1)) {
|
||||
$linktype .= '<span class="image-title">' . $item->title . '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($item->browserNav == 1) {
|
||||
$attributes['target'] = '_blank';
|
||||
} elseif ($item->browserNav == 2) {
|
||||
$options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes';
|
||||
|
||||
$attributes['onclick'] = "window.open(this.href, 'targetWindow', '" . $options . "'); return false;";
|
||||
}
|
||||
|
||||
echo HTMLHelper::link(OutputFilter::ampReplace(htmlspecialchars($item->flink, ENT_COMPAT, 'UTF-8', false)), $linktype, $attributes);
|
||||
|
||||
if ($showAll && $item->deeper) {
|
||||
echo '<button class="mm-collapsed mm-toggler mm-toggler-link" aria-haspopup="true" aria-expanded="false" aria-label="' . $item->title . '"></button>';
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
$attributes = [];
|
||||
|
||||
if ($item->anchor_title) {
|
||||
$attributes['title'] = $item->anchor_title;
|
||||
}
|
||||
|
||||
$attributes['class'] = 'mod-menu__heading nav-header';
|
||||
$attributes['class'] .= $item->anchor_css ? ' ' . $item->anchor_css : null;
|
||||
|
||||
$linktype = $item->title;
|
||||
|
||||
if ($item->menu_icon) {
|
||||
// The link is an icon
|
||||
if ($itemParams->get('menu_text', 1)) {
|
||||
// If the link text is to be displayed, the icon is added with aria-hidden
|
||||
$linktype = '<span class="p-2 ' . $item->menu_icon . '" aria-hidden="true"></span>' . $item->title;
|
||||
} else {
|
||||
// If the icon itself is the link, it needs a visually hidden text
|
||||
$linktype = '<span class="p-2 ' . $item->menu_icon . '" aria-hidden="true"></span><span class="visually-hidden">' . $item->title . '</span>';
|
||||
}
|
||||
} elseif ($item->menu_image) {
|
||||
// The link is an image, maybe with an own class
|
||||
$image_attributes = [];
|
||||
|
||||
if ($item->menu_image_css) {
|
||||
$image_attributes['class'] = $item->menu_image_css;
|
||||
}
|
||||
|
||||
$linktype = HTMLHelper::_('image', $item->menu_image, $item->title, $image_attributes);
|
||||
|
||||
if ($itemParams->get('menu_text', 1)) {
|
||||
$linktype .= '<span class="image-title">' . $item->title . '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($showAll && $item->deeper) {
|
||||
$attributes['class'] .= ' mm-collapsed mm-toggler mm-toggler-nolink';
|
||||
$attributes['aria-haspopup'] = 'true';
|
||||
$attributes['aria-expanded'] = 'false';
|
||||
echo '<button ' . ArrayHelper::toString($attributes) . '>' . $linktype . '</button>';
|
||||
} else {
|
||||
echo '<span ' . ArrayHelper::toString($attributes) . '>' . $linktype . '</span>';
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
$attributes = [];
|
||||
|
||||
if ($item->anchor_title) {
|
||||
$attributes['title'] = $item->anchor_title;
|
||||
}
|
||||
|
||||
$attributes['class'] = 'mod-menu__separator separator';
|
||||
$attributes['class'] .= $item->anchor_css ? ' ' . $item->anchor_css : null;
|
||||
|
||||
$linktype = $item->title;
|
||||
|
||||
if ($item->menu_icon) {
|
||||
// The link is an icon
|
||||
if ($itemParams->get('menu_text', 1)) {
|
||||
// If the link text is to be displayed, the icon is added with aria-hidden
|
||||
$linktype = '<span class="p-2 ' . $item->menu_icon . '" aria-hidden="true"></span>' . $item->title;
|
||||
} else {
|
||||
// If the icon itself is the link, it needs a visually hidden text
|
||||
$linktype = '<span class="p-2 ' . $item->menu_icon . '" aria-hidden="true"></span><span class="visually-hidden">' . $item->title . '</span>';
|
||||
}
|
||||
} elseif ($item->menu_image) {
|
||||
// The link is an image, maybe with an own class
|
||||
$image_attributes = [];
|
||||
|
||||
if ($item->menu_image_css) {
|
||||
$image_attributes['class'] = $item->menu_image_css;
|
||||
}
|
||||
|
||||
$linktype = HTMLHelper::_('image', $item->menu_image, $item->title, $image_attributes);
|
||||
|
||||
if ($itemParams->get('menu_text', 1)) {
|
||||
$linktype .= '<span class="image-title">' . $item->title . '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($showAll && $item->deeper) {
|
||||
$attributes['class'] .= ' mm-collapsed mm-toggler mm-toggler-nolink';
|
||||
$attributes['aria-haspopup'] = 'true';
|
||||
$attributes['aria-expanded'] = 'false';
|
||||
echo '<button ' . ArrayHelper::toString($attributes) . '>' . $linktype . '</button>';
|
||||
} else {
|
||||
echo '<span ' . ArrayHelper::toString($attributes) . '>' . $linktype . '</span>';
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_menu
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Filter\OutputFilter;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
|
||||
$attributes = [];
|
||||
|
||||
if ($item->anchor_title) {
|
||||
$attributes['title'] = $item->anchor_title;
|
||||
}
|
||||
|
||||
if ($item->anchor_css) {
|
||||
$attributes['class'] = $item->anchor_css;
|
||||
}
|
||||
|
||||
if ($item->anchor_rel) {
|
||||
$attributes['rel'] = $item->anchor_rel;
|
||||
}
|
||||
|
||||
$linktype = $item->title;
|
||||
|
||||
if ($item->menu_icon) {
|
||||
// The link is an icon
|
||||
if ($itemParams->get('menu_text', 1)) {
|
||||
// If the link text is to be displayed, the icon is added with aria-hidden
|
||||
$linktype = '<span class="p-2 ' . $item->menu_icon . '" aria-hidden="true"></span>' . $item->title;
|
||||
} else {
|
||||
// If the icon itself is the link, it needs a visually hidden text
|
||||
$linktype = '<span class="p-2 ' . $item->menu_icon . '" aria-hidden="true"></span><span class="visually-hidden">' . $item->title . '</span>';
|
||||
}
|
||||
} elseif ($item->menu_image) {
|
||||
// The link is an image, maybe with an own class
|
||||
$image_attributes = [];
|
||||
|
||||
if ($item->menu_image_css) {
|
||||
$image_attributes['class'] = $item->menu_image_css;
|
||||
}
|
||||
|
||||
$linktype = HTMLHelper::_('image', $item->menu_image, $item->title, $image_attributes);
|
||||
|
||||
if ($itemParams->get('menu_text', 1)) {
|
||||
$linktype .= '<span class="image-title">' . $item->title . '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($item->browserNav == 1) {
|
||||
$attributes['target'] = '_blank';
|
||||
$attributes['rel'] = 'noopener noreferrer';
|
||||
|
||||
if ($item->anchor_rel == 'nofollow') {
|
||||
$attributes['rel'] .= ' nofollow';
|
||||
}
|
||||
} elseif ($item->browserNav == 2) {
|
||||
$options = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,' . $params->get('window_open');
|
||||
|
||||
$attributes['onclick'] = "window.open(this.href, 'targetWindow', '" . $options . "'); return false;";
|
||||
}
|
||||
|
||||
echo HTMLHelper::link(OutputFilter::ampReplace(htmlspecialchars($item->flink, ENT_COMPAT, 'UTF-8', false)), $linktype, $attributes);
|
||||
|
||||
if ($showAll && $item->deeper) {
|
||||
echo '<button class="mm-collapsed mm-toggler mm-toggler-link" aria-haspopup="true" aria-expanded="false" aria-label="' . $item->title . '"></button>';
|
||||
}
|
||||
1
templates/instytut_dendrologii_/html/tinymce/index.html
Normal file
1
templates/instytut_dendrologii_/html/tinymce/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
2655
templates/instytut_dendrologii_/index.php
Normal file
2655
templates/instytut_dendrologii_/index.php
Normal file
File diff suppressed because it is too large
Load Diff
27
templates/instytut_dendrologii_/joomla.asset.json
Normal file
27
templates/instytut_dendrologii_/joomla.asset.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
|
||||
"name": "template",
|
||||
"version": "4.0.0",
|
||||
"description": "This file contains details of the assets used by site template.",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"assets": [
|
||||
{
|
||||
"name": "template.default",
|
||||
"type": "preset",
|
||||
"dependencies": [
|
||||
"template.global#style"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "template.global",
|
||||
"type": "style",
|
||||
"uri": "global.css"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "fontawesome",
|
||||
"type": "style",
|
||||
"uri": "system/joomla-fontawesome.min.css"
|
||||
}
|
||||
]
|
||||
}
|
||||
10
templates/instytut_dendrologii_/js/50.js
Normal file
10
templates/instytut_dendrologii_/js/50.js
Normal file
@@ -0,0 +1,10 @@
|
||||
window.addEventListener('load', () => {
|
||||
linkczyt();
|
||||
})
|
||||
function linkczyt(){
|
||||
document.querySelectorAll('a').forEach(items => {
|
||||
items.removeAttribute('title')
|
||||
})
|
||||
var link=document.querySelector('.linkd p').innerHTML;
|
||||
document.querySelector('.nasze-publikacje .jt-cs p.readmore a').setAttribute('href',link);
|
||||
}
|
||||
33
templates/instytut_dendrologii_/js/ac1.js
Normal file
33
templates/instytut_dendrologii_/js/ac1.js
Normal file
@@ -0,0 +1,33 @@
|
||||
window.addEventListener('load' , () => {
|
||||
showAcordian1();
|
||||
})
|
||||
function showAcordian1(){
|
||||
console.log('funkcja akordian się ładuje')
|
||||
var rtlasta='';
|
||||
var noweid='';
|
||||
|
||||
var it= document.querySelector('.itemid-130');
|
||||
if(it){
|
||||
|
||||
}else{
|
||||
document.querySelectorAll(' div[data-rlta-element]').forEach(items => {
|
||||
items.addEventListener('click', () => {
|
||||
var idnag=items.id.replace('rlta','rlta-panel');
|
||||
document.querySelector('#'+items.id+' .vka').classList.toggle('tros');
|
||||
document.querySelector('#'+idnag).classList.toggle('dbo');
|
||||
|
||||
|
||||
}
|
||||
|
||||
)
|
||||
|
||||
})
|
||||
|
||||
|
||||
document.querySelectorAll('[data-rlta-element=container][data-rlta-state=ready][data-rlta-type=accordions]>[data-rlta-element=button]>[data-rlta-element=heading]').forEach(vas => {
|
||||
vas.innerHTML=vas.innerHTML+'<span class="vka">></span>'
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
60
templates/instytut_dendrologii_/js/acc.js
Normal file
60
templates/instytut_dendrologii_/js/acc.js
Normal file
@@ -0,0 +1,60 @@
|
||||
window.addEventListener('load' , () => {
|
||||
// showAcordian();
|
||||
})
|
||||
function showAcordian(){
|
||||
console.log('funkcja akordian się ładuje')
|
||||
var rtlasta='';
|
||||
var noweid='';
|
||||
document.querySelectorAll('.itemid-130 div[data-rlta-state]').forEach(ac => {
|
||||
if(ac.id.includes('panel')){
|
||||
rtlasta=rtlasta+ac.outerHTML;
|
||||
ac.remove();
|
||||
}
|
||||
|
||||
})
|
||||
console.log(rtlasta)
|
||||
document.querySelector('.itemid-130 .akordian-zawartosc').innerHTML=rtlasta;
|
||||
|
||||
document.querySelectorAll('.itemid-130 div[data-rlta-element]').forEach(items => {
|
||||
items.addEventListener('click', () => {
|
||||
var idnag=items.id.replace('rlta','rlta-panel');
|
||||
|
||||
|
||||
if(idnag.length>0){
|
||||
console.log(idnag);
|
||||
|
||||
document.querySelectorAll('.itemid-130 .akordian-zawartosc div[data-rlta-state]').forEach(state => {
|
||||
|
||||
|
||||
if(state.id.length>0)
|
||||
{
|
||||
if(idnag==state.id){
|
||||
|
||||
console.log('Te są równe '+idnag+' '+state.id);
|
||||
document.querySelector('#'+idnag).style.setProperty('display','block');
|
||||
}else {
|
||||
console.log('Nie równe '+idnag+' '+state.id);
|
||||
document.querySelector('#'+state.id).style.setProperty('display','none');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
document.querySelector('#'+idnag).style.setProperty('display','block');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
11
templates/instytut_dendrologii_/js/aktualno.js
Normal file
11
templates/instytut_dendrologii_/js/aktualno.js
Normal file
@@ -0,0 +1,11 @@
|
||||
window.addEventListener('load', () => {
|
||||
donoshowarticle();
|
||||
})
|
||||
function donoshowarticle(){
|
||||
|
||||
var link= window.location.href;
|
||||
if(link.toLocaleLowerCase().includes('aktualnosci-post?view=article') || link.toLocaleLowerCase().includes('filmy-popularno-naukowe?view=') || link.toLocaleLowerCase().includes('popularyzacja?view')){
|
||||
document.querySelector('.nposts').style.setProperty('display','none');
|
||||
}
|
||||
|
||||
}
|
||||
14
templates/instytut_dendrologii_/js/aktualnosciposition.js
Normal file
14
templates/instytut_dendrologii_/js/aktualnosciposition.js
Normal file
@@ -0,0 +1,14 @@
|
||||
window.addEventListener('load', () => {
|
||||
mspacjekasowanie();
|
||||
})
|
||||
|
||||
function mspacjekasowanie(){
|
||||
|
||||
document.querySelectorAll('.aktualno .jt-introtext p').forEach(items => {
|
||||
|
||||
if(items.innerHTML==' '){
|
||||
console.log(items.innerHTML +'aktualnospo');
|
||||
items.style.setProperty('display','none') ; }
|
||||
})
|
||||
|
||||
}
|
||||
21
templates/instytut_dendrologii_/js/alty.js
Normal file
21
templates/instytut_dendrologii_/js/alty.js
Normal file
@@ -0,0 +1,21 @@
|
||||
window.addEventListener('load', () => {
|
||||
|
||||
alts1();
|
||||
})
|
||||
|
||||
function alts1(){
|
||||
document.querySelectorAll('.stones p img').forEach(ima =>{
|
||||
var imaa=ima.src.replace('https://instytut.grupaww.jchost09.pl/images/Arboretum/fotoaktualnosci/','').replace('.webp','');
|
||||
|
||||
document.querySelectorAll('.wzwo a').forEach(lapt => {
|
||||
|
||||
if(lapt.href.includes(imaa)){
|
||||
console.log('te alty'+lapt.href);
|
||||
ima.setAttribute('alt',lapt.innerHTML);
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
window.addEventListener('load', () => {
|
||||
arbododofoto();
|
||||
}
|
||||
)
|
||||
function arbododofoto(){
|
||||
document.querySelectorAll('.arboretum-nappodzd img,.krzywe-zdjecia img').forEach(aimg => {
|
||||
aimg.addEventListener('click', () => {
|
||||
window.location.href='/edukacja-i-turystyka/fotoaktualnosci';
|
||||
})
|
||||
})
|
||||
}
|
||||
0
templates/instytut_dendrologii_/js/awyr.js
Normal file
0
templates/instytut_dendrologii_/js/awyr.js
Normal file
12
templates/instytut_dendrologii_/js/bibliotekazamiana.js
Normal file
12
templates/instytut_dendrologii_/js/bibliotekazamiana.js
Normal file
@@ -0,0 +1,12 @@
|
||||
window.addEventListener('load', () => {
|
||||
zamianamiejsc();
|
||||
})
|
||||
function zamianamiejsc(){
|
||||
|
||||
var naglowek= document.querySelector('.biblio .grid-instytut .page-header h1').innerHTML;
|
||||
console.log(naglowek.replaceAll(' ','')+naglowek.length);
|
||||
if(naglowek.replaceAll(' ','').includes('Biblioteka') && naglowek.length<33){
|
||||
console.log('bibliotek.'+naglowek.replaceAll(' ',''));
|
||||
document.querySelector('.historia-artylul').style.setProperty('flex-direction','column','important');
|
||||
}
|
||||
}
|
||||
32
templates/instytut_dendrologii_/js/bipmenuc.js
Normal file
32
templates/instytut_dendrologii_/js/bipmenuc.js
Normal file
@@ -0,0 +1,32 @@
|
||||
window.addEventListener('load', () => {
|
||||
menuc();
|
||||
})
|
||||
|
||||
function menuc(){
|
||||
var liczba=0;
|
||||
document.querySelectorAll('.menu-bip ul li').forEach(items => {
|
||||
liczba++;
|
||||
items.id='lbip'+liczba;
|
||||
items.addEventListener('click', () => {
|
||||
console.log('bip'+items.id);
|
||||
document.querySelectorAll('.menu-bip ul ').forEach(items1 => {
|
||||
if(items1.id==items.id){
|
||||
|
||||
} else{
|
||||
|
||||
items1.classList.remove('dblock1');
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
|
||||
} )
|
||||
})
|
||||
document.querySelectorAll('.menu-bip ul li').forEach(list => {
|
||||
list.addEventListener('click', () => {
|
||||
list.querySelector('ul').classList.toggle('dblock1');
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
32
templates/instytut_dendrologii_/js/blocoverflowydarzenia.js
Normal file
32
templates/instytut_dendrologii_/js/blocoverflowydarzenia.js
Normal file
@@ -0,0 +1,32 @@
|
||||
window.addEventListener('load', () => {
|
||||
blockarrow();
|
||||
})
|
||||
window.addEventListener('unload', () => {
|
||||
blockarrow();
|
||||
})
|
||||
function blockarrow(){
|
||||
|
||||
|
||||
var liczba=0;
|
||||
document.querySelector('.wydarzenia .owl-prev').style.setProperty('pointer-events','none');
|
||||
var iloscdivow=Math.round(new Number(document.querySelectorAll('.wydarzenia .owl-item').length/2-1));
|
||||
|
||||
document.querySelector('.wydarzenia .owl-prev ').addEventListener('click', () => {
|
||||
liczba--;
|
||||
|
||||
if(liczba < 1){
|
||||
document.querySelector('.wydarzenia .owl-prev').style.setProperty('pointer-events','none');
|
||||
}
|
||||
document.querySelector('.wydarzenia .owl-next').style.removeProperty('pointer-events');
|
||||
})
|
||||
document.querySelector('.wydarzenia .owl-next ').addEventListener('click', () => {
|
||||
liczba++;
|
||||
|
||||
if(liczba==iloscdivow){
|
||||
console.log('liczby sa rowne');
|
||||
document.querySelector('.wydarzenia .owl-next').style.setProperty('pointer-events','none');
|
||||
}
|
||||
document.querySelector('.wydarzenia .owl-prev').style.removeProperty('pointer-events');
|
||||
|
||||
})
|
||||
}
|
||||
7
templates/instytut_dendrologii_/js/category.js
Normal file
7
templates/instytut_dendrologii_/js/category.js
Normal file
@@ -0,0 +1,7 @@
|
||||
window.addEventListener('load', () => {
|
||||
categoryDisplaySeminaria();
|
||||
})
|
||||
function categoryDisplaySeminaria(){
|
||||
var link = document.querySelector('.menu-seminaria ul .active a').innerHTML.replace('Seminaria','Seminaria instytutu dendrologii');
|
||||
document.querySelector('.semi .category-name').innerHTML=link;
|
||||
}
|
||||
19
templates/instytut_dendrologii_/js/changebold.js
Normal file
19
templates/instytut_dendrologii_/js/changebold.js
Normal file
@@ -0,0 +1,19 @@
|
||||
window.addEventListener('load' , () => {
|
||||
changebold();
|
||||
})
|
||||
function changebold(){
|
||||
var tab=[];
|
||||
document.querySelectorAll('.menu-instytut ul li a,.menu-instytut ul li a').forEach(links => {
|
||||
if(links.hasAttribute('style')){
|
||||
tab.push(links.parentNode.id);
|
||||
|
||||
}
|
||||
})
|
||||
document.querySelector('#'+tab[2]+' :first-child').removeAttribute('style');
|
||||
document.querySelector('#'+tab[3]+' :first-child').removeAttribute('style');
|
||||
document.querySelector('#'+tab[4]+' :first-child').removeAttribute('style');
|
||||
document.querySelector('#'+tab[5]+' :first-child').removeAttribute('style');
|
||||
document.querySelector('#'+tab[6]+' :first-child').removeAttribute('style');
|
||||
document.querySelector('#'+tab[7]+' :first-child').removeAttribute('style');
|
||||
console.log('pogrubione'+'#'+tab[2]);
|
||||
}
|
||||
0
templates/instytut_dendrologii_/js/closeslide.js
Normal file
0
templates/instytut_dendrologii_/js/closeslide.js
Normal file
11
templates/instytut_dendrologii_/js/cookietranslate.js
Normal file
11
templates/instytut_dendrologii_/js/cookietranslate.js
Normal file
@@ -0,0 +1,11 @@
|
||||
window.addEventListener('load', () => {
|
||||
translatecookie();
|
||||
})
|
||||
|
||||
function translatecookie(){
|
||||
document.querySelector('#c-txt').innerHTML='W ramach naszej witryny stosujemy pliki cookies. Jeśli nie chcesz, by pliki cookies były zapisywane na Twoim dysku, zmień ustawienia swojej przeglądarki.<div class="cwiecej"><a href="/cookie">więcej informacji</a></div>';
|
||||
document.querySelector('#c-ttl').innerHTML='Używamy cookies';
|
||||
document.querySelector('#c-bns.swap button:first-child').innerHTML='więcej szczegółów';
|
||||
document.querySelector('#c-bns.swap button:last-child').innerHTML='Akceptuj';
|
||||
|
||||
}
|
||||
79
templates/instytut_dendrologii_/js/datewithcategory.js
Normal file
79
templates/instytut_dendrologii_/js/datewithcategory.js
Normal file
@@ -0,0 +1,79 @@
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
setIDSforSlides();
|
||||
})
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
showAllCAt();
|
||||
showallthis()
|
||||
})
|
||||
|
||||
function setIDSforSlides() {
|
||||
var liczba = 0;
|
||||
document.querySelectorAll('.aktualno .jt-cs .slide').forEach(is => {
|
||||
liczba++;
|
||||
is.id = 'sli' + liczba;
|
||||
})
|
||||
}
|
||||
|
||||
function showAllCAt() {
|
||||
var stos = document.querySelector('.aktualno .jt-inner');
|
||||
|
||||
document.querySelectorAll('.aktualno .cat-link').forEach(links => {
|
||||
var id = links.parentNode.parentNode.parentNode.id;
|
||||
console.log('id' + id);
|
||||
var war = document.querySelector('#' + id + ' .jtc_introdate').innerHTML.replace('<br>', '');
|
||||
document.querySelector('#' + id + ' .cat-link').innerHTML = document.querySelector('#' + id + ' .cat-link').innerHTML + '<div class="myFlix1">' + war + '</div>';
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function showallthis() {
|
||||
var liczbax=0;
|
||||
document.querySelectorAll('.aktualno .jt-cs .slide .jt-inner').forEach(redd => {
|
||||
liczbax++;
|
||||
redd.innerHTML=redd.innerHTML+'<div class="mback" id="mli'+liczbax+'"></div>';
|
||||
})
|
||||
|
||||
|
||||
|
||||
document.querySelectorAll('.aktualno .jt-cs .slide').forEach(iss => {
|
||||
|
||||
iss.addEventListener('mouseover', () => {
|
||||
document.querySelector('#'+iss.id+' .jt-title').style.setProperty('display','block');
|
||||
document.querySelector('#'+iss.id+' .jt-author').style.setProperty('display','block','important');
|
||||
document.querySelector(' #'+iss.id+' .jt-introtext').style.setProperty('display','block');
|
||||
document.querySelector(' #'+iss.id+' .readmore').style.setProperty('display','block');
|
||||
|
||||
document.querySelector('#'+iss.id+' .jt-date').style.setProperty('display','block');
|
||||
document.querySelector('#'+iss.id+' .jt-category').style.setProperty('display','none');
|
||||
document.querySelector('#'+iss.id+' .mback').classList.add('klasx');
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
iss.addEventListener('mouseout', () => {
|
||||
document.querySelector('#'+iss.id+' .jt-title').style.removeProperty('display');
|
||||
document.querySelector('#'+iss.id+' .jt-author').style.removeProperty('display');
|
||||
document.querySelector(' #'+iss.id+' .jt-introtext').style.removeProperty('display');
|
||||
document.querySelector(' #'+iss.id+' .readmore').style.removeProperty('display');
|
||||
|
||||
document.querySelector('#'+iss.id+' .jt-date').style.removeProperty('display');
|
||||
document.querySelector('#'+iss.id+' .jt-category').style.removeProperty('display');
|
||||
document.querySelector('#'+iss.id+' .mback').classList.remove('klasx');
|
||||
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
}
|
||||
23
templates/instytut_dendrologii_/js/dendrobold.js
Normal file
23
templates/instytut_dendrologii_/js/dendrobold.js
Normal file
@@ -0,0 +1,23 @@
|
||||
window.addEventListener('load', () => {
|
||||
bolddenmenu();
|
||||
})
|
||||
function bolddenmenu(){
|
||||
var link=window.location.href;
|
||||
document.querySelectorAll('.dendro-menu ul li a').forEach(ils => {
|
||||
if(link.includes(ils.href)){
|
||||
ils.style.setProperty('font-weight','800');
|
||||
ils.parentNode.style.setProperty('font-weight','800');
|
||||
ils.parentNode.parentNode.style.setProperty('font-weight','800');
|
||||
ils.parentNode.parentNode.parentNode.style.setProperty('font-weight','800');
|
||||
ils.closest('ul').parentNode.children[0].style.setProperty('font-weight','800');
|
||||
ils.closest('ul').parentNode.parentNode.children[0].style.setProperty('font-weight','800');
|
||||
}
|
||||
|
||||
})
|
||||
if(link.includes('vol')){
|
||||
document.querySelector('.dendro-menu ul li:nth-child(2) a').style.setProperty('font-weight','800');
|
||||
}
|
||||
if(link.includes('review')){
|
||||
document.querySelector('.dendro-menu ul li:nth-child(3) a').style.setProperty('font-weight','800');
|
||||
}
|
||||
}
|
||||
17
templates/instytut_dendrologii_/js/dendroorep.js
Normal file
17
templates/instytut_dendrologii_/js/dendroorep.js
Normal file
@@ -0,0 +1,17 @@
|
||||
window.addEventListener('load', () => {
|
||||
repos();
|
||||
|
||||
})
|
||||
function repos(){
|
||||
document.querySelectorAll('.view-article .dendro-art .page-header ').forEach(rep => {
|
||||
|
||||
var fi= rep.children[0].innerHTML.toLowerCase().replaceAll(' ','')
|
||||
var la= rep.children[1].innerHTML.toLowerCase().replaceAll(' ','')
|
||||
console.log(fi+' - '+la);
|
||||
if(fi==la){
|
||||
rep.children[1].style.setProperty('display','none');
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
30
templates/instytut_dendrologii_/js/dendrorep.js
Normal file
30
templates/instytut_dendrologii_/js/dendrorep.js
Normal file
@@ -0,0 +1,30 @@
|
||||
window.addEventListener('load', () => {
|
||||
repdendro();
|
||||
})
|
||||
|
||||
function repdendro(){
|
||||
|
||||
document.querySelectorAll('.dendro-art .com-content-article__body p').forEach(ded => {
|
||||
|
||||
if(ded.innerHTML.includes('Dendro') && ded.innerHTML.includes('vol') || ded.innerHTML.includes('http') || ded.innerHTML.includes('Full') || ded.innerHTML.includes('Supple') || ded.innerHTML.includes('pdf')){
|
||||
ded.childNodes.forEach( childes => {
|
||||
try{
|
||||
childes.style.setProperty('margin','0','important');
|
||||
childes.style.setProperty('padding','0','important');
|
||||
}catch(error){
|
||||
|
||||
}
|
||||
if(ded.innerHTML.includes('pdf')){
|
||||
ded.innerHTML='<div class="dekor"><img src="/images/seminaria/dendrokar.png">'+ded.innerHTML+'</div>';
|
||||
}
|
||||
if(ded.innerHTML.includes('mail')){
|
||||
ded.innerHTML='<div class="dekor"><img src="/images/seminaria/dendrem.png">'+ded.innerHTML+'</div>';
|
||||
}
|
||||
})
|
||||
ded.style.setProperty('padding','0','important');
|
||||
ded.style.setProperty('margin','0','important');
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
24
templates/instytut_dendrologii_/js/dendrorepairarticle.js
Normal file
24
templates/instytut_dendrologii_/js/dendrorepairarticle.js
Normal file
@@ -0,0 +1,24 @@
|
||||
window.addEventListener('load' ,() =>{
|
||||
checkdenandrep2();
|
||||
checkdenandrep22();
|
||||
})
|
||||
function checkdenandrep2(){
|
||||
liczba=0;
|
||||
document.querySelectorAll('.grid-dendrocontent .dendro-art .com-content-article p').forEach(dn => {
|
||||
liczba++;
|
||||
dn.id='gxz'+liczba;
|
||||
})
|
||||
}
|
||||
function checkdenandrep22(){
|
||||
document.querySelectorAll('.grid-dendrocontent .dendro-art .com-content-article p').forEach(dn => {
|
||||
if(dn.innerHTML.includes('Dendrob') && dn.innerHTML.includes('vol') && dn.innerHTML.includes(':')){
|
||||
|
||||
var id= dn.id.replace('gxz','');
|
||||
document.querySelector('#gxz'+id).classList.add('grutxz');
|
||||
var id1=id-1;
|
||||
document.querySelector('#gxz'+id1).classList.add('grutz');
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
36
templates/instytut_dendrologii_/js/dendrorepairold.js
Normal file
36
templates/instytut_dendrologii_/js/dendrorepairold.js
Normal file
@@ -0,0 +1,36 @@
|
||||
window.addEventListener('load' ,() =>{
|
||||
checkdenandrep();
|
||||
checkdenandrep1();
|
||||
})
|
||||
function checkdenandrep(){
|
||||
liczba=0;
|
||||
document.querySelectorAll('.grid-dendrocontent .dendro-art .blog-items .item-content p,.grid-dendrocontent .dendro-art .blog-items .item-content div').forEach(dn => {
|
||||
liczba++;
|
||||
dn.id='gx'+liczba;
|
||||
dn.classList.add('dpol');
|
||||
})
|
||||
}
|
||||
function checkdenandrep1(){
|
||||
document.querySelectorAll('.grid-dendrocontent .dendro-art .blog-items .item-content p,.grid-dendrocontent .dendro-art .blog-items .item-content div').forEach(dn => {
|
||||
if(dn.innerHTML.includes('Dendrob') && dn.innerHTML.includes('vol')){
|
||||
|
||||
var id= dn.id.replace('gx','');
|
||||
document.querySelector('#gx'+id).classList.add('grutx');
|
||||
var id1=id-1;
|
||||
document.querySelector('#gx'+id1).classList.add('grut');
|
||||
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
document.querySelectorAll('.dpol').forEach(dpols => {
|
||||
var poles= dpols.innerHTML;
|
||||
if(poles.includes('Dendro') && poles.includes('Full')){
|
||||
dpols.innerHTML=dpols.innerHTML.replace('Full','<p>Full').replace('f)','f)</p>').replaceAll('span','p');
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
26
templates/instytut_dendrologii_/js/dodajmetryczke.js
Normal file
26
templates/instytut_dendrologii_/js/dodajmetryczke.js
Normal file
@@ -0,0 +1,26 @@
|
||||
window.addEventListener('load', () => {
|
||||
dodajmetryczke();
|
||||
|
||||
})
|
||||
|
||||
function dodajmetryczke() {
|
||||
var met=0;
|
||||
document.querySelectorAll('.grid-bip .article-info ').forEach(mte => {
|
||||
met++;
|
||||
mte.innerHTML='<div id="met'+met+'" class="infometryczka"><p class="metryczka" style="font-size:16px !important">METRYCZKA</p></div><div class="infox">'+mte.innerHTML+'</div>';
|
||||
})
|
||||
document.querySelectorAll('.metryczka').forEach(metr => {
|
||||
|
||||
|
||||
var inda= metr.parentNode.id;
|
||||
if(inda.length>0){
|
||||
console.log('inda len #'+inda+" "+inda.length);
|
||||
metr.addEventListener('click', () => {
|
||||
|
||||
|
||||
metr.closest('.article-info').lastChild.classList.toggle('d-block');
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
19
templates/instytut_dendrologii_/js/dolnemenubold.js
Normal file
19
templates/instytut_dendrologii_/js/dolnemenubold.js
Normal file
@@ -0,0 +1,19 @@
|
||||
window.addEventListener('load', () => {
|
||||
boldmenu();
|
||||
})
|
||||
function boldmenu(){
|
||||
var link=window.location.href;
|
||||
|
||||
document.querySelectorAll('.menu-instytut li a').forEach(ils => {
|
||||
|
||||
if(link.includes(ils.href)){
|
||||
console.log('dolne menu bold dziala1');
|
||||
ils.style.setProperty('font-weight','800');
|
||||
ils.parentNode.style.setProperty('font-weight','800');
|
||||
ils.parentNode.parentNode.style.setProperty('font-weight','800');
|
||||
ils.parentNode.parentNode.parentNode.style.setProperty('font-weight','800');
|
||||
ils.closest('ul').parentNode.children[0].style.setProperty('font-weight','800');
|
||||
ils.closest('ul').parentNode.parentNode.children[0].style.setProperty('font-weight','800');
|
||||
}
|
||||
})
|
||||
}
|
||||
13
templates/instytut_dendrologii_/js/drugi.js
Normal file
13
templates/instytut_dendrologii_/js/drugi.js
Normal file
@@ -0,0 +1,13 @@
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
repslides();
|
||||
})
|
||||
function repslides(){
|
||||
document.querySelectorAll('.aktualno .slide:first-child .jt-imagecover').forEach(items => {
|
||||
try{
|
||||
items.innerHTML=items.closest('.slide').querySelector('.drugie').outerHTML;
|
||||
}catch(error){
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
10
templates/instytut_dendrologii_/js/errorcheck.js
Normal file
10
templates/instytut_dendrologii_/js/errorcheck.js
Normal file
@@ -0,0 +1,10 @@
|
||||
window.addEventListener('load', () => {
|
||||
erroclickcheck();
|
||||
})
|
||||
function erroclickcheck(){
|
||||
var okr=document.querySelector('.okrd1').innerHTML.length;
|
||||
console.log('długość okr'+okr)
|
||||
if(okr==0){
|
||||
document.querySelector('.grid-instytut .grik .article-info').style.setProperty('display','none');
|
||||
}
|
||||
}
|
||||
12
templates/instytut_dendrologii_/js/formyzwiedzania.js
Normal file
12
templates/instytut_dendrologii_/js/formyzwiedzania.js
Normal file
@@ -0,0 +1,12 @@
|
||||
window.addEventListener('load', () => {
|
||||
gotolink();
|
||||
})
|
||||
function gotolink(){
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const parametr1 = urlParams.get('zwiedzanie');
|
||||
document.querySelector('#'+parametr1).style.setProperty('backround','black');
|
||||
document.querySelector('#'+parametr1).nextElementSibling.click();
|
||||
|
||||
document.querySelector('#'+parametr1).scrollIntoView();
|
||||
console.log('parametrget'+'#'+parametr1)
|
||||
}
|
||||
142
templates/instytut_dendrologii_/js/fotoaktualnosciview.js
Normal file
142
templates/instytut_dendrologii_/js/fotoaktualnosciview.js
Normal file
@@ -0,0 +1,142 @@
|
||||
window.addEventListener('load', () => {
|
||||
uzupelnijrok();
|
||||
fotoviewe();
|
||||
|
||||
})
|
||||
function uzupelnijrok(){
|
||||
var options='';
|
||||
const startYear = 2011;
|
||||
const currentYear = new Date().getFullYear();
|
||||
|
||||
for (let year = startYear; year <= currentYear; year++) {
|
||||
console.log(year);
|
||||
options=options+'<option value='+year+'>'+year+'</option>';
|
||||
}
|
||||
var adresurl=window.location.href;
|
||||
var selc='';
|
||||
if(adresurl.includes('en-us')){
|
||||
selc='<span class="rok-sp">YEAR</span><select><option value="" placeholder="wybierz">ALL</option>';
|
||||
}else{
|
||||
selc='<span class="rok-sp">ROK</span><select><option value="" placeholder="wybierz">ALL</option>';
|
||||
}
|
||||
|
||||
document.querySelector('.arbo-rok').innerHTML=selc+options+'</select>';
|
||||
}
|
||||
|
||||
function fotoviewe(){
|
||||
var zdj='';
|
||||
document.querySelector('.arbo-szukaj').addEventListener('click', () => {
|
||||
try{
|
||||
document.querySelector('.fotoox').remove();
|
||||
}catch(error){}
|
||||
|
||||
document.querySelector('.fotexs').innerHTML='';
|
||||
zdj='';
|
||||
var rok= document.querySelector('.arbo-rok select ').value;
|
||||
|
||||
var miesiac= document.querySelector('.arbo-miesiac select ').value;
|
||||
// Pobierz obecny URL
|
||||
let current_url = window.location.href;
|
||||
|
||||
// Sprawdź, czy URL zawiera 'en-us'
|
||||
if (current_url.includes('en-us')) {
|
||||
// Angielskie nazwy miesięcy
|
||||
if (miesiac == 'January') {
|
||||
miesiac = '01';
|
||||
} else if (miesiac == 'February') {
|
||||
miesiac = '02';
|
||||
} else if (miesiac == 'March') {
|
||||
miesiac = '03';
|
||||
} else if (miesiac == 'April') {
|
||||
miesiac = '04';
|
||||
} else if (miesiac == 'May') {
|
||||
miesiac = '05';
|
||||
} else if (miesiac == 'June') {
|
||||
miesiac = '06';
|
||||
} else if (miesiac == 'July') {
|
||||
miesiac = '07';
|
||||
} else if (miesiac == 'August') {
|
||||
miesiac = '08';
|
||||
} else if (miesiac == 'September') {
|
||||
miesiac = '09';
|
||||
} else if (miesiac == 'October') {
|
||||
miesiac = '10';
|
||||
} else if (miesiac == 'November') {
|
||||
miesiac = '11';
|
||||
} else if (miesiac == 'December') {
|
||||
miesiac = '12';
|
||||
}
|
||||
} else {
|
||||
// Polskie nazwy miesięcy
|
||||
if (miesiac == 'Styczeń') {
|
||||
miesiac = '01';
|
||||
} else if (miesiac == 'Luty') {
|
||||
miesiac = '02';
|
||||
} else if (miesiac == 'Marzec') {
|
||||
miesiac = '03';
|
||||
} else if (miesiac == 'Kwiecień') {
|
||||
miesiac = '04';
|
||||
} else if (miesiac == 'Maj') {
|
||||
miesiac = '05';
|
||||
} else if (miesiac == 'Czerwiec') {
|
||||
miesiac = '06';
|
||||
} else if (miesiac == 'Lipiec') {
|
||||
miesiac = '07';
|
||||
} else if (miesiac == 'Sierpień') {
|
||||
miesiac = '08';
|
||||
} else if (miesiac == 'Wrzesień') {
|
||||
miesiac = '09';
|
||||
} else if (miesiac == 'Październik') {
|
||||
miesiac = '10';
|
||||
} else if (miesiac == 'Listopad') {
|
||||
miesiac = '11';
|
||||
} else if (miesiac == 'Grudzień') {
|
||||
miesiac = '12';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
console.log(rok);
|
||||
document.querySelectorAll('.grid-arboretumfotoaktualnosci .com-content-article__body tr td:first-child').forEach(dates => {
|
||||
var datazdjecia=dates.innerHTML.replace('/images/Arboretum/fotoaktualnosci/','').substring(0,10);
|
||||
var zrok=dates.innerHTML.replace('/images/Arboretum/fotoaktualnosci/','').substring(0,4);
|
||||
var zmiesiac=dates.innerHTML.replace('/images/Arboretum/fotoaktualnosci/','').substring(5,7);
|
||||
|
||||
|
||||
// zdj=zdj+'<div><img src="'+dates.innerHTML+'" alt="'+dates.closest('tr').children[1].innerHTML+'"></div>';
|
||||
// zdj=zdj+'<div><img src="'+dates.innerHTML+'" alt="'+zrok+'_'+zmiesiac+'"></div>';
|
||||
|
||||
if(miesiac==zmiesiac && rok==zrok){
|
||||
|
||||
// zdj=zdj+'<div data-lightbox="my-gallery"><img src="'+dates.innerHTML+'" alt="'+dates.closest('tr').children[1].innerHTML+'"></div>';
|
||||
|
||||
zdj=zdj+ '<a href="'+dates.innerHTML+'" data-lightbox="my-gallery" data-title="'+datazdjecia+'<br>'+dates.closest('tr').children[1].innerHTML+'"><img title="'+dates.closest('tr').children[1].innerHTML+'" alt="'+dates.closest('tr').children[1].innerHTML+'" src="'+dates.innerHTML+'"></a>';
|
||||
|
||||
}
|
||||
if(miesiac.length==0 && rok.length==0) {
|
||||
// zdj=zdj+'<div data-lightbox="my-gallery"><img src="'+dates.innerHTML+'" alt="'+dates.closest('tr').children[1].innerHTML+'"></div>';
|
||||
zdj=zdj+ '<a href="'+dates.innerHTML+'" data-lightbox="my-gallery" data-title="'+datazdjecia+'<br>'+dates.closest('tr').children[1].innerHTML+'"><img title="'+dates.closest('tr').children[1].innerHTML+'" alt="'+dates.closest('tr').children[1].innerHTML+'" src="'+dates.innerHTML+'"></a>';
|
||||
|
||||
}
|
||||
if(rok==zrok && miesiac.length==0 ){
|
||||
console.log(rok+'rok rowna sie rok');
|
||||
// zdj=zdj+'<div data-lightbox="my-gallery"><img src="'+dates.innerHTML+'" alt="'+dates.closest('tr').children[1].innerHTML+'"></div>';
|
||||
zdj=zdj+ '<a href="'+dates.innerHTML+'" data-lightbox="my-gallery" data-title="'+datazdjecia+'<br>'+dates.closest('tr').children[1].innerHTML+'"><img title="'+dates.closest('tr').children[1].innerHTML+'" alt="'+dates.closest('tr').children[1].innerHTML+'" src="'+dates.innerHTML+'"></a>';
|
||||
|
||||
}
|
||||
if(miesiac==zmiesiac && rok.length==0 ){
|
||||
|
||||
// zdj=zdj+'<div data-lightbox="my-gallery"><img src="'+dates.innerHTML+'" alt="'+dates.closest('tr').children[1].innerHTML+'"></div>';
|
||||
zdj=zdj+ '<a href="'+dates.innerHTML+'" data-lightbox="my-gallery" data-title="'+datazdjecia+'<br>'+dates.closest('tr').children[1].innerHTML+'"><img title="'+dates.closest('tr').children[1].innerHTML+'" alt="'+dates.closest('tr').children[1].innerHTML+'" src="'+dates.innerHTML+'"></a>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
document.querySelector('.fotexs').innerHTML=zdj;
|
||||
})
|
||||
}
|
||||
|
||||
20
templates/instytut_dendrologii_/js/fotoaktualnosciwyroop.js
Normal file
20
templates/instytut_dendrologii_/js/fotoaktualnosciwyroop.js
Normal file
@@ -0,0 +1,20 @@
|
||||
window.addEventListener("DOMContentLoaded", function() {
|
||||
var mySelect = document.getElementById(".arbo-rok select");
|
||||
var mySelec1 = document.getElementById(".arbo-miesiac select");
|
||||
select3(mySelect);
|
||||
select2(mySelect);
|
||||
});
|
||||
|
||||
function select2(selectElement) {
|
||||
var select2Config = {
|
||||
dropdownCssClass: 'center-text',
|
||||
};
|
||||
var select2 = new Select2(selectElement, select2Config);
|
||||
}
|
||||
|
||||
function select3(selectElement) {
|
||||
var select2Config = {
|
||||
dropdownCssClass: 'center-text',
|
||||
};
|
||||
var select2 = new Select2(selectElement, select2Config);
|
||||
}
|
||||
60
templates/instytut_dendrologii_/js/fotoxxaply.js
Normal file
60
templates/instytut_dendrologii_/js/fotoxxaply.js
Normal file
@@ -0,0 +1,60 @@
|
||||
window.addEventListener('load', () => {
|
||||
loadfotex();
|
||||
})
|
||||
|
||||
function loadfotex(){
|
||||
var zdj='<div class="fotoox">
|
||||
<a href="/images/Arboretum/fotoaktualnosci/2011_04_07_001.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_07<br>Magnolia gwiaździsta"><img title="Magnolia gwiaździsta" alt="Magnolia gwiaździsta"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_07_001.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_07_002.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_07<br>Forsycja koreańska"><img title="Forsycja koreańska" alt="Forsycja koreańska"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_07_002.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_07_003.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_07<br> "><img title=" " alt=" "
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_07_003.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_07_004.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_07<br>Klon jesionolistny 'Dr Tadeusz Szymanowski'"><img
|
||||
title="Klon jesionolistny 'Dr Tadeusz Szymanowski'" alt="Klon jesionolistny 'Dr Tadeusz Szymanowski'"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_07_004.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_07_005.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_07<br>Leszczynowiec"><img title="Leszczynowiec" alt="Leszczynowiec"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_07_005.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_07_006.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_07<br>Cebulica syberyjska i zawilec żółty"><img title="Cebulica syberyjska i zawilec żółty"
|
||||
alt="Cebulica syberyjska i zawilec żółty" src="/images/Arboretum/fotoaktualnosci/2011_04_07_006.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_07_007.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_07<br>Narcyz"><img title="Narcyz" alt="Narcyz"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_07_007.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_07_008.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_07<br>Rozwijające się liście kasztanowca"><img title="Rozwijające się liście kasztanowca"
|
||||
alt="Rozwijające się liście kasztanowca" src="/images/Arboretum/fotoaktualnosci/2011_04_07_008.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_07_009.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_07<br>Cebulica syberyjska"><img title="Cebulica syberyjska" alt="Cebulica syberyjska"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_07_009.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_19_001.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_19<br>modrzew"><img title="modrzew" alt="modrzew"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_19_001.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_19_002.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_19<br>kwitnąca wiśnia"><img title="kwitnąca wiśnia" alt="kwitnąca wiśnia"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_19_002.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_19_003.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_19<br>alt"><img title="alt" alt="alt"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_19_003.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_19_004.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_19<br>forsycja"><img title="forsycja" alt="forsycja"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_19_004.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_19_005.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_19<br>wiśnia"><img title="wiśnia" alt="wiśnia"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_19_005.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_19_006.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_19<br>magnolia"><img title="magnolia" alt="magnolia"
|
||||
src="/images/Arboretum/fotoaktualnosci/2011_04_19_006.webp"></a><a
|
||||
href="/images/Arboretum/fotoaktualnosci/2011_04_19_007.webp" data-lightbox="my-gallery"
|
||||
data-title="2011_04_19<br>rozwijające się pąki magnolii"><img title="rozwijające się pąki magnolii"
|
||||
alt="rozwijające się pąki magnolii" src="/images/Arboretum/fotoaktualnosci/2011_04_19_007.webp"></a>
|
||||
</div>'
|
||||
|
||||
|
||||
document.querySelector('.fotexs').innerHTML=zdj;
|
||||
}
|
||||
17
templates/instytut_dendrologii_/js/greenbutonsimagelinks.js
Normal file
17
templates/instytut_dendrologii_/js/greenbutonsimagelinks.js
Normal file
@@ -0,0 +1,17 @@
|
||||
window.addEventListener('load', () => {
|
||||
imagelinkload();
|
||||
|
||||
})
|
||||
function imagelinkload(){
|
||||
document.querySelector('.green-buttons1 .owl-item .jt-inner').addEventListener('click', () => {
|
||||
console.log('dziala kliknięcie');
|
||||
var przekierowanie= document.querySelector('.green-buttons1 .ogladaj2 a').href;
|
||||
window.location.href=przekierowanie;
|
||||
})
|
||||
|
||||
document.querySelector('.green-buttons .owl-item .jt-inner').addEventListener('click', () => {
|
||||
console.log('dziala kliknięcie');
|
||||
var przekierowanie= document.querySelector('.green-buttons .ogladaj1 a').href;
|
||||
window.location.href=przekierowanie;
|
||||
})
|
||||
}
|
||||
11
templates/instytut_dendrologii_/js/grik.js
Normal file
11
templates/instytut_dendrologii_/js/grik.js
Normal file
@@ -0,0 +1,11 @@
|
||||
window.addEventListener('DOMContentLoaded', () =>{
|
||||
// grikk();
|
||||
})
|
||||
function grikk(){
|
||||
var his= document.querySelector('.historia-artylul');
|
||||
console.log(his+'długosć historia')
|
||||
if(his){
|
||||
document.querySelector('.grik').style.setProperty('display','none');
|
||||
|
||||
}
|
||||
}
|
||||
32
templates/instytut_dendrologii_/js/hideden.js
Normal file
32
templates/instytut_dendrologii_/js/hideden.js
Normal file
@@ -0,0 +1,32 @@
|
||||
window.addEventListener('load', () => {
|
||||
hidedene();
|
||||
|
||||
})
|
||||
function hidedene(){
|
||||
console.log('hidenene dizała');
|
||||
document.querySelectorAll('.grid-dendrocontent .dendro-art .blog-items p').forEach(dp => {
|
||||
if(dp.innerHTML.includes('doi.org') || dp.innerHTML.includes('Full') || dp.innerHTML.includes('Supple')){
|
||||
|
||||
dp.style.setProperty('display','none');
|
||||
}
|
||||
if( dp.innerHTML.includes('Full')){
|
||||
|
||||
dp.style.setProperty('display','none');
|
||||
}
|
||||
})
|
||||
|
||||
document.querySelectorAll('.grid-dendrocontent .dendro-art .blog-items .item-content p a').forEach(dp => {
|
||||
|
||||
if( dp.innerHTML.includes('Full')){
|
||||
|
||||
dp.style.setProperty('display','none');
|
||||
}
|
||||
})
|
||||
document.querySelectorAll('.grid-dendrocontent .dendro-art .blog-items p').forEach(dp => {
|
||||
if(dp.innerHTML==" "){
|
||||
|
||||
dp.classList.add('spacja');
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
19
templates/instytut_dendrologii_/js/joomdelete.js
Normal file
19
templates/instytut_dendrologii_/js/joomdelete.js
Normal file
@@ -0,0 +1,19 @@
|
||||
window.addEventListener('load', () => {
|
||||
|
||||
joomdelte();
|
||||
})
|
||||
|
||||
function joomdelte(){
|
||||
|
||||
document.querySelectorAll('.bip-articles .com-content-article__body p ').forEach(joom => {
|
||||
if( joom.innerHTML.includes('joomla-hidden-mail')){
|
||||
var ps=joom.innerHTML;
|
||||
var newd= document.createElement('div');
|
||||
joom.closest('p').replaceWith(newd);
|
||||
newd.innerHTML=ps;
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
40
templates/instytut_dendrologii_/js/krta.js
Normal file
40
templates/instytut_dendrologii_/js/krta.js
Normal file
@@ -0,0 +1,40 @@
|
||||
window.addEventListener('load', () => {
|
||||
boldi();
|
||||
})
|
||||
function boldi(){
|
||||
var link=window.location.href;
|
||||
var linkmaly=link.toLowerCase().replaceAll('-','');
|
||||
|
||||
if(link.includes('en-us')){
|
||||
document.querySelectorAll('.menu-instytut ul li a').forEach(lis => {
|
||||
|
||||
lis.style.removeProperty('font-weight');
|
||||
|
||||
})
|
||||
document.querySelectorAll('.menu-instytut ul li').forEach(lis => {
|
||||
console.log('boldi działa');
|
||||
|
||||
|
||||
var tekstmenu=lis.querySelector('a').innerHTML.toLowerCase().replaceAll(' ','');
|
||||
console.log(linkmaly);
|
||||
if(linkmaly.includes(tekstmenu)){
|
||||
lis.style.setProperty('font-weight','800');
|
||||
lis.querySelector('a').style.setProperty('font-weight','800');
|
||||
console.log(tekstmenu);
|
||||
|
||||
|
||||
}else {
|
||||
lis.style.removeProperty('font-weight');
|
||||
lis.querySelector('a').style.removeProperty('font-weight');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
18
templates/instytut_dendrologii_/js/liczbawynikow.js
Normal file
18
templates/instytut_dendrologii_/js/liczbawynikow.js
Normal file
@@ -0,0 +1,18 @@
|
||||
window.addEventListener('load', () => {
|
||||
liczbawynikow();
|
||||
|
||||
})
|
||||
function liczbawynikow(){
|
||||
|
||||
document.querySelector('#bzas').addEventListener('click', () => {
|
||||
var wyniki=document.querySelectorAll('.wynik .under-wynik').length;
|
||||
document.querySelector('.liczbawynikow').innerHTML=wyniki;
|
||||
})
|
||||
document.querySelector('.bzas1').addEventListener('click', () => {
|
||||
var wyniki=document.querySelectorAll('.wynik .under-wynik').length;
|
||||
document.querySelector('.liczbawynikow').innerHTML=wyniki;
|
||||
document.querySelector('.liczbawynikow').innerHTML=wyniki;
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
24
templates/instytut_dendrologii_/js/linkshort.js
Normal file
24
templates/instytut_dendrologii_/js/linkshort.js
Normal file
@@ -0,0 +1,24 @@
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
shortlink();
|
||||
})
|
||||
|
||||
function shortlink(){
|
||||
document.querySelectorAll('.aktualno .jt-cs p.readmore a').forEach(links => {
|
||||
|
||||
links.href=links.href.replace(links.href.substring(0,links.href.indexOf('?')),'viewart');
|
||||
})
|
||||
document.querySelectorAll('.green-buttons .owl-item:nth-child(1) .readmore a').forEach(links => {
|
||||
|
||||
links.href=links.href.replace(links.href.substring(0,links.href.indexOf('?')),'viewart');
|
||||
})
|
||||
document.querySelectorAll('.green-buttons1 .owl-item:nth-child(1) .readmore a').forEach(links => {
|
||||
|
||||
links.href=links.href.replace(links.href.substring(0,links.href.indexOf('?')),'viewart');
|
||||
})
|
||||
|
||||
document.querySelectorAll('body .nasze-publikacje .jt-title ').forEach(links => {
|
||||
|
||||
links.href=links.href.replace(links.href.substring(0,links.href.indexOf('?')),'viewart');
|
||||
})
|
||||
|
||||
}
|
||||
16
templates/instytut_dendrologii_/js/linkshorthome.js
Normal file
16
templates/instytut_dendrologii_/js/linkshorthome.js
Normal file
@@ -0,0 +1,16 @@
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
shortlink1();
|
||||
})
|
||||
|
||||
function shortlink1(){
|
||||
console.log('dejdfff');
|
||||
|
||||
document.querySelectorAll('.green-buttons .readmore a').forEach(links => {
|
||||
|
||||
links.href=links.href.replace(links.href.substring(0,links.href.indexOf('?')),'viewart');
|
||||
})
|
||||
document.querySelectorAll('.green-buttons1 .readmore a').forEach(links => {
|
||||
|
||||
links.href=links.href.replace(links.href.substring(0,links.href.indexOf('?')),'viewart');
|
||||
})
|
||||
}
|
||||
427
templates/instytut_dendrologii_/js/main.js
Normal file
427
templates/instytut_dendrologii_/js/main.js
Normal file
@@ -0,0 +1,427 @@
|
||||
window.addEventListener('load', () => {
|
||||
wydid();
|
||||
WydarzeniaDate();
|
||||
WydarzeniaDate1();
|
||||
WydarzeniaDate2();
|
||||
WydarzeniaDate3();
|
||||
WydarzeniaDate4();
|
||||
WydarzeniaDate5();
|
||||
WydarzeniaDate6();
|
||||
WydarzeniaDate7();
|
||||
WydarzeniaDate8();
|
||||
})
|
||||
var link=window.location.href;
|
||||
var months='';
|
||||
function wydid(){
|
||||
var liczba = 0;
|
||||
document.querySelectorAll('.wydarzenia .jt-cs .slide').forEach(dat => {
|
||||
liczba++;
|
||||
dat.id = "data" + liczba;
|
||||
});
|
||||
}
|
||||
|
||||
function WydarzeniaDate() {
|
||||
|
||||
|
||||
// Znalezienie elementu div o klasie 'jtc_introdate' i pobranie jego zawartości
|
||||
const dateDiv = document.querySelector('#data1 .jtc_introdate');
|
||||
const dateString = dateDiv.textContent.trim();
|
||||
|
||||
// Usunięcie nazwy dnia tygodnia
|
||||
const dateWithoutDay = dateString.split(', ')[1];
|
||||
|
||||
// Zamiana nazwy miesiąca na numer
|
||||
if(link.includes('en-us')){
|
||||
months = {
|
||||
'January': '01', 'February': '02', 'March': '03', 'April': '04',
|
||||
'May': '05', 'June': '06', 'July': '07', 'August': '08',
|
||||
'September': '09', 'October': '10', 'November': '11', 'December': '12'
|
||||
};
|
||||
|
||||
}else{
|
||||
months = {
|
||||
'stycznia': '01', 'lutego': '02', 'marca': '03', 'kwietnia': '04',
|
||||
'maja': '05', 'czerwca': '06', 'lipca': '07', 'sierpnia': '08',
|
||||
'września': '09', 'października': '10', 'listopada': '11', 'grudnia': '12'
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
const parts = dateWithoutDay.split(' ');
|
||||
parts[1] = months[parts[1]]; // Zamiana nazwy miesiąca na numer
|
||||
|
||||
// Stworzenie prawidłowego ciągu daty
|
||||
const newDateString = `${parts[2]}-${parts[1]}-${parts[0]} ${parts[3]}`;
|
||||
const date = new Date(newDateString);
|
||||
|
||||
// Pobranie dnia i miesiąca, formatowanie ich do dwucyfrowych wartości
|
||||
const day = date.getDate().toString().padStart(2, '0').toString(); // Dzień jako liczba, zawsze dwucyfrowy
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0').toString(); // Miesiąc jako numer, zawsze dwucyfrowy
|
||||
console.log(day+"dzien i miesiac "+month)
|
||||
|
||||
// Ustawienie wartości dla CSS Custom Properties na elemencie :root
|
||||
document.querySelector(':root').style.setProperty('--content1', "'"+day+".'");
|
||||
document.querySelector(':root').style.setProperty('--content11', "'"+month+"'");
|
||||
|
||||
|
||||
}
|
||||
function WydarzeniaDate1() {
|
||||
|
||||
|
||||
// Znalezienie elementu div o klasie 'jtc_introdate' i pobranie jego zawartości
|
||||
const dateDiv = document.querySelector('#data2 .jtc_introdate');
|
||||
const dateString = dateDiv.textContent.trim();
|
||||
|
||||
// Usunięcie nazwy dnia tygodnia
|
||||
const dateWithoutDay = dateString.split(', ')[1];
|
||||
|
||||
// Zamiana nazwy miesiąca na numer
|
||||
if(link.includes('en-us')){
|
||||
months = {
|
||||
'January': '01', 'February': '02', 'March': '03', 'April': '04',
|
||||
'May': '05', 'June': '06', 'July': '07', 'August': '08',
|
||||
'September': '09', 'October': '10', 'November': '11', 'December': '12'
|
||||
};
|
||||
|
||||
}else{
|
||||
months = {
|
||||
'stycznia': '01', 'lutego': '02', 'marca': '03', 'kwietnia': '04',
|
||||
'maja': '05', 'czerwca': '06', 'lipca': '07', 'sierpnia': '08',
|
||||
'września': '09', 'października': '10', 'listopada': '11', 'grudnia': '12'
|
||||
};
|
||||
|
||||
}
|
||||
const parts = dateWithoutDay.split(' ');
|
||||
parts[1] = months[parts[1]]; // Zamiana nazwy miesiąca na numer
|
||||
|
||||
// Stworzenie prawidłowego ciągu daty
|
||||
const newDateString = `${parts[2]}-${parts[1]}-${parts[0]} ${parts[3]}`;
|
||||
const date = new Date(newDateString);
|
||||
|
||||
// Pobranie dnia i miesiąca, formatowanie ich do dwucyfrowych wartości
|
||||
const day = date.getDate().toString().padStart(2, '0').toString(); // Dzień jako liczba, zawsze dwucyfrowy
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0').toString(); // Miesiąc jako numer, zawsze dwucyfrowy
|
||||
console.log(day+"dzien i miesiac "+month)
|
||||
|
||||
// Ustawienie wartości dla CSS Custom Properties na elemencie :root
|
||||
document.querySelector(':root').style.setProperty('--content2', "'"+day+".'");
|
||||
document.querySelector(':root').style.setProperty('--content22', "'"+month+"'");
|
||||
|
||||
|
||||
}
|
||||
function WydarzeniaDate2() {
|
||||
|
||||
|
||||
// Znalezienie elementu div o klasie 'jtc_introdate' i pobranie jego zawartości
|
||||
const dateDiv = document.querySelector('#data3 .jtc_introdate');
|
||||
const dateString = dateDiv.textContent.trim();
|
||||
|
||||
// Usunięcie nazwy dnia tygodnia
|
||||
const dateWithoutDay = dateString.split(', ')[1];
|
||||
|
||||
// Zamiana nazwy miesiąca na numer
|
||||
if(link.includes('en-us')){
|
||||
months = {
|
||||
'January': '01', 'February': '02', 'March': '03', 'April': '04',
|
||||
'May': '05', 'June': '06', 'July': '07', 'August': '08',
|
||||
'September': '09', 'October': '10', 'November': '11', 'December': '12'
|
||||
};
|
||||
|
||||
}else{
|
||||
months = {
|
||||
'stycznia': '01', 'lutego': '02', 'marca': '03', 'kwietnia': '04',
|
||||
'maja': '05', 'czerwca': '06', 'lipca': '07', 'sierpnia': '08',
|
||||
'września': '09', 'października': '10', 'listopada': '11', 'grudnia': '12'
|
||||
};
|
||||
|
||||
}
|
||||
const parts = dateWithoutDay.split(' ');
|
||||
parts[1] = months[parts[1]]; // Zamiana nazwy miesiąca na numer
|
||||
|
||||
// Stworzenie prawidłowego ciągu daty
|
||||
const newDateString = `${parts[2]}-${parts[1]}-${parts[0]} ${parts[3]}`;
|
||||
const date = new Date(newDateString);
|
||||
|
||||
// Pobranie dnia i miesiąca, formatowanie ich do dwucyfrowych wartości
|
||||
const day = date.getDate().toString().padStart(2, '0').toString(); // Dzień jako liczba, zawsze dwucyfrowy
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0').toString(); // Miesiąc jako numer, zawsze dwucyfrowy
|
||||
console.log(day+"dzien i miesiac "+month)
|
||||
|
||||
// Ustawienie wartości dla CSS Custom Properties na elemencie :root
|
||||
document.querySelector(':root').style.setProperty('--content3', "'"+day+".'");
|
||||
document.querySelector(':root').style.setProperty('--content33', "'"+month+"'");
|
||||
|
||||
|
||||
}
|
||||
|
||||
function WydarzeniaDate3() {
|
||||
|
||||
|
||||
// Znalezienie elementu div o klasie 'jtc_introdate' i pobranie jego zawartości
|
||||
const dateDiv = document.querySelector('#data4 .jtc_introdate');
|
||||
const dateString = dateDiv.textContent.trim();
|
||||
|
||||
// Usunięcie nazwy dnia tygodnia
|
||||
const dateWithoutDay = dateString.split(', ')[1];
|
||||
|
||||
// Zamiana nazwy miesiąca na numer
|
||||
if(link.includes('en-us')){
|
||||
months = {
|
||||
'January': '01', 'February': '02', 'March': '03', 'April': '04',
|
||||
'May': '05', 'June': '06', 'July': '07', 'August': '08',
|
||||
'September': '09', 'October': '10', 'November': '11', 'December': '12'
|
||||
};
|
||||
|
||||
}else{
|
||||
months = {
|
||||
'stycznia': '01', 'lutego': '02', 'marca': '03', 'kwietnia': '04',
|
||||
'maja': '05', 'czerwca': '06', 'lipca': '07', 'sierpnia': '08',
|
||||
'września': '09', 'października': '10', 'listopada': '11', 'grudnia': '12'
|
||||
};
|
||||
|
||||
}
|
||||
const parts = dateWithoutDay.split(' ');
|
||||
parts[1] = months[parts[1]]; // Zamiana nazwy miesiąca na numer
|
||||
|
||||
// Stworzenie prawidłowego ciągu daty
|
||||
const newDateString = `${parts[2]}-${parts[1]}-${parts[0]} ${parts[3]}`;
|
||||
const date = new Date(newDateString);
|
||||
|
||||
// Pobranie dnia i miesiąca, formatowanie ich do dwucyfrowych wartości
|
||||
const day = date.getDate().toString().padStart(2, '0').toString(); // Dzień jako liczba, zawsze dwucyfrowy
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0').toString(); // Miesiąc jako numer, zawsze dwucyfrowy
|
||||
console.log(day+"dzien i miesiac "+month)
|
||||
|
||||
// Ustawienie wartości dla CSS Custom Properties na elemencie :root
|
||||
document.querySelector(':root').style.setProperty('--content4', "'"+day+".'");
|
||||
document.querySelector(':root').style.setProperty('--content44', "'"+month+"'");
|
||||
|
||||
|
||||
}
|
||||
function WydarzeniaDate4() {
|
||||
|
||||
|
||||
// Znalezienie elementu div o klasie 'jtc_introdate' i pobranie jego zawartości
|
||||
const dateDiv = document.querySelector('#data5 .jtc_introdate');
|
||||
const dateString = dateDiv.textContent.trim();
|
||||
|
||||
// Usunięcie nazwy dnia tygodnia
|
||||
const dateWithoutDay = dateString.split(', ')[1];
|
||||
|
||||
// Zamiana nazwy miesiąca na numer
|
||||
if(link.includes('en-us')){
|
||||
months = {
|
||||
'January': '01', 'February': '02', 'March': '03', 'April': '04',
|
||||
'May': '05', 'June': '06', 'July': '07', 'August': '08',
|
||||
'September': '09', 'October': '10', 'November': '11', 'December': '12'
|
||||
};
|
||||
|
||||
}else{
|
||||
months = {
|
||||
'stycznia': '01', 'lutego': '02', 'marca': '03', 'kwietnia': '04',
|
||||
'maja': '05', 'czerwca': '06', 'lipca': '07', 'sierpnia': '08',
|
||||
'września': '09', 'października': '10', 'listopada': '11', 'grudnia': '12'
|
||||
};
|
||||
|
||||
}
|
||||
const parts = dateWithoutDay.split(' ');
|
||||
parts[1] = months[parts[1]]; // Zamiana nazwy miesiąca na numer
|
||||
|
||||
// Stworzenie prawidłowego ciągu daty
|
||||
const newDateString = `${parts[2]}-${parts[1]}-${parts[0]} ${parts[3]}`;
|
||||
const date = new Date(newDateString);
|
||||
|
||||
// Pobranie dnia i miesiąca, formatowanie ich do dwucyfrowych wartości
|
||||
const day = date.getDate().toString().padStart(2, '0').toString(); // Dzień jako liczba, zawsze dwucyfrowy
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0').toString(); // Miesiąc jako numer, zawsze dwucyfrowy
|
||||
console.log(day+"dzien i miesiac "+month)
|
||||
|
||||
// Ustawienie wartości dla CSS Custom Properties na elemencie :root
|
||||
document.querySelector(':root').style.setProperty('--content5', "'"+day+".'");
|
||||
document.querySelector(':root').style.setProperty('--content55', "'"+month+"'");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function WydarzeniaDate5() {
|
||||
|
||||
|
||||
// Znalezienie elementu div o klasie 'jtc_introdate' i pobranie jego zawartości
|
||||
const dateDiv = document.querySelector('#data6 .jtc_introdate');
|
||||
const dateString = dateDiv.textContent.trim();
|
||||
|
||||
// Usunięcie nazwy dnia tygodnia
|
||||
const dateWithoutDay = dateString.split(', ')[1];
|
||||
|
||||
// Zamiana nazwy miesiąca na numer
|
||||
if(link.includes('en-us')){
|
||||
months = {
|
||||
'January': '01', 'February': '02', 'March': '03', 'April': '04',
|
||||
'May': '05', 'June': '06', 'July': '07', 'August': '08',
|
||||
'September': '09', 'October': '10', 'November': '11', 'December': '12'
|
||||
};
|
||||
|
||||
}else{
|
||||
months = {
|
||||
'stycznia': '01', 'lutego': '02', 'marca': '03', 'kwietnia': '04',
|
||||
'maja': '05', 'czerwca': '06', 'lipca': '07', 'sierpnia': '08',
|
||||
'września': '09', 'października': '10', 'listopada': '11', 'grudnia': '12'
|
||||
};
|
||||
|
||||
}
|
||||
const parts = dateWithoutDay.split(' ');
|
||||
parts[1] = months[parts[1]]; // Zamiana nazwy miesiąca na numer
|
||||
|
||||
// Stworzenie prawidłowego ciągu daty
|
||||
const newDateString = `${parts[2]}-${parts[1]}-${parts[0]} ${parts[3]}`;
|
||||
const date = new Date(newDateString);
|
||||
|
||||
// Pobranie dnia i miesiąca, formatowanie ich do dwucyfrowych wartości
|
||||
const day = date.getDate().toString().padStart(2, '0').toString(); // Dzień jako liczba, zawsze dwucyfrowy
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0').toString(); // Miesiąc jako numer, zawsze dwucyfrowy
|
||||
console.log(day+"dzien i miesiac "+month)
|
||||
|
||||
// Ustawienie wartości dla CSS Custom Properties na elemencie :root
|
||||
document.querySelector(':root').style.setProperty('--content6', "'"+day+".'");
|
||||
document.querySelector(':root').style.setProperty('--content66', "'"+month+"'");
|
||||
|
||||
|
||||
}
|
||||
|
||||
function WydarzeniaDate6() {
|
||||
|
||||
|
||||
// Znalezienie elementu div o klasie 'jtc_introdate' i pobranie jego zawartości
|
||||
const dateDiv = document.querySelector('#data7 .jtc_introdate');
|
||||
const dateString = dateDiv.textContent.trim();
|
||||
|
||||
// Usunięcie nazwy dnia tygodnia
|
||||
const dateWithoutDay = dateString.split(', ')[1];
|
||||
|
||||
// Zamiana nazwy miesiąca na numer
|
||||
if(link.includes('en-us')){
|
||||
months = {
|
||||
'January': '01', 'February': '02', 'March': '03', 'April': '04',
|
||||
'May': '05', 'June': '06', 'July': '07', 'August': '08',
|
||||
'September': '09', 'October': '10', 'November': '11', 'December': '12'
|
||||
};
|
||||
|
||||
}else{
|
||||
months = {
|
||||
'stycznia': '01', 'lutego': '02', 'marca': '03', 'kwietnia': '04',
|
||||
'maja': '05', 'czerwca': '06', 'lipca': '07', 'sierpnia': '08',
|
||||
'września': '09', 'października': '10', 'listopada': '11', 'grudnia': '12'
|
||||
};
|
||||
}
|
||||
const parts = dateWithoutDay.split(' ');
|
||||
parts[1] = months[parts[1]]; // Zamiana nazwy miesiąca na numer
|
||||
|
||||
// Stworzenie prawidłowego ciągu daty
|
||||
const newDateString = `${parts[2]}-${parts[1]}-${parts[0]} ${parts[3]}`;
|
||||
const date = new Date(newDateString);
|
||||
|
||||
// Pobranie dnia i miesiąca, formatowanie ich do dwucyfrowych wartości
|
||||
const day = date.getDate().toString().padStart(2, '0').toString(); // Dzień jako liczba, zawsze dwucyfrowy
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0').toString(); // Miesiąc jako numer, zawsze dwucyfrowy
|
||||
console.log(day+"dzien i miesiac "+month)
|
||||
|
||||
// Ustawienie wartości dla CSS Custom Properties na elemencie :root
|
||||
document.querySelector(':root').style.setProperty('--content7', "'"+day+".'");
|
||||
document.querySelector(':root').style.setProperty('--content77', "'"+month+"'");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function WydarzeniaDate7() {
|
||||
|
||||
|
||||
// Znalezienie elementu div o klasie 'jtc_introdate' i pobranie jego zawartości
|
||||
const dateDiv = document.querySelector('#data8 .jtc_introdate');
|
||||
const dateString = dateDiv.textContent.trim();
|
||||
|
||||
// Usunięcie nazwy dnia tygodnia
|
||||
const dateWithoutDay = dateString.split(', ')[1];
|
||||
|
||||
// Zamiana nazwy miesiąca na numer
|
||||
if(link.includes('en-us')){
|
||||
months = {
|
||||
'January': '01', 'February': '02', 'March': '03', 'April': '04',
|
||||
'May': '05', 'June': '06', 'July': '07', 'August': '08',
|
||||
'September': '09', 'October': '10', 'November': '11', 'December': '12'
|
||||
};
|
||||
|
||||
}else{
|
||||
months = {
|
||||
'stycznia': '01', 'lutego': '02', 'marca': '03', 'kwietnia': '04',
|
||||
'maja': '05', 'czerwca': '06', 'lipca': '07', 'sierpnia': '08',
|
||||
'września': '09', 'października': '10', 'listopada': '11', 'grudnia': '12'
|
||||
};
|
||||
|
||||
}
|
||||
const parts = dateWithoutDay.split(' ');
|
||||
parts[1] = months[parts[1]]; // Zamiana nazwy miesiąca na numer
|
||||
|
||||
// Stworzenie prawidłowego ciągu daty
|
||||
const newDateString = `${parts[2]}-${parts[1]}-${parts[0]} ${parts[3]}`;
|
||||
const date = new Date(newDateString);
|
||||
|
||||
// Pobranie dnia i miesiąca, formatowanie ich do dwucyfrowych wartości
|
||||
const day = date.getDate().toString().padStart(2, '0').toString(); // Dzień jako liczba, zawsze dwucyfrowy
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0').toString(); // Miesiąc jako numer, zawsze dwucyfrowy
|
||||
console.log(day+"dzien i miesiac "+month)
|
||||
|
||||
// Ustawienie wartości dla CSS Custom Properties na elemencie :root
|
||||
document.querySelector(':root').style.setProperty('--content8', "'"+day+".'");
|
||||
document.querySelector(':root').style.setProperty('--content88', "'"+month+"'");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function WydarzeniaDate8() {
|
||||
|
||||
|
||||
// Znalezienie elementu div o klasie 'jtc_introdate' i pobranie jego zawartości
|
||||
const dateDiv = document.querySelector('#data9 .jtc_introdate');
|
||||
const dateString = dateDiv.textContent.trim();
|
||||
|
||||
// Usunięcie nazwy dnia tygodnia
|
||||
const dateWithoutDay = dateString.split(', ')[1];
|
||||
|
||||
// Zamiana nazwy miesiąca na numer
|
||||
if(link.includes('en-us')){
|
||||
months = {
|
||||
'January': '01', 'February': '02', 'March': '03', 'April': '04',
|
||||
'May': '05', 'June': '06', 'July': '07', 'August': '08',
|
||||
'September': '09', 'October': '10', 'November': '11', 'December': '12'
|
||||
};
|
||||
|
||||
}else{
|
||||
months = {
|
||||
'stycznia': '01', 'lutego': '02', 'marca': '03', 'kwietnia': '04',
|
||||
'maja': '05', 'czerwca': '06', 'lipca': '07', 'sierpnia': '08',
|
||||
'września': '09', 'października': '10', 'listopada': '11', 'grudnia': '12'
|
||||
};
|
||||
|
||||
}
|
||||
const parts = dateWithoutDay.split(' ');
|
||||
parts[1] = months[parts[1]]; // Zamiana nazwy miesiąca na numer
|
||||
|
||||
// Stworzenie prawidłowego ciągu daty
|
||||
const newDateString = `${parts[2]}-${parts[1]}-${parts[0]} ${parts[3]}`;
|
||||
const date = new Date(newDateString);
|
||||
|
||||
// Pobranie dnia i miesiąca, formatowanie ich do dwucyfrowych wartości
|
||||
const day = date.getDate().toString().padStart(2, '0').toString(); // Dzień jako liczba, zawsze dwucyfrowy
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0').toString(); // Miesiąc jako numer, zawsze dwucyfrowy
|
||||
console.log(day+"dzien i miesiac "+month)
|
||||
|
||||
// Ustawienie wartości dla CSS Custom Properties na elemencie :root
|
||||
document.querySelector(':root').style.setProperty('--content9', "'"+day+".'");
|
||||
document.querySelector(':root').style.setProperty('--content99', "'"+month+"'");
|
||||
|
||||
|
||||
}
|
||||
15
templates/instytut_dendrologii_/js/menushow.js
Normal file
15
templates/instytut_dendrologii_/js/menushow.js
Normal file
@@ -0,0 +1,15 @@
|
||||
window.addEventListener('load', () => {
|
||||
showmenu();
|
||||
})
|
||||
function showmenu(){
|
||||
document.querySelectorAll('.grid-menu ul li a,.grid-menu ul li span').forEach(titles => {
|
||||
var tytul=titles.getAttribute('title');
|
||||
|
||||
document.querySelectorAll('.grid-menu ul li a,.grid-menu ul li span').forEach(menus => {
|
||||
if(menus.innerHTML.includes(tytul)){
|
||||
menus.style.setProperty('font-weight','800');
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
17
templates/instytut_dendrologii_/js/menushow1.js
Normal file
17
templates/instytut_dendrologii_/js/menushow1.js
Normal file
@@ -0,0 +1,17 @@
|
||||
window.addEventListener('load', () => {
|
||||
showmenu1();
|
||||
})
|
||||
function showmenu1(){
|
||||
var links=window.location.href;
|
||||
var ls=links.split('/');
|
||||
var link=ls[ls.length-1];
|
||||
document.querySelectorAll('.grid-menu ul li a').forEach(items => {
|
||||
var li= items.getAttribute('href');
|
||||
if(li.includes(link)){
|
||||
items.style.setProperty('font-weight','800');
|
||||
items.closest('ul').parentNode.querySelector(' :first-child').style.setProperty('font-weight','800');
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
77
templates/instytut_dendrologii_/js/metryczka.js
Normal file
77
templates/instytut_dendrologii_/js/metryczka.js
Normal file
@@ -0,0 +1,77 @@
|
||||
window.addEventListener('load', () => {
|
||||
// Ukryj metryczki przed wypełnieniem danymi
|
||||
$('.infometryczka + .infox').hide();
|
||||
|
||||
// Wypełnij metryczki danymi
|
||||
metryczka();
|
||||
|
||||
// Metryczki pozostają ukryte - pokażą się po kliknięciu na "METRYCZKA"
|
||||
})
|
||||
|
||||
function metryczka() {
|
||||
var wytwarzajacy = '';
|
||||
var osobapublikujaca = '';
|
||||
|
||||
try {
|
||||
// Pobierz zawartość pola BIP dodatkowe pola informatycjne
|
||||
var authorPosition = document.querySelector('.bip-dodatkowe-pola-informatycjne p').innerHTML;
|
||||
|
||||
// Rozdziel po <br> lub <br /> na dwie linie
|
||||
var lines = authorPosition.split(/<br\s*\/?>/i);
|
||||
|
||||
if (lines.length >= 1) {
|
||||
// Pierwsza linia to Wytwarzający (usuń prefix "Wytwarzający:" jeśli istnieje)
|
||||
wytwarzajacy = lines[0].replace(/^Wytwarzaj[aą]cy:\s*/i, '').trim();
|
||||
}
|
||||
|
||||
if (lines.length >= 2) {
|
||||
// Druga linia to Osoba publikująca (usuń prefix "Osoba publikująca:" jeśli istnieje)
|
||||
osobapublikujaca = lines[1].replace(/^Osoba publikuj[aą]ca:\s*/i, '').trim();
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
console.log('Błąd pobierania danych BIP:', error);
|
||||
}
|
||||
|
||||
var datawytworzenia = '';
|
||||
var dataudostepnienia = '';
|
||||
var poprawiono = '';
|
||||
|
||||
try {
|
||||
datawytworzenia = document.querySelector('.create [itemprop="dateCreated"]').innerHTML.replace('Utworzono', '').replace(':', '').trim();
|
||||
} catch (error) {}
|
||||
|
||||
try {
|
||||
dataudostepnienia = document.querySelector('.published [itemprop="datePublished"]').innerHTML.replace('Opublikowano:', '').trim();
|
||||
} catch (error) {}
|
||||
|
||||
try {
|
||||
poprawiono = document.querySelector('.modified [itemprop="dateModified"]').innerHTML.replace('Poprawiono:', '').trim();
|
||||
} catch (error) {}
|
||||
|
||||
// Zbuduj HTML metryczki
|
||||
var metryckHTML = "Podmiot udostępniający: ID PAN<br>";
|
||||
|
||||
if (wytwarzajacy) {
|
||||
metryckHTML += "Wytwarzający: " + wytwarzajacy + "<br>";
|
||||
}
|
||||
|
||||
if (osobapublikujaca) {
|
||||
metryckHTML += "Osoba publikująca: " + osobapublikujaca + "<br>";
|
||||
}
|
||||
|
||||
if (datawytworzenia) {
|
||||
metryckHTML += "Data wytworzenia: " + datawytworzenia + "<br>";
|
||||
}
|
||||
|
||||
if (dataudostepnienia) {
|
||||
metryckHTML += "Data udostępnienia: " + dataudostepnienia + "<br>";
|
||||
}
|
||||
|
||||
if (poprawiono) {
|
||||
metryckHTML += "Data aktualizacji: " + poprawiono;
|
||||
}
|
||||
|
||||
document.querySelector('.infox').innerHTML = metryckHTML;
|
||||
|
||||
}
|
||||
38
templates/instytut_dendrologii_/js/mod1.js
Normal file
38
templates/instytut_dendrologii_/js/mod1.js
Normal file
@@ -0,0 +1,38 @@
|
||||
window.addEventListener('load', () => {
|
||||
podKonferencjami();
|
||||
deletespaces();
|
||||
})
|
||||
|
||||
function podKonferencjami() {
|
||||
var licznik = 0;
|
||||
document.querySelectorAll('.green-buttons .owl-item').forEach(posts => {
|
||||
licznik++;
|
||||
posts.id = 'pk'+licznik;
|
||||
})
|
||||
}
|
||||
function deletespaces(){
|
||||
document.querySelectorAll('.dendrobiology .jt-introtext p').forEach(spaces => {
|
||||
if(spaces.innerHTML==' '){
|
||||
spaces.remove();
|
||||
}
|
||||
|
||||
})
|
||||
document.querySelectorAll('.notmozmr').forEach(spaces => {
|
||||
if(spaces.innerHTML==' '){
|
||||
spaces.remove();
|
||||
}
|
||||
|
||||
})
|
||||
document.querySelectorAll('.arboretum .jt-inner p:not(:has(img))').forEach(spaces => {
|
||||
if(spaces.innerHTML==' '){
|
||||
spaces.remove();
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
10
templates/instytut_dendrologii_/js/mod10.js
Normal file
10
templates/instytut_dendrologii_/js/mod10.js
Normal file
@@ -0,0 +1,10 @@
|
||||
window.addEventListener('load' , () => {
|
||||
changeDateFormat();
|
||||
})
|
||||
function changeDateFormat(){
|
||||
document.querySelectorAll('.grid-menu-seminaria .item-content time ').forEach(times => {
|
||||
var data= times.getAttribute('datetime').substring(11,16);
|
||||
times.innerHTML=times.innerHTML.replace('Opublikowano:','')+', godz.'+data;
|
||||
console.log(data);
|
||||
})
|
||||
}
|
||||
7
templates/instytut_dendrologii_/js/mod11.js
Normal file
7
templates/instytut_dendrologii_/js/mod11.js
Normal file
@@ -0,0 +1,7 @@
|
||||
window.addEventListener('load', () => {
|
||||
iconSeach();
|
||||
})
|
||||
|
||||
function iconSeach(){
|
||||
document.querySelector('.bip-wyszukiwarka form button').innerHTML='<img src="/images/BIP/szukajka.png" />'
|
||||
}
|
||||
35
templates/instytut_dendrologii_/js/mod12.js
Normal file
35
templates/instytut_dendrologii_/js/mod12.js
Normal file
@@ -0,0 +1,35 @@
|
||||
window.addEventListener('load', () => {
|
||||
hasSupport();
|
||||
})
|
||||
function hasSupport(){
|
||||
|
||||
document.querySelectorAll('.arboretum .jt-inner p').forEach(items => {
|
||||
|
||||
if(items.innerHTML.includes('img')){
|
||||
items.setAttribute('id','mozmr');
|
||||
|
||||
|
||||
}else {
|
||||
|
||||
items.setAttribute('id','notmozmr');
|
||||
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
console.log('Działa arboretum');
|
||||
|
||||
|
||||
document.querySelectorAll('#mozmr').forEach(mozmr => {
|
||||
|
||||
mozmr.classList.add('mozar');
|
||||
|
||||
})
|
||||
|
||||
document.querySelectorAll('#notmozmr').forEach(mozmr => {
|
||||
|
||||
mozmr.classList.add('notmozmr');
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
10
templates/instytut_dendrologii_/js/mod13.js
Normal file
10
templates/instytut_dendrologii_/js/mod13.js
Normal file
@@ -0,0 +1,10 @@
|
||||
window.addEventListener('load' ,() => {
|
||||
wydarzeniaRedirect();
|
||||
})
|
||||
|
||||
function wydarzeniaRedirect(){
|
||||
|
||||
document.querySelectorAll('.wydarzenia .readmore a,.wydarzenia .jtcs_item_wrapper .jt-title ').forEach(items => {
|
||||
items.href='/seminaria-i-wyklady/';
|
||||
})
|
||||
}
|
||||
15
templates/instytut_dendrologii_/js/mod14.js
Normal file
15
templates/instytut_dendrologii_/js/mod14.js
Normal file
@@ -0,0 +1,15 @@
|
||||
window.addEventListener('load' , () => {
|
||||
watchButton();
|
||||
})
|
||||
function watchButton(){
|
||||
document.querySelector('.ogladaj2').addEventListener('click', () => {
|
||||
var link=document.querySelector('.ogladaj2 a').getAttribute('href');
|
||||
window.location.href=link;
|
||||
|
||||
})
|
||||
document.querySelector('.ogladaj1').addEventListener('click', () => {
|
||||
var link1=document.querySelector('.ogladaj1 a').getAttribute('href');
|
||||
window.location.href=link1;
|
||||
|
||||
})
|
||||
}
|
||||
68
templates/instytut_dendrologii_/js/mod15.js
Normal file
68
templates/instytut_dendrologii_/js/mod15.js
Normal file
@@ -0,0 +1,68 @@
|
||||
window.addEventListener('load', () => {
|
||||
menuArrow();
|
||||
})
|
||||
function menuArrow(){
|
||||
var liczba=0;
|
||||
document.querySelectorAll('.container-menu ul li ').forEach(items1 => {
|
||||
liczba++;
|
||||
items1.setAttribute("id","li"+liczba);
|
||||
})
|
||||
document.querySelectorAll('.menugornear ul li ').forEach(items1 => {
|
||||
liczba++;
|
||||
items1.setAttribute("id","li"+liczba);
|
||||
})
|
||||
|
||||
|
||||
|
||||
document.querySelectorAll('.container-menu ul li ').forEach(items => {
|
||||
if(items.innerHTML.includes('<ul')){
|
||||
document.querySelector('#'+items.getAttribute('id')+' a').innerHTML=document.querySelector('#'+items.getAttribute('id')+' a').innerHTML+'<img style="width:10px !important;height:10px !important;margin-left:4px" src="/images/stronaGlowna/Chevron_Right.png"/>';
|
||||
// items.innerHTML=items.innerHTML+'<img style="width:10px !important;height:10px !important;margin-left:4px" src="/images/stronaGlowna/Chevron_Right.png"/>';
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
document.querySelectorAll('ul li ul li ').forEach(items => {
|
||||
if(items.innerHTML.includes('<ul')){
|
||||
items.innerHTML=items.innerHTML.replaceAll('/ul>','/ul><div class="amo"></div>');
|
||||
// items.innerHTML=items.innerHTML+'<img style="width:10px !important;height:10px !important;margin-left:4px" src="/images/stronaGlowna/Chevron_Right.png"/>';
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
document.querySelectorAll('.menugornear:first-child ul li ').forEach(items => {
|
||||
if(items.innerHTML.includes('<ul')){
|
||||
document.querySelector('#'+items.getAttribute('id')+' a').innerHTML=document.querySelector('#'+items.getAttribute('id')+' a').innerHTML+'<img style="width:10px !important;height:10px !important;margin-left:4px;filter: invert(1);" src="/images/stronaGlowna/Chevron_Right.png"/>';
|
||||
// items.innerHTML=items.innerHTML+'<img style="width:10px !important;height:10px !important;margin-left:4px;filter: invert(1);" src="/images/stronaGlowna/Chevron_Right.png"/>';
|
||||
}
|
||||
})
|
||||
|
||||
document.querySelectorAll('.menu-instytut ul:first-child li ').forEach(items => {
|
||||
if(items.innerHTML.includes('<ul')){
|
||||
items.innerHTML=items.innerHTML+'<img style="width:10px !important;height:10px !important;margin-left:4px;filter: invert(1);" src="/images/stronaGlowna/Chevron_Right.png"/>';
|
||||
// items.innerHTML=items.innerHTML+'<img style="width:10px !important;height:10px !important;margin-left:4px;filter: invert(1);" src="/images/stronaGlowna/Chevron_Right.png"/>';
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
document.querySelectorAll('.mobilemenuck-item-text ').forEach(items => {
|
||||
if(items.innerHTML.includes('<ul')){
|
||||
document.querySelector('#'+items.getAttribute('id')+' a').innerHTML=document.querySelector('#'+items.getAttribute('id')+' a').innerHTML+'<img style="width:10px !important;height:10px !important;margin-left:4px" src="/images/stronaGlowna/Chevron_Right.png"/>';
|
||||
// items.innerHTML=items.innerHTML+'<img style="width:10px !important;height:10px !important;margin-left:4px" src="/images/stronaGlowna/Chevron_Right.png"/>';
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
15
templates/instytut_dendrologii_/js/mod16.js
Normal file
15
templates/instytut_dendrologii_/js/mod16.js
Normal file
@@ -0,0 +1,15 @@
|
||||
window.addEventListener('load', () => {
|
||||
addTriangle1();
|
||||
})
|
||||
function addTriangle1(){
|
||||
|
||||
document.querySelectorAll('.dendro-menucontent ul li ').forEach(links => {
|
||||
if(links.classList.contains('active')){
|
||||
console.log(links.innerHTML);
|
||||
links.classList.add('triangle');
|
||||
links.firstChild.style.setProperty('font-weight','600');
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
9
templates/instytut_dendrologii_/js/mod17.js
Normal file
9
templates/instytut_dendrologii_/js/mod17.js
Normal file
@@ -0,0 +1,9 @@
|
||||
window.addEventListener('load', () => {
|
||||
readMore();
|
||||
})
|
||||
|
||||
function readMore(){
|
||||
document.querySelectorAll('body .dendro-art .blog-items .item-content .btn-secondary').forEach(items => {
|
||||
items.innerHTML="READ MORE ..."
|
||||
})
|
||||
}
|
||||
7
templates/instytut_dendrologii_/js/mod18.js
Normal file
7
templates/instytut_dendrologii_/js/mod18.js
Normal file
@@ -0,0 +1,7 @@
|
||||
window.addEventListener('load', () => {
|
||||
artilceHeader();
|
||||
})
|
||||
function artilceHeader(){
|
||||
var ng=document.querySelector('.dendro-menucontent .active a').innerHTML;
|
||||
document.querySelector('.view-article .page-header').innerHTML= '<span class="nag">'+ng+'</span>'+document.querySelector('.view-article .page-header').innerHTML;
|
||||
}
|
||||
17
templates/instytut_dendrologii_/js/mod19.js
Normal file
17
templates/instytut_dendrologii_/js/mod19.js
Normal file
@@ -0,0 +1,17 @@
|
||||
window.addEventListener('load' , () => {
|
||||
iconspdf();
|
||||
})
|
||||
|
||||
function iconspdf(){
|
||||
document.querySelectorAll('.grik .com-content-article__body p a').forEach(items => {
|
||||
var val=items.innerHTML;
|
||||
if( val.includes('pdf')){
|
||||
items.innerHTML='<div class="koper"><img src="/images/Dendrobiology/kopera.png">'+items.innerHTML+"</div>";
|
||||
}else if(val.includes('mail')){
|
||||
items.innerHTML='<div class="koper"><img src="/images/Dendrobiology/email.png">'+items.innerHTML+"</div>";
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
45
templates/instytut_dendrologii_/js/mod2.js
Normal file
45
templates/instytut_dendrologii_/js/mod2.js
Normal file
@@ -0,0 +1,45 @@
|
||||
window.addEventListener('load', () => {
|
||||
opoznienie();
|
||||
})
|
||||
function opoznienie(){
|
||||
|
||||
setTimeout(countWordsAndBreak,1000);
|
||||
}
|
||||
function countWordsAndBreak(){
|
||||
var spanx= document.createElement('span');
|
||||
|
||||
var maximum= document.querySelectorAll('.arboretum .owl-carousel .owl-item').length;
|
||||
spanx.setAttribute('class','liczbax');
|
||||
spanx.innerHTML='1/'+maximum;
|
||||
document.querySelector('.arboretum .jt-cs .owl-carousel .owl-nav .owl-prev').appendChild(spanx);
|
||||
var liczba1=1;
|
||||
|
||||
document.querySelector('.arboretum .jt-cs .owl-carousel .owl-nav .owl-prev').addEventListener('click', () => {
|
||||
|
||||
document.querySelector('.arboretum .liczbax').innerHTML='';
|
||||
|
||||
liczba1--;
|
||||
if(liczba1<=1){
|
||||
liczba1=1;
|
||||
|
||||
}
|
||||
var node= document.createTextNode(liczba1+'/'+maximum);
|
||||
document.querySelector('.arboretum .liczbax').appendChild(node);
|
||||
|
||||
})
|
||||
document.querySelector('.arboretum .jt-cs .owl-carousel .owl-nav .owl-next').addEventListener('click', () => {
|
||||
|
||||
document.querySelector('.arboretum .liczbax').innerHTML='';
|
||||
var max= new Number(maximum);
|
||||
|
||||
liczba1++;
|
||||
if(liczba1>=max){
|
||||
liczba1=max;
|
||||
|
||||
}
|
||||
var node= document.createTextNode(liczba1+'/'+maximum);
|
||||
document.querySelector('.arboretum .liczbax').appendChild(node);
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
14
templates/instytut_dendrologii_/js/mod20.js
Normal file
14
templates/instytut_dendrologii_/js/mod20.js
Normal file
@@ -0,0 +1,14 @@
|
||||
window.addEventListener('load', () => {
|
||||
bipmenu();
|
||||
})
|
||||
function bipmenu(){
|
||||
document.querySelectorAll('.menu-bip ul li ').forEach(list => {
|
||||
var listin= list.innerHTML;
|
||||
if(listin.includes('ul')){
|
||||
list.style.setProperty('flex-direction','column');
|
||||
list.style.setProperty('justify-content','end');
|
||||
list.style.setProperty('align-items','end');
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
15
templates/instytut_dendrologii_/js/mod21.js
Normal file
15
templates/instytut_dendrologii_/js/mod21.js
Normal file
@@ -0,0 +1,15 @@
|
||||
window.addEventListener('load', () => {
|
||||
cafred();
|
||||
})
|
||||
|
||||
function cafred(){
|
||||
document.querySelectorAll('.oinstytucie-kafelki div div').forEach(caf => {
|
||||
|
||||
caf.addEventListener('click' , () => {
|
||||
console.log('kliknieto kaf');
|
||||
var link= caf.firstChild.href;
|
||||
window.location.href=link;
|
||||
})
|
||||
|
||||
})
|
||||
}
|
||||
41
templates/instytut_dendrologii_/js/mod22.js
Normal file
41
templates/instytut_dendrologii_/js/mod22.js
Normal file
@@ -0,0 +1,41 @@
|
||||
window.addEventListener('load', () => {
|
||||
setIDtable();
|
||||
})
|
||||
|
||||
function setIDtable() {
|
||||
var liczba = 0;
|
||||
|
||||
console.log('działa to ten');
|
||||
document.querySelectorAll('table tr ').forEach(td => {
|
||||
liczba++
|
||||
td.setAttribute('id', 'row'+liczba);
|
||||
|
||||
})
|
||||
document.querySelectorAll('table tr:not(:first-child) td:nth-child(2)').forEach(td => {
|
||||
|
||||
td.setAttribute('class', 'photo');
|
||||
|
||||
})
|
||||
document.querySelectorAll('table tr:not(:first-child) td:nth-child(6)').forEach(td => {
|
||||
|
||||
td.setAttribute('class', 'kategoria');
|
||||
|
||||
})
|
||||
document.querySelectorAll('table tr:not(:first-child) td:nth-child(7)').forEach(td => {
|
||||
|
||||
td.setAttribute('class', 'kategoria1');
|
||||
|
||||
})
|
||||
document.querySelectorAll('table tr:not(:first-child) td:nth-child(8)').forEach(td => {
|
||||
|
||||
td.setAttribute('class', 'powiekszenie');
|
||||
|
||||
})
|
||||
document.querySelectorAll('table tr:not(:first-child) td:nth-child(9)').forEach(td => {
|
||||
|
||||
td.setAttribute('class', 'opis' );
|
||||
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
78
templates/instytut_dendrologii_/js/mod23.js
Normal file
78
templates/instytut_dendrologii_/js/mod23.js
Normal file
@@ -0,0 +1,78 @@
|
||||
window.addEventListener('load', () => {
|
||||
setoptions();
|
||||
setoptions1();
|
||||
setoptions2();
|
||||
setoptions3();
|
||||
})
|
||||
|
||||
function setoptions(){
|
||||
var mapa=new Set();
|
||||
var iterator=mapa.keys();
|
||||
var liczba=0;
|
||||
var options='';
|
||||
document.querySelectorAll('.kategoria').forEach(kategory => {
|
||||
mapa.add('<option value="'+kategory.innerHTML+'">'+kategory.innerHTML+'</option>');
|
||||
// console.log(kategory.innerHTML);
|
||||
})
|
||||
|
||||
for(var val of mapa){
|
||||
options=options+val;
|
||||
}
|
||||
document.querySelector('#selkategoria').innerHTML=document.querySelector('#selkategoria').innerHTML+''+options;
|
||||
}
|
||||
function setoptions1(){
|
||||
var mapa=new Set();
|
||||
var iterator=mapa.keys();
|
||||
var liczba=0;
|
||||
var options='';
|
||||
document.querySelectorAll('.kategoria1').forEach(kategory => {
|
||||
mapa.add('<option value="'+kategory.innerHTML+'">'+kategory.innerHTML+'</option>');
|
||||
// console.log(kategory.innerHTML);
|
||||
})
|
||||
|
||||
for(var val of mapa){
|
||||
options=options+val;
|
||||
}
|
||||
document.querySelector('#selkategoria1').innerHTML=document.querySelector('#selkategoria1').innerHTML+''+options;
|
||||
}
|
||||
|
||||
function setoptions2(){
|
||||
var mapa=new Set();
|
||||
var iterator=mapa.keys();
|
||||
var liczba=0;
|
||||
var options='';
|
||||
document.querySelectorAll('.powiekszenie').forEach(kategory => {
|
||||
mapa.add(kategory.innerHTML);
|
||||
})
|
||||
var sorted=Array.from(mapa).sort((a, b) => a - b);
|
||||
var mapa1=new Set(sorted);
|
||||
mapa.clear;
|
||||
for(var sor of mapa1){
|
||||
mapa.add('<option value="'+sor+'">'+sor+'</option>');
|
||||
}
|
||||
|
||||
|
||||
// console.log(kategory.innerHTML);
|
||||
for(var val of mapa){
|
||||
options=options+val;
|
||||
}
|
||||
|
||||
console.log(options+"numery do sortowania ");
|
||||
document.querySelector('#powiekszenie').innerHTML=document.querySelector('#powiekszenie').innerHTML+''+options;
|
||||
}
|
||||
|
||||
function setoptions3(){
|
||||
var mapa=new Set();
|
||||
var iterator=mapa.keys();
|
||||
var liczba=0;
|
||||
var options='';
|
||||
document.querySelectorAll('.opis').forEach(kategory => {
|
||||
mapa.add('<option value="'+kategory.innerHTML+'">'+kategory.innerHTML+'</option>');
|
||||
// console.log(kategory.innerHTML);
|
||||
})
|
||||
|
||||
for(var val of mapa){
|
||||
options=options+val;
|
||||
}
|
||||
document.querySelector('#opis').innerHTML=document.querySelector('#opis').innerHTML+''+options;
|
||||
}
|
||||
13
templates/instytut_dendrologii_/js/mod24.js
Normal file
13
templates/instytut_dendrologii_/js/mod24.js
Normal file
@@ -0,0 +1,13 @@
|
||||
window.addEventListener('load', () =>{
|
||||
setFilters();
|
||||
})
|
||||
|
||||
function setFilters(){
|
||||
document.querySelector('.bzas2').addEventListener('click', () => {
|
||||
window.location.reload();
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
310
templates/instytut_dendrologii_/js/mod25.js
Normal file
310
templates/instytut_dendrologii_/js/mod25.js
Normal file
@@ -0,0 +1,310 @@
|
||||
window.addEventListener('load', () => {
|
||||
|
||||
showValue1();
|
||||
})
|
||||
|
||||
function showValue1() {
|
||||
var ciag = new Set();
|
||||
var kategorieSet = new Set();
|
||||
var kategorieSet1 = new Set();
|
||||
var powiekszenieSet = new Set();
|
||||
var opisSet = new Set();
|
||||
var idsSelected = new Set();
|
||||
var filtrowanekat1Set = new Set();
|
||||
var powiekszenieSetfiltr = new Set();
|
||||
var filios = new Set();
|
||||
var fkategorias = '';
|
||||
var fkategorias1 = '';
|
||||
var fpowiekszenia = '';
|
||||
var fopisy = '';
|
||||
var filtrkat = '';
|
||||
var fpowie = '';
|
||||
var fkategoria1 = '';
|
||||
var psotx = '';
|
||||
var wyniks = '';
|
||||
var powiekszenieSetSort = '';
|
||||
var ciagznakoww = '';
|
||||
|
||||
|
||||
document.querySelectorAll('.excel tr:not(:first-child)').forEach(tr => {
|
||||
|
||||
ciag.add('#' + tr.id);
|
||||
|
||||
})
|
||||
|
||||
|
||||
document.querySelector('.bzas1').addEventListener('click', () => {
|
||||
kategorieSet.clear();
|
||||
kategorieSet1.clear();
|
||||
powiekszenieSet.clear();
|
||||
|
||||
document.querySelector('#selkategoria').innerHTML = '';
|
||||
fkategorias = '';
|
||||
fkategorias1 = '';
|
||||
fpowiekszenia = '';
|
||||
fopisy1 = '';
|
||||
|
||||
|
||||
|
||||
|
||||
filtrkat = '';
|
||||
filtrowanekat1Set.clear();
|
||||
document.querySelector('.wynik1').innerHTML = '';
|
||||
// console.log('kliknięcie ');
|
||||
var szuk = document.querySelector('.szuk').value;
|
||||
|
||||
var ciagznakow = '';
|
||||
var ciagznakoww = '';
|
||||
var wynik = '';
|
||||
for (var ids of ciag) {
|
||||
|
||||
var fkategoria = document.querySelector(ids + ' .kategoria').innerHTML.replace('---- wybierz ----', '')
|
||||
fkategoria1 = document.querySelector(ids + ' .kategoria1').innerHTML.replace('---- wybierz ----', '')
|
||||
var fpowiekszenie = document.querySelector(ids + ' .powiekszenie').innerHTML.replace('---- wybierz ----', '')
|
||||
var fopis = document.querySelector(ids + ' .opis').innerHTML.replace('---- wybierz ----', '')
|
||||
var fzdjecie = document.querySelector(ids + ' td:nth-child(2)').innerHTML;
|
||||
var numerwgatunku = document.querySelector(ids + ' td:nth-child(3)').innerHTML;
|
||||
var numerwrodzaju = document.querySelector(ids + ' td:nth-child(4)').innerHTML;
|
||||
var numerrodzaju = document.querySelector(ids + ' td:nth-child(5)').innerHTML;
|
||||
|
||||
ciagznakow = fkategoria.replaceAll(' ', '') + '' + fkategoria1.replaceAll(' ', '') + '' + fpowiekszenie.replaceAll(' ', '') + '' + fopis.replaceAll(' ', '');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (ciagznakow.toLowerCase().includes(szuk.toLowerCase())) {
|
||||
idsSelected.add(ids);
|
||||
kategorieSet.add('<option>' + fkategoria + '</option>');
|
||||
kategorieSet1.add('<option>' + fkategoria1 + '</option>');
|
||||
powiekszenieSet.add(fpowiekszenie);
|
||||
if (fopis.length > 3) {
|
||||
opisSet.add(fopis);
|
||||
}
|
||||
|
||||
|
||||
|
||||
wynik = wynik + '<div class="under-wynik"><div class="myZdjecie"><img src="/images/dominik/' + fzdjecie + '"></div><div class="gridw"><div class="myCategory">' +
|
||||
'<span class="skategoria">Genus / Rodzaj</span>' + fkategoria + '</div><div class="myCategory1"><span class="skategoria1">Species / Gatunek</span>' + fkategoria1 + '</div>' +
|
||||
'<div class="myPowiekszenie"><span class="spowiekszenie">Magnification / Powiększenie</span> x' + fpowiekszenie + '</div><div class="myOpis">' +
|
||||
'<span>Description / Opis</span>' + fopis + '</div><div class="myNumerwgatunku"><span class="snumerwgatunku">Numer w gatunku</span>' + numerwgatunku + '</div>' +
|
||||
'<div class="myNumerwrodzaju"><span class="snumerwrodzaju">Numer w rodzaju</span>' + numerwrodzaju + '</div><div class="myNumerrodzaju"><span class="snrrodzaju">Nnumer rodzaju' +
|
||||
'</span>' + numerrodzaju + '</div></div></div>';
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
document.querySelector('.wynik').innerHTML = '<div class="grid-wynik">' + wynik + '</div>';
|
||||
|
||||
for (var kats of kategorieSet) {
|
||||
fkategorias = fkategorias + kats;
|
||||
}
|
||||
|
||||
for (var kats1 of kategorieSet1) {
|
||||
fkategorias1 = fkategorias1 + kats1;
|
||||
}
|
||||
|
||||
var sortPow = Array.from(powiekszenieSet).sort(function (a, b) {
|
||||
return b - a
|
||||
});
|
||||
var powiekszenieSetSort = new Set(sortPow);
|
||||
|
||||
for (var kats2 of powiekszenieSetSort) {
|
||||
fpowiekszenia = fpowiekszenia + '<option>' + kats2 + '</option>';
|
||||
}
|
||||
|
||||
var sortPow1 = Array.from(opisSet).sort()
|
||||
var opisSet1 = new Set(sortPow1);
|
||||
for (var kats3 of opisSet1) {
|
||||
|
||||
fopisy = fopisy + '<option>' + kats3 + '</option>';
|
||||
|
||||
}
|
||||
|
||||
var fopisy1 = fopisy.replace('<option></option>', '');
|
||||
|
||||
|
||||
document.querySelector('#selkategoria').innerHTML = '<option selected="selected">---- wybierz ----</option>' + fkategorias;
|
||||
document.querySelector('#selkategoria1').innerHTML = '<option selected="selected">---- wybierz ----</option>' + fkategorias1;
|
||||
document.querySelector('#powiekszenie').innerHTML = '<option selected="selected">---- wybierz ----</option>' + fpowiekszenia;
|
||||
document.querySelector('#opis').innerHTML = '<option selected="selected">---- wybierz ----</option>' + fopisy1;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
document.querySelector('#selkategoria').addEventListener('change', () => {
|
||||
var inputszuk = document.querySelector('.szuk').value;
|
||||
if (inputszuk.length > 0) {
|
||||
// document.querySelector('#selkategoria1').innerHTML = '';
|
||||
filtrkat = '';
|
||||
filtrowanekat1Set.clear();
|
||||
var selvalue = document.querySelector('#selkategoria').value;
|
||||
// console.log(selvalue + 'selvalue');
|
||||
for (var idsSelected1 of idsSelected) {
|
||||
// console.log(idsSelected1 +' .kategoria');
|
||||
document.querySelectorAll(idsSelected1 + ' .kategoria').forEach(kategoriess => {
|
||||
|
||||
// console.log('selvalue'+'----'+kategoriess.innerHTML);
|
||||
if (selvalue == kategoriess.innerHTML) {
|
||||
var kategoriaidwyzej = kategoriess.parentNode.id;
|
||||
var filtrowanekat1 = document.querySelector('#' + kategoriaidwyzej + ' .kategoria1').innerHTML;
|
||||
filtrowanekat1Set.add(filtrowanekat1);
|
||||
// console.log(filtrowanekat1+'wybrane selecty');
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
for (var kots of filtrowanekat1Set) {
|
||||
|
||||
filtrkat = filtrkat + '<option>' + kots + '</option>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
var szuka = document.querySelector('.szuk').value;
|
||||
// console.log('Dlugość value' + szuka.length)
|
||||
if (szuka.length > 3) {
|
||||
// console.log(filtrkat+' filtrkat');
|
||||
document.querySelector('#selkategoria1').innerHTML = '<option selected="selected">---- wybierz ----</option>' + filtrkat;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
|
||||
//------------kategoria1---------------------------//
|
||||
|
||||
document.querySelector('#selkategoria1').addEventListener('change', () => {
|
||||
var inputszuk1 = document.querySelector('.szuk').value;
|
||||
// console.log(inputszuk1.length + 'długość inputa' + inputszuk1);
|
||||
if (inputszuk1.length > 0) {
|
||||
|
||||
|
||||
document.querySelector('#powiekszenie').innerHTML = '';
|
||||
filios.clear();
|
||||
psotx = '';
|
||||
|
||||
var szuka = document.querySelector('.szuk').value;
|
||||
|
||||
var wartosckat1 = document.querySelector('#selkategoria1').value;
|
||||
// console.log(wartosckat1+'naciskamy kategoria 1');
|
||||
|
||||
// fkategoria1=wartosckat1;
|
||||
// console.log(fkategoria1 + 'fkategoria1 tutu');
|
||||
if (szuka.length > 1) {
|
||||
|
||||
for (var idoes of idsSelected) {
|
||||
|
||||
|
||||
var sos = document.querySelector(idoes + ' .kategoria1');
|
||||
// console.log(sos.innerHTML + 'sos równe');
|
||||
// console.log(wartosckat1 + 'sos równe1');
|
||||
if (sos.innerHTML == wartosckat1) {
|
||||
|
||||
|
||||
var wpowi = document.querySelector(idoes + ' .powiekszenie').innerHTML;
|
||||
filios.add(wpowi);
|
||||
|
||||
// console.log(wpowi+'asdfasfasdf')
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
for (var ses of filios) {
|
||||
psotx = psotx + '<option>' + ses + '</option>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
console.log(psotx + 'powiekszenie tototo');
|
||||
document.querySelector('#powiekszenie').innerHTML = '<option selected="selected">---- wybierz ----</option>' + psotx;
|
||||
}
|
||||
})
|
||||
|
||||
//-----------Kategoria1--------------//
|
||||
|
||||
|
||||
document.querySelector('#bzas').addEventListener('click', () => {
|
||||
wyniks = '';
|
||||
for (var ids of ciag) {
|
||||
|
||||
var fkategoria = document.querySelector(ids + ' .kategoria').innerHTML.replace('---- wybierz ----', '').replaceAll(' ', '');
|
||||
var fkategoria1 = document.querySelector(ids + ' .kategoria1').innerHTML.replace('---- wybierz ----', '').replaceAll(' ', '');
|
||||
var fkategoria11 = document.querySelector(ids + ' .kategoria1').innerHTML.replace('---- wybierz ----', '').replaceAll(' ', '');
|
||||
var fpowiekszenie = document.querySelector(ids + ' .powiekszenie').innerHTML.replace('---- wybierz ----', '').replaceAll(' ', '');
|
||||
var fopis = document.querySelector(ids + ' .opis').innerHTML.replace('---- wybierz ----', '').replaceAll(' ', '');
|
||||
var fzdjecie = document.querySelector(ids + ' td:nth-child(2)').innerHTML.replaceAll(' ', '');
|
||||
|
||||
ciagznakoww = fkategoria.replaceAll(' ', '') + '' + fkategoria1.replaceAll(' ', '') + '' + fpowiekszenie.replaceAll(' ', '') + '' + fopis.replaceAll(' ', '');
|
||||
|
||||
|
||||
var cselkaterogia = document.querySelector('#selkategoria').value;
|
||||
var cselkaterogia1 = document.querySelector('#selkategoria1').value;
|
||||
var cpowiekszenie = document.querySelector('#powiekszenie').value;
|
||||
var copis = document.querySelector('#opis').value;
|
||||
|
||||
var ciagznakoww1 = cselkaterogia.replace('---- wybierz ----', '').replaceAll(' ', '') + cselkaterogia1.replace('---- wybierz ----', '').replaceAll(' ', '') + cpowiekszenie.replace('---- wybierz ----', '').replaceAll(' ', '') + copis.replace('---- wybierz ----', '').replaceAll(' ', '');
|
||||
|
||||
// console.log(ciagznakoww1.toLowerCase() + ' równe ciągi');
|
||||
// console.log(' równe ciągi' + ciagznakoww.toLowerCase());
|
||||
if (ciagznakoww.toLowerCase().includes(ciagznakoww1.toLowerCase())) {
|
||||
|
||||
// console.log(ciagznakoww1 + ' równe ciągi' + ciagznakoww);
|
||||
|
||||
wyniks = wyniks + '<div class="under-wynik"><div class="myZdjecie"><img src="/images/dominik/' + fzdjecie + '"></div><div class="gridw"><div class="myCategory">' +
|
||||
'<span class="skategoria">Genus / Rodzaj</span>' + fkategoria + '</div><div class="myCategory1"><span class="skategoria1">Species / Gatunek</span>' + fkategoria11 + '</div>' +
|
||||
'<div class="myPowiekszenie"><span class="spowiekszenie">Magnification / Powiększenie</span> x' + fpowiekszenie + '</div><div class="myOpis">' +
|
||||
'<span>Description / Opis</span>' + fopis + '</div><div class="myNumerwgatunku"><span class="snumerwgatunku"></span></div>' +
|
||||
'<div class="myNumerwrodzaju"><span class="snumerwrodzaju"></span></div><div class="myNumerrodzaju"><span class="snrrodzaju">' +
|
||||
'</span></div></div></div>';
|
||||
|
||||
|
||||
// console.log(ciagznakoww1 + 'ciagznakow1');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//console.log(wyniks + "tu he wyniks sssssssssssssssss");
|
||||
document.querySelector('.wynik').innerHTML = wyniks;
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
177
templates/instytut_dendrologii_/js/mod26.js
Normal file
177
templates/instytut_dendrologii_/js/mod26.js
Normal file
@@ -0,0 +1,177 @@
|
||||
window.addEventListener('load', () => {
|
||||
noSearch();
|
||||
})
|
||||
|
||||
function noSearch() {
|
||||
var sase = new Set();
|
||||
var ciag = new Set();
|
||||
var bsi = new Set();
|
||||
var kategoria1Set = new Set();
|
||||
var kat1 = '';
|
||||
var kat2 = '';
|
||||
var filios = new Set();
|
||||
var idsSelected = new Set();
|
||||
var soto = new Set();
|
||||
var soto11 = new Set();
|
||||
var varex = -'';
|
||||
document.querySelectorAll('.excel tr:not(:first-child)').forEach(tr => {
|
||||
|
||||
ciag.add('#' + tr.id);
|
||||
|
||||
})
|
||||
var inputszuk = document.querySelector('.szuk').value;
|
||||
|
||||
document.querySelector('#selkategoria').addEventListener('change', () => {
|
||||
if (inputszuk.length < 1) {
|
||||
// Czyścimy wszytkie listy i zmienne
|
||||
kat1 = '';
|
||||
kat2 = '';
|
||||
soto11.clear();
|
||||
soto.clear();
|
||||
kategoria1Set.clear();
|
||||
filios.clear();
|
||||
sase.clear();
|
||||
bsi.clear();
|
||||
document.querySelector('#selkategoria1').innerHTML = '';
|
||||
document.querySelector('#powiekszenie').innerHTML = '';
|
||||
var vall = document.querySelector('#selkategoria').value;
|
||||
|
||||
for (var ciag1 of ciag) {
|
||||
var wsid = document.querySelector(ciag1 + ' .kategoria').innerHTML;
|
||||
// console.log(ciag1 + 'To ten cią');
|
||||
if (wsid == vall) {
|
||||
kategoria1Set.add(ciag1);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
for (var kat of kategoria1Set) {
|
||||
var kops = document.querySelector(kat + ' .kategoria1').innerHTML;
|
||||
var kops1 = document.querySelector(kat + ' .powiekszenie').innerHTML;
|
||||
var sepow = document.querySelector('#selkategoria1').value;
|
||||
|
||||
soto.add(kops);
|
||||
|
||||
soto11.add(kops1);
|
||||
|
||||
}
|
||||
kat1=kat1+'<option value="">All</option>';
|
||||
for (var soto1 of soto) {
|
||||
|
||||
kat1 = kat1 + '<option>' + soto1 + '</option>';
|
||||
}
|
||||
// console.log(kat1 + 'katogorje')
|
||||
document.querySelector('#selkategoria1').innerHTML = kat1;
|
||||
|
||||
kat2=kat2+'<option value="">All</option>';
|
||||
for (var sotop of soto11) {
|
||||
|
||||
kat2 = kat2 + '<option>' + sotop + '</option>';
|
||||
}
|
||||
|
||||
|
||||
document.querySelector('#powiekszenie').innerHTML ='<option value="">All</option>'+ kat2;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
//------------kategoria1---------------------------//
|
||||
|
||||
document.querySelector('#selkategoria1').addEventListener('change', () => {
|
||||
if (inputszuk.length < 1) {
|
||||
|
||||
document.querySelector('#powiekszenie').innerHTML = '';
|
||||
filios.clear();
|
||||
bsi.clear();
|
||||
fpowie = '';
|
||||
varex = '';
|
||||
var szuka = document.querySelector('.szuk').value;
|
||||
|
||||
var wartosckat1 = document.querySelector('#selkategoria1').value;
|
||||
// console.log(wartosckat1+'naciskamy kategoria 1');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
for (var idos of kategoria1Set) {
|
||||
|
||||
|
||||
var sos = document.querySelector(idos + ' .kategoria1');
|
||||
// console.log(sos.innerHTML + 'sos równe');
|
||||
// console.log(wartosckat1 + 'sos równe1');
|
||||
if (sos.innerHTML == wartosckat1) {
|
||||
|
||||
var wyzoss = sos.parentNode.id;
|
||||
var wpowi = document.querySelector('#' + wyzoss + ' .powiekszenie').innerHTML;
|
||||
filios.add(wpowi);
|
||||
|
||||
// console.log(wpowi+'asdfasfasdf')
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
fpowie=fpowie+'<option value="">All</option>';
|
||||
for (var ses of filios) {
|
||||
fpowie = fpowie + '<option>' + ses + '</option>';
|
||||
}
|
||||
|
||||
document.querySelector('#powiekszenie').innerHTML = fpowie;
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
document.querySelector('#powiekszenie').addEventListener('change', () => {
|
||||
if (inputszuk.length < 1) {
|
||||
varex = '';
|
||||
document.querySelector('#opis').innerHTML = '';
|
||||
sase.clear();
|
||||
bsi.clear();
|
||||
for (var cno of ciag) {
|
||||
var cnopowiekszenie = document.querySelector(cno + ' .powiekszenie').innerHTML;
|
||||
var cnokategoria1 = document.querySelector(cno + ' .kategoria1').innerHTML;
|
||||
var uskat1 = document.querySelector('#selkategoria1').value;
|
||||
var uspow = document.querySelector('#powiekszenie').value;
|
||||
if (cnopowiekszenie == uspow && cnokategoria1 == uskat1) {
|
||||
sase.add(cno);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (var ccno of sase) {
|
||||
var cnopo = document.querySelector(ccno + ' .opis').innerHTML;
|
||||
bsi.add(cnopo);
|
||||
|
||||
}
|
||||
varex=varex=+'<option value="">All</option>';
|
||||
for (var kex of bsi) {
|
||||
varex = varex + '<option>' + kex + '</option>';
|
||||
}
|
||||
|
||||
document.querySelector('#opis').innerHTML = '<option value="">All</option>'+varex;
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
84
templates/instytut_dendrologii_/js/mod27.js
Normal file
84
templates/instytut_dendrologii_/js/mod27.js
Normal file
@@ -0,0 +1,84 @@
|
||||
window.addEventListener('load', () => {
|
||||
showPrzewodnik();
|
||||
})
|
||||
function showPrzewodnik(){
|
||||
document.querySelectorAll('.formy-zwiedzaniatekstm p:nth-child(1)').forEach(items => {
|
||||
|
||||
items.addEventListener('click' ,() => {
|
||||
|
||||
|
||||
document.querySelectorAll('.formy-zwiedzaniatekstm p').forEach(ps => {
|
||||
ps.style.removeProperty('font-weight');
|
||||
})
|
||||
|
||||
document.querySelector('.zwiedzanie-z-przewodnikiem').style.setProperty('display','block');
|
||||
items.style.setProperty('font-weight','600');
|
||||
document.querySelectorAll('.zwiedzanie-indywidualne,.zwiedzanie-zgraterenowa,.zajecia-edukacyjne,.zwiedzanie-z-audio-przewodnikiem,.grid-audioprzewodnik').forEach(items1 => {
|
||||
items1.style.setProperty('display','none');
|
||||
items1.style.removeProperty('font-weight');
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
document.querySelector('.formy-zwiedzaniatekstm p:nth-child(2)').addEventListener('click' ,() => {
|
||||
document.querySelectorAll('.formy-zwiedzaniatekstm p').forEach(ps => {
|
||||
ps.style.removeProperty('font-weight');
|
||||
})
|
||||
document.querySelector('.zwiedzanie-indywidualne').style.setProperty('display','block');
|
||||
document.querySelector('.formy-zwiedzaniatekstm p:nth-child(2)').style.setProperty('font-weight','600');
|
||||
document.querySelectorAll('.zwiedzanie-z-przewodnikiem,.zwiedzanie-zgraterenowa,.zajecia-edukacyjne,.zwiedzanie-z-audio-przewodnikiem,.grid-audioprzewodnik').forEach(items => {
|
||||
items.style.setProperty('display','none');
|
||||
items.style.removeProperty('font-weight');
|
||||
})
|
||||
});
|
||||
document.querySelector('.formy-zwiedzaniatekstm p:nth-child(3)').addEventListener('click' ,() => {
|
||||
document.querySelectorAll('.formy-zwiedzaniatekstm p').forEach(ps => {
|
||||
ps.style.removeProperty('font-weight');
|
||||
})
|
||||
document.querySelector('.zwiedzanie-zgraterenowa').style.setProperty('display','block');
|
||||
document.querySelector('.formy-zwiedzaniatekstm p:nth-child(3)').style.setProperty('font-weight','600');
|
||||
document.querySelectorAll('.zwiedzanie-z-przewodnikiem,.zwiedzanie-indywidualne,.zajecia-edukacyjne,.zwiedzanie-z-audio-przewodnikiem,.grid-audioprzewodnik').forEach(items => {
|
||||
items.style.setProperty('display','none');
|
||||
items.style.removeProperty('font-weight');
|
||||
})
|
||||
});
|
||||
document.querySelector('.formy-zwiedzaniatekstm p:nth-child(4)').addEventListener('click' ,() => {
|
||||
document.querySelectorAll('.formy-zwiedzaniatekstm p').forEach(ps => {
|
||||
ps.style.removeProperty('font-weight');
|
||||
})
|
||||
document.querySelector('.zajecia-edukacyjne').style.setProperty('display','block');
|
||||
document.querySelector('.formy-zwiedzaniatekstm p:nth-child(4)').style.setProperty('font-weight','600');
|
||||
document.querySelectorAll('.zwiedzanie-z-przewodnikiem,.zwiedzanie-indywidualne,.zwiedzanie-zgraterenowa,.zwiedzanie-z-audio-przewodnikiem,.grid-audioprzewodnik').forEach(items => {
|
||||
items.style.setProperty('display','none');
|
||||
items.style.removeProperty('font-weight');
|
||||
})
|
||||
});
|
||||
document.querySelector('.formy-zwiedzaniatekstm p:nth-child(5)').addEventListener('click' ,() => {
|
||||
document.querySelectorAll('.formy-zwiedzaniatekstm p').forEach(ps => {
|
||||
ps.style.removeProperty('font-weight');
|
||||
})
|
||||
document.querySelectorAll('.zwiedzanie-z-audio-przewodnikiem').forEach(items1 => {
|
||||
document.querySelectorAll('.formy-zwiedzaniatekstm p').forEach(ps => {
|
||||
ps.style.removeProperty('font-weight');
|
||||
})
|
||||
|
||||
items1.style.setProperty('display','block');
|
||||
document.querySelector('.formy-zwiedzaniatekstm p:nth-child(5)').style.setProperty('font-weight','600');
|
||||
|
||||
})
|
||||
document.querySelectorAll('.grid-audioprzewodnik').forEach(items1 => {
|
||||
|
||||
items1.style.setProperty('display','flex');
|
||||
|
||||
})
|
||||
document.querySelectorAll('.zwiedzanie-z-przewodnikiem,.zwiedzanie-indywidualne,.zwiedzanie-zgraterenowa,.zajecia-edukacyjne').forEach(items => {
|
||||
items.style.setProperty('display','none');
|
||||
items.style.removeProperty('font-weight');
|
||||
})
|
||||
});
|
||||
|
||||
}
|
||||
96
templates/instytut_dendrologii_/js/mod28.js
Normal file
96
templates/instytut_dendrologii_/js/mod28.js
Normal file
@@ -0,0 +1,96 @@
|
||||
window.addEventListener('load', () => {
|
||||
showTextt();
|
||||
})
|
||||
|
||||
function showTextt(){
|
||||
|
||||
document.querySelector('.imprezy-tekstpodmenu5 p').addEventListener('click', () => {
|
||||
document.querySelectorAll('.imprezy-zawartosbialebzygaleria,.imprezy-barwyjesienigaleria,.imprezy-dniaziligaleria,.imprezy-umajonearboretumgaleria,.imprezy-zawartosumajonearboretum p, .imprezy-zawartosbialebzy p,.imprezy-zawartosdniazili p,imprezy-zawartoscbarwyjesieni p,.imprezy-zawartosc p').forEach(items => {
|
||||
items.style.setProperty('display','none');
|
||||
})
|
||||
|
||||
|
||||
|
||||
document.querySelectorAll('.imprezy-zawartosczwiastunywiosny p,.imprezy-zawartosczwiastunywiosny1').forEach(text => {
|
||||
|
||||
text.style.setProperty('display','block');
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
document.querySelector('.imprezy-tekstpodmenu4 p').addEventListener('click', () => {
|
||||
document.querySelectorAll('.imprezy-zawartosbialebzygaleria,.imprezy-barwyjesienigaleria,.imprezy-dniaziligaleria,.imprezy-zawartosczwiastunywiosny1,.imprezy-zawartosbialebzy p,.imprezy-zawartosdniazili p,.imprezy-zawartoscbarwyjesieni p,.imprezy-zawartosczwiastunywiosny p,.imprezy-zawartosc p').forEach(items => {
|
||||
items.style.setProperty('display','none');
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
document.querySelectorAll('.imprezy-zawartosumajonearboretum p,.imprezy-umajonearboretumgaleria').forEach(text => {
|
||||
|
||||
text.style.setProperty('display','block');
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
document.querySelector('.imprezy-tekstpodmenu3 p').addEventListener('click', () => {
|
||||
document.querySelectorAll('.imprezy-barwyjesienigaleria,.imprezy-dniaziligaleria,.imprezy-umajonearboretumgaleria,.imprezy-zawartosczwiastunywiosny1,.imprezy-zawartosbialebzy p,.imprezy-zawartosdniazili p,.imprezy-zawartoscbarwyjesieni p,.imprezy-zawartosczwiastunywiosny p,.imprezy-zawartosumajonearboretum p,.imprezy-zawartosc p').forEach(items => {
|
||||
items.style.setProperty('display','none');
|
||||
})
|
||||
|
||||
document.querySelectorAll('.imprezy-zawartosbialebzy p,.imprezy-zawartosbialebzygaleria').forEach(text => {
|
||||
|
||||
text.style.setProperty('display','block');
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
document.querySelector('.imprezy-tekstpodmenu2 p').addEventListener('click', () => {
|
||||
document.querySelectorAll('.imprezy-zawartosbialebzygaleria,.imprezy-barwyjesienigaleria,.imprezy-umajonearboretumgaleria,.imprezy-zawartosczwiastunywiosny1,.imprezy-zawartosbialebzy p,.imprezy-zawartosdniazili p,.imprezy-zawartoscbarwyjesieni p,.imprezy-zawartosczwiastunywiosny p,.imprezy-zawartosumajonearboretum p,.imprezy-zawartosc p').forEach(items => {
|
||||
items.style.setProperty('display','none');
|
||||
})
|
||||
|
||||
document.querySelectorAll('.imprezy-zawartosdniazili p,.imprezy-dniaziligaleria').forEach(text => {
|
||||
|
||||
text.style.setProperty('display','block');
|
||||
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
document.querySelector('.imprezy-tekstpodmenu1 p').addEventListener('click', () => {
|
||||
document.querySelectorAll('.imprezy-zawartosbialebzygaleria,.imprezy-dniaziligaleria,.imprezy-umajonearboretumgaleria,.imprezy-zawartosczwiastunywiosny1,.imprezy-zawartosbialebzy p,.imprezy-zawartosdniazili p,.imprezy-zawartoscbarwyjesieni p,.imprezy-zawartosczwiastunywiosny p,.imprezy-zawartosumajonearboretum p,.imprezy-zawartosc p').forEach(items => {
|
||||
items.style.setProperty('display','none');
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
document.querySelectorAll('.imprezy-zawartoscbarwyjesieni p,.imprezy-barwyjesienigaleria').forEach(text => {
|
||||
|
||||
text.style.setProperty('display','block');
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
document.querySelector('.imprezy-tekstpodmenu p').addEventListener('click', () => {
|
||||
document.querySelectorAll('.imprezy-zawartosbialebzygaleria,.imprezy-barwyjesienigaleria,.imprezy-dniaziligaleria,.imprezy-umajonearboretumgaleria,.imprezy-zawartosczwiastunywiosny1,.imprezy-zawartosbialebzy p,.imprezy-zawartosdniazili p,.imprezy-zawartoscbarwyjesieni p,.imprezy-zawartosczwiastunywiosny p,.imprezy-zawartosumajonearboretum p').forEach(items => {
|
||||
items.style.setProperty('display','none');
|
||||
})
|
||||
|
||||
document.querySelectorAll('.imprezy-zawartosc p').forEach(items => {
|
||||
|
||||
items.style.setProperty('display','block');
|
||||
})
|
||||
})
|
||||
}
|
||||
26
templates/instytut_dendrologii_/js/mod29.js
Normal file
26
templates/instytut_dendrologii_/js/mod29.js
Normal file
@@ -0,0 +1,26 @@
|
||||
window.addEventListener('load', () => {
|
||||
setDateInput();
|
||||
})
|
||||
|
||||
function setDateInput(){
|
||||
document.querySelector('.arboretum-kontakt .date').setAttribute('type','date');
|
||||
document.querySelector('.arboretum-kontakt .date').setAttribute('min',formatDate());
|
||||
document.querySelector('.arboretum-kontakt .date').value=formatDate();
|
||||
document.querySelector('.arboretum-kontakt .hour').value='7.30 - 15.30';
|
||||
console.log(formatDate());
|
||||
}
|
||||
|
||||
function formatDate() {
|
||||
date = new Date();
|
||||
var d = new Date(date.setDate(date.getDate() + 5)),
|
||||
month = '' + (d.getMonth() + 1),
|
||||
day = '' + d.getDate(),
|
||||
year = d.getFullYear();
|
||||
|
||||
if (month.length < 2)
|
||||
month = '0' + month;
|
||||
if (day.length < 2)
|
||||
day = '0' + day;
|
||||
|
||||
return [year, month, day].join('-');
|
||||
}
|
||||
18
templates/instytut_dendrologii_/js/mod3.js
Normal file
18
templates/instytut_dendrologii_/js/mod3.js
Normal file
@@ -0,0 +1,18 @@
|
||||
window.addEventListener('load', () => {
|
||||
playVideo();
|
||||
})
|
||||
|
||||
function playVideo(){
|
||||
|
||||
document.querySelector('.green-buttons .ogladaj1').addEventListener('click', () => {
|
||||
var link1=document.querySelector('.green-buttons .ogladaj1 a').getAttribute('href');
|
||||
console.log('To link video'+link1);
|
||||
})
|
||||
|
||||
document.querySelector('.green-buttons .ogladaj2').addEventListener('click', () => {
|
||||
var link=document.querySelector('.green-buttons .ogladaj2 a').getAttribute('href');
|
||||
console.log('To link video'+link);
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
212
templates/instytut_dendrologii_/js/mod30.js
Normal file
212
templates/instytut_dendrologii_/js/mod30.js
Normal file
@@ -0,0 +1,212 @@
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
imageFiler();
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
function imageFiler(){
|
||||
|
||||
var miesiacSet=new Set();
|
||||
var miesiacSet2=new Set();
|
||||
var rokSet=new Set();
|
||||
var inrok='';
|
||||
var inmiesiac='';
|
||||
var rok='';
|
||||
var miesiacc='';
|
||||
var rokp='';
|
||||
var wartoscinputow='';
|
||||
var wartoscinputow1='';
|
||||
var imagePath='';
|
||||
var przechowywaczka=document.querySelector('ul.sigFreeClassic').innerHTML;
|
||||
document.querySelectorAll('ul.sigFreeClassic li.sigFreeThumb a').forEach(img => {
|
||||
imagePath= img.getAttribute('href').replace('/images/stories/arboretum/fotoaktualnosci/','');
|
||||
|
||||
|
||||
rok=imagePath.substring(0,4);
|
||||
miesiacc=imagePath.substring(5,7);
|
||||
var dzien=imagePath.substring(8,10);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(new Number(rok)>0){
|
||||
rokSet.add(rok);
|
||||
// console.log(rok+'in rok');
|
||||
}
|
||||
if(new Number(miesiacc)>0){
|
||||
miesiacSet.add(new Number(miesiacc));
|
||||
}
|
||||
|
||||
document.querySelectorAll('ul.sigFreeClassic li.sigFreeThumb img').forEach(lis => {
|
||||
lis.addEventListener('click', () => {
|
||||
// console.log(lis.alt.replace('Click to enlarge image'));
|
||||
|
||||
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var sortedMiesiac= Array.from(miesiacSet).sort(function (a, b) {
|
||||
return a-b
|
||||
});
|
||||
for(var miesiac of sortedMiesiac)
|
||||
{
|
||||
if(miesiac==('01')){
|
||||
miesiac='Styczeń'
|
||||
|
||||
}else if(miesiac==('02')){
|
||||
miesiac='Luty';
|
||||
}
|
||||
else if(miesiac==('03')){
|
||||
miesiac='Marzec';
|
||||
}
|
||||
else if(miesiac==('04')){
|
||||
miesiac='Kwiecień';
|
||||
}
|
||||
else if(miesiac==('05')){
|
||||
miesiac='Maj';
|
||||
}
|
||||
else if(miesiac==('06')){
|
||||
miesiac='Czerwiec';
|
||||
}
|
||||
else if(miesiac==('07')){
|
||||
miesiac='Lipiec';
|
||||
}
|
||||
else if(miesiac==('08')){
|
||||
miesiac='Sierpień';
|
||||
}
|
||||
else if(miesiac==('09')){
|
||||
miesiac='Wrzesień';
|
||||
}
|
||||
else if(miesiac==('10')){
|
||||
miesiac='Październik';
|
||||
}
|
||||
else if(miesiac==('11')){
|
||||
miesiac='Listopad'
|
||||
}
|
||||
else if(miesiac==('12')){
|
||||
miesiac='Grudzień'
|
||||
}
|
||||
|
||||
miesiacSet2.add(miesiac);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
var rokInput=document.querySelector('.arbo-rok');
|
||||
|
||||
|
||||
for(var rk of rokSet){
|
||||
inrok=inrok+'<option value="'+rk+'"><div>'+rk+'</div></option>';
|
||||
|
||||
}
|
||||
//console.log(inrok+'in rok');
|
||||
rokInput.innerHTML=rokInput.innerHTML+'<select><option value="" placeholder="wybierz" >ALL                    </option>'+inrok+'</select>';
|
||||
|
||||
var miesiacInput=document.querySelector('.arbo-miesiac');
|
||||
|
||||
for(var mies of miesiacSet2){
|
||||
|
||||
inmiesiac=inmiesiac+'<option value="'+mies+'"><div>'+mies+'</</option>';
|
||||
//console.log(mies+'miesiące');
|
||||
}
|
||||
miesiacInput.innerHTML=miesiacInput.innerHTML+'<select><option value="" placeholder="wybierz" >ALL               </option>'+inmiesiac+'</select>';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
document.querySelector('.arbo-szukaj').addEventListener('click',() => {
|
||||
|
||||
|
||||
|
||||
document.querySelector('ul.sigFreeClassic').innerHTML=przechowywaczka;
|
||||
console.log(przechowywaczka);
|
||||
|
||||
|
||||
|
||||
var wybranyrokc=document.querySelector('.arbo-rok select').value.replace('ALL','').replaceAll('  ','');
|
||||
|
||||
|
||||
var wybranymiesiac=document.querySelector('.arbo-miesiac select').value.replace('ALL','');
|
||||
|
||||
if(wybranymiesiac=='Styczeń'){
|
||||
wybranymiesiac='01';
|
||||
}else if(wybranymiesiac=='Luty'){
|
||||
wybranymiesiac='02';
|
||||
}
|
||||
else if(wybranymiesiac=='Marzec'){
|
||||
wybranymiesiac='03';
|
||||
}else if(wybranymiesiac=='Kwiecień'){
|
||||
wybranymiesiac='04';
|
||||
}else if(wybranymiesiac=='Maj'){
|
||||
wybranymiesiac='05';
|
||||
}else if(wybranymiesiac=='Czerwiec'){
|
||||
wybranymiesiac='06';
|
||||
}else if(wybranymiesiac=='Lipiec'){
|
||||
wybranymiesiac='07';
|
||||
}else if(wybranymiesiac=='Sierpień'){
|
||||
wybranymiesiac='08';
|
||||
}else if(wybranymiesiac=='Wrzesień'){
|
||||
wybranymiesiac='09';
|
||||
}else if(wybranymiesiac=='Październik'){
|
||||
wybranymiesiac='10';
|
||||
}else if(wybranymiesiac=='Listopad'){
|
||||
wybranymiesiac='11';
|
||||
}else if(wybranymiesiac=='Grudzień'){
|
||||
wybranymiesiac='12';
|
||||
}
|
||||
|
||||
|
||||
|
||||
wartoscinputow=wybranyrokc+'_'+wybranymiesiac
|
||||
wartoscinputow1=wartoscinputow.replaceAll(' ','');
|
||||
|
||||
|
||||
|
||||
document.querySelectorAll('ul.sigFreeClassic li a').forEach(li =>{
|
||||
var ciagznakow=li.href.slice(0,-10);
|
||||
var lista=li.parentNode.id;
|
||||
|
||||
|
||||
if(ciagznakow.includes(wartoscinputow1)){
|
||||
li.parentNode.style.setProperty('display','block');
|
||||
|
||||
|
||||
}else{
|
||||
|
||||
//document.querySelector('#'+lista).remove();
|
||||
|
||||
li.parentNode.style.setProperty('display','none');
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
87
templates/instytut_dendrologii_/js/mod31.js
Normal file
87
templates/instytut_dendrologii_/js/mod31.js
Normal file
@@ -0,0 +1,87 @@
|
||||
window.addEventListener('load' ,() => {
|
||||
pathim();
|
||||
imagePath();
|
||||
})
|
||||
|
||||
window.addEventListener('touch' ,() => {
|
||||
clos4();
|
||||
})
|
||||
function clos4(){
|
||||
document.querySelectorAll('.fancybox-content ').forEach(fancy => {
|
||||
var zr=fancy.innerHTML;
|
||||
var path= zr.substring(zr.indexOf('sci/'),zr.length);
|
||||
var path1=path.slice(0,-2).replace('sci/','');
|
||||
// console.log('path' + path.slice(0,-2).replace('sci/',''));
|
||||
// console.log(zr.length+"długośc znaków dla fanc7yh ");
|
||||
|
||||
if(!fancy.innerHTML.includes('span')){
|
||||
fancy.innerHTML=fancy.innerHTML+'<span class="pathos">'+path1+'</span>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
function pathim(){
|
||||
|
||||
|
||||
document.querySelector('body').addEventListener('mouseover', () => {
|
||||
document.querySelectorAll('.fancybox-content ').forEach(fancy => {
|
||||
var zr=fancy.innerHTML;
|
||||
var path= zr.substring(zr.indexOf('sci/'),zr.length);
|
||||
var path1=path.slice(0,-2).replace('sci/','');
|
||||
|
||||
if(!fancy.innerHTML.includes('span')){
|
||||
fancy.innerHTML=fancy.innerHTML+'<span class="pathos">'+path1+'</span>';
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
setInterval(clos4,1000);
|
||||
// console.log('kliknięto na guwno1');
|
||||
document.querySelectorAll('.fancybox-content ').forEach(fancy => {
|
||||
var zr=fancy.innerHTML;
|
||||
var path= zr.substring(zr.indexOf('sci/'),zr.length);
|
||||
var path1=path.slice(0,-2).replace('sci/','');
|
||||
// console.log('path' + path.slice(0,-2).replace('sci/',''));
|
||||
// console.log(zr.length+"długośc znaków dla fanc7yh ");
|
||||
if(!fancy.innerHTML.includes('span')){
|
||||
fancy.innerHTML=fancy.innerHTML+'<span class="pathos">'+path1+'</span>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
function imagePath(){
|
||||
console.log('Działa funkcja');
|
||||
document.querySelector('ul.sigFreeClassic li.sigFreeThumb').addEventListener('click', () =>{
|
||||
// console.log('Guwno');
|
||||
})
|
||||
|
||||
|
||||
|
||||
document.querySelectorAll('ul.sigFreeClassic li.sigFreeThumb').forEach(lo => {
|
||||
lo.addEventListener('click', () => {
|
||||
// console.log('Działa funkcja1');
|
||||
var src= document.querySelector('.fancybox-image').getAttribute('src');
|
||||
document.querySelector('.fancybox-caption__body').innerHTML=src;
|
||||
// console.log('działa'+src);
|
||||
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user