Revize 863ca316
Přidáno uživatelem Martin Sebela před více než 4 roky(ů)
website/public/css/style.css | ||
---|---|---|
1 |
@charset "UTF-8"; |
|
2 | 1 |
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam:wght@400;600;700;800&display=swap"); |
3 | 2 |
html, body { |
4 | 3 |
position: relative; |
... | ... | |
768 | 767 |
} |
769 | 768 |
} |
770 | 769 |
|
771 |
.player .next, .player .prev, .player .play, .player .pause, .player .lock-date {
|
|
770 |
.player .next-btn, .player .prev-btn, .player .animate-btn, .player .lock-btn {
|
|
772 | 771 |
display: inline-block; |
773 | 772 |
width: 42px; |
774 | 773 |
height: 42px; |
... | ... | |
782 | 781 |
cursor: pointer; |
783 | 782 |
} |
784 | 783 |
|
785 |
.player .next:hover, .player .prev:hover, .player .play:hover, .player .pause:hover, .player .lock-date:hover {
|
|
784 |
.player .next-btn:hover, .player .prev-btn:hover, .player .animate-btn:hover, .player .lock-btn:hover {
|
|
786 | 785 |
opacity: 1; |
787 | 786 |
} |
788 | 787 |
|
789 |
.player .next:after, .player .prev:after, .player .play:after, .player .pause:after, .player .lock-date:after {
|
|
788 |
.player .next-btn:after, .player .prev-btn:after, .player .animate-btn:after, .player .lock-btn:after {
|
|
790 | 789 |
content: ""; |
791 | 790 |
display: inline-block; |
792 | 791 |
width: 7px; |
... | ... | |
796 | 795 |
left: calc(50% - 4px); |
797 | 796 |
} |
798 | 797 |
|
799 |
.player .play, .player .pause {
|
|
798 |
.player .animate-btn {
|
|
800 | 799 |
width: 57px; |
801 | 800 |
height: 57px; |
802 | 801 |
opacity: 1; |
803 | 802 |
} |
804 | 803 |
|
805 | 804 |
@media (max-width: 991.98px) { |
806 |
.player .play, .player .pause {
|
|
805 |
.player .animate-btn {
|
|
807 | 806 |
order: 3; |
808 | 807 |
} |
809 | 808 |
} |
810 | 809 |
|
811 |
.player .play:hover, .player .pause:hover {
|
|
810 |
.player .animate-btn:hover {
|
|
812 | 811 |
opacity: .7; |
813 | 812 |
} |
814 | 813 |
|
815 |
.player .play:after, .player .pause:after {
|
|
814 |
.player .animate-btn:after {
|
|
816 | 815 |
width: 10px; |
817 | 816 |
height: 16px; |
818 | 817 |
top: calc(50% - 8px); |
819 | 818 |
} |
820 | 819 |
|
821 |
.player .play:after { |
|
822 |
left: calc(50% - 2px);
|
|
820 |
.player .animate-btn.play:after {
|
|
821 |
left: calc(50% - 3px);
|
|
823 | 822 |
background: url("../img/btn-play.svg") no-repeat; |
824 | 823 |
} |
825 | 824 |
|
826 |
.player .pause:after { |
|
827 |
left: calc(50% - 4px);
|
|
825 |
.player .animate-btn.pause:after {
|
|
826 |
left: calc(50% - 5px);
|
|
828 | 827 |
background: url("../img/btn-pause.png") no-repeat; |
829 | 828 |
} |
830 | 829 |
|
831 | 830 |
@media (max-width: 991.98px) { |
832 |
.player .next { |
|
831 |
.player .next-btn {
|
|
833 | 832 |
order: 3; |
834 | 833 |
} |
835 | 834 |
} |
836 | 835 |
|
837 | 836 |
@media (max-width: 575.98px) { |
838 |
.player .next { |
|
837 |
.player .next-btn {
|
|
839 | 838 |
margin-right: 0; |
840 | 839 |
} |
841 | 840 |
} |
842 | 841 |
|
843 |
.player .next:after { |
|
842 |
.player .next-btn:after {
|
|
844 | 843 |
background: url("../img/btn-next.svg") no-repeat; |
845 | 844 |
} |
846 | 845 |
|
847 | 846 |
@media (max-width: 991.98px) { |
848 |
.player .prev { |
|
847 |
.player .prev-btn {
|
|
849 | 848 |
order: 2; |
850 | 849 |
} |
851 | 850 |
} |
852 | 851 |
|
853 |
.player .prev:after { |
|
852 |
.player .prev-btn:after {
|
|
854 | 853 |
background: url("../img/btn-prev.svg") no-repeat; |
855 | 854 |
} |
856 | 855 |
|
857 |
.player .datetime {
|
|
856 |
.player .timeline-wrapper {
|
|
858 | 857 |
display: flex; |
859 | 858 |
} |
860 | 859 |
|
861 | 860 |
@media (max-width: 390px) { |
862 |
.player .datetime {
|
|
861 |
.player .timeline-wrapper {
|
|
863 | 862 |
display: block; |
864 | 863 |
text-align: center; |
865 | 864 |
margin-right: 10px; |
... | ... | |
884 | 883 |
} |
885 | 884 |
} |
886 | 885 |
|
887 |
.player .date span {
|
|
888 |
padding: 3px 6px 4px 12px;
|
|
886 |
.player .date:hover .lock-btn:after {
|
|
887 |
background-position: 0 0;
|
|
889 | 888 |
} |
890 | 889 |
|
891 | 890 |
.player .date.lock { |
892 | 891 |
background: #0b155a; |
893 | 892 |
} |
894 | 893 |
|
895 |
.player .date.lock .lock-date { |
|
896 |
border: 0px; |
|
894 |
.player .date.lock:hover .lock-btn:after { |
|
895 |
background-position: -8px 0; |
|
896 |
} |
|
897 |
|
|
898 |
.player .date.lock .lock-btn { |
|
899 |
border: 0; |
|
897 | 900 |
box-shadow: none; |
898 | 901 |
} |
899 | 902 |
|
900 |
.player .date.lock .lock-date:after {
|
|
903 |
.player .date.lock .lock-btn:after {
|
|
901 | 904 |
background-position: 0 0; |
902 | 905 |
} |
903 | 906 |
|
904 |
.player .date.lock .lock-date:hover:after {
|
|
905 |
background-position: -8px 0;
|
|
907 |
.player .date span {
|
|
908 |
padding: 3px 6px 4px 12px;
|
|
906 | 909 |
} |
907 | 910 |
|
908 |
.player .date .lock-date {
|
|
911 |
.player .date .lock-btn {
|
|
909 | 912 |
width: 26px; |
910 | 913 |
height: 26px; |
911 | 914 |
margin-right: 2px; |
912 | 915 |
opacity: 1; |
913 | 916 |
border: 1px solid #ffffff; |
914 |
/* box-shadow: 0 0 0 2px $secondary-bg-color; */ |
|
915 | 917 |
} |
916 | 918 |
|
917 |
.player .date .lock-date:after { |
|
918 |
background-position: -8px 0; |
|
919 |
} |
|
920 |
|
|
921 |
.player .date .lock-date:hover { |
|
922 |
/* box-shadow: 0 0 0 2px rgba(11, 21, 90, .2); */ |
|
923 |
background: rgba(11, 21, 90, 0.2); |
|
924 |
} |
|
925 |
|
|
926 |
.player .date .lock-date:hover:after { |
|
927 |
background-position: 0 0; |
|
928 |
} |
|
929 |
|
|
930 |
.player .date .lock-date:after { |
|
919 |
.player .date .lock-btn:after { |
|
931 | 920 |
content: ''; |
932 | 921 |
display: inline-block; |
933 | 922 |
width: 8px; |
... | ... | |
936 | 925 |
background-size: cover; |
937 | 926 |
} |
938 | 927 |
|
928 |
.player .date .lock-btn:hover:after { |
|
929 |
background-position: 0 0; |
|
930 |
} |
|
931 |
|
|
939 | 932 |
.player .timeline { |
940 | 933 |
display: flex; |
941 | 934 |
height: 30px; |
... | ... | |
1212 | 1205 |
margin-bottom: auto; |
1213 | 1206 |
} |
1214 | 1207 |
|
1215 |
header.map .nav-item:nth-child(3), header.map .nav-item:last-child {
|
|
1208 |
header.map .nav-item:nth-child(3) { |
|
1216 | 1209 |
border: 0; |
1217 | 1210 |
} |
1218 | 1211 |
|
1219 |
header.map .nav-item .btn-secondary { |
|
1220 |
display: flex; |
|
1221 |
justify-content: center; |
|
1222 |
align-items: center; |
|
1223 |
outline: none; |
|
1224 |
border-radius: 50px; |
|
1225 |
height: 40px; |
|
1226 |
width: 40px; |
|
1227 |
margin-left: 10px; |
|
1228 |
transition: all 0.2s ease-out; |
|
1229 |
color: #0048A9; |
|
1230 |
background: white; |
|
1231 |
-webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.17); |
|
1232 |
-moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.17); |
|
1233 |
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.17); |
|
1212 |
header.map .nav-item:last-child { |
|
1213 |
margin-top: 0; |
|
1214 |
margin-bottom: 0; |
|
1215 |
border-left: 1px solid #1C6CC0; |
|
1216 |
background: #0057be; |
|
1234 | 1217 |
} |
1235 | 1218 |
|
1236 | 1219 |
@media (max-width: 991.98px) { |
1237 |
header.map .nav-item .btn-secondary { |
|
1238 |
width: 100%; |
|
1239 |
border-radius: .25rem; |
|
1240 |
margin-left: 0px; |
|
1241 |
margin-top: 10px; |
|
1242 |
margin-bottom: -10px; |
|
1220 |
header.map .nav-item:last-child { |
|
1221 |
margin: 10px 5px 0 5px; |
|
1222 |
border: 0; |
|
1243 | 1223 |
} |
1244 | 1224 |
} |
1245 | 1225 |
|
1246 |
header.map .nav-item .btn-secondary:after { |
|
1247 |
padding-bottom: 4px; |
|
1248 |
content: '↺'; |
|
1249 |
font-weight: 400; |
|
1250 |
font-size: 30px; |
|
1251 |
transform: rotateZ(0); |
|
1252 |
transition: all 0.6s cubic-bezier(0.075, 0.82, 0.165, 1); |
|
1226 |
header.map .nav-item:last-child:hover { |
|
1227 |
background: #004fb3; |
|
1253 | 1228 |
} |
1254 | 1229 |
|
1255 |
header.map .nav-item .btn-secondary:hover { |
|
1256 |
color: #0048A9; |
|
1257 |
background: white !important; |
|
1258 |
-webkit-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.22); |
|
1259 |
-moz-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.22); |
|
1260 |
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.22); |
|
1230 |
header.map .nav-item .btn-secondary { |
|
1231 |
display: inline-block; |
|
1232 |
outline: none; |
|
1233 |
padding: 0 30px; |
|
1234 |
background: url("../img/btn-refresh.svg") no-repeat center center; |
|
1261 | 1235 |
} |
1262 | 1236 |
|
1263 |
header.map .nav-item .btn-secondary:hover:after { |
|
1264 |
transform: rotateZ(-90deg); |
|
1265 |
transition: all 0.6s cubic-bezier(0.075, 0.82, 0.165, 1); |
|
1237 |
header.map .nav-item .btn-secondary:hover { |
|
1238 |
background: url("../img/btn-refresh.svg") no-repeat center center !important; |
|
1266 | 1239 |
} |
1267 | 1240 |
|
1268 |
header.map .nav-item .btn-secondary:active, header.map .nav-item .btn-secondary:focus { |
|
1269 |
background: #f0f0f0 !important; |
|
1270 |
color: #0048A9 !important; |
|
1241 |
@media (max-width: 991.98px) { |
|
1242 |
header.map .nav-item .btn-secondary { |
|
1243 |
width: 100%; |
|
1244 |
padding: 20px; |
|
1245 |
} |
|
1271 | 1246 |
} |
1272 | 1247 |
|
1273 | 1248 |
header.map .nav-item input:hover { |
website/public/css/style.scss | ||
---|---|---|
734 | 734 |
bottom: -30px; |
735 | 735 |
} |
736 | 736 |
|
737 |
.next, .prev, .play, .pause, .lock-date {
|
|
737 |
.next-btn, .prev-btn, .animate-btn, .lock-btn {
|
|
738 | 738 |
display: inline-block; |
739 | 739 |
width: 42px; |
740 | 740 |
height: 42px; |
... | ... | |
762 | 762 |
} |
763 | 763 |
} |
764 | 764 |
|
765 |
.play, .pause {
|
|
765 |
.animate-btn {
|
|
766 | 766 |
width: 57px; |
767 | 767 |
height: 57px; |
768 | 768 |
opacity: 1; |
... | ... | |
780 | 780 |
height: 16px; |
781 | 781 |
top: calc(50% - 8px); |
782 | 782 |
} |
783 |
} |
|
784 |
|
|
785 |
.play:after { |
|
786 |
left: calc(50% - 2px); |
|
787 |
background: url($images-dir + 'btn-play.svg') no-repeat; |
|
788 |
} |
|
789 | 783 |
|
790 |
.pause:after { |
|
791 |
left: calc(50% - 4px); |
|
792 |
background: url($images-dir + 'btn-pause.png') no-repeat; |
|
784 |
&.play:after { |
|
785 |
left: calc(50% - 3px); |
|
786 |
background: url($images-dir + 'btn-play.svg') no-repeat; |
|
787 |
} |
|
788 |
|
|
789 |
&.pause:after { |
|
790 |
left: calc(50% - 5px); |
|
791 |
background: url($images-dir + 'btn-pause.png') no-repeat; |
|
792 |
} |
|
793 | 793 |
} |
794 | 794 |
|
795 |
.next { |
|
795 |
.next-btn {
|
|
796 | 796 |
@include media-breakpoint-down(md) { |
797 | 797 |
order: 3; |
798 | 798 |
} |
... | ... | |
806 | 806 |
} |
807 | 807 |
} |
808 | 808 |
|
809 |
.prev { |
|
809 |
.prev-btn {
|
|
810 | 810 |
@include media-breakpoint-down(md) { |
811 | 811 |
order: 2; |
812 | 812 |
} |
... | ... | |
816 | 816 |
} |
817 | 817 |
} |
818 | 818 |
|
819 |
.datetime {
|
|
819 |
.timeline-wrapper {
|
|
820 | 820 |
display: flex; |
821 | 821 |
|
822 | 822 |
@media (max-width: 390px) { |
... | ... | |
836 | 836 |
border-radius: 15px; |
837 | 837 |
cursor: pointer; |
838 | 838 |
background: rgba(11, 21, 90, .7); |
839 |
//box-shadow: 0 0 0 2px rgba(11, 21, 90, .7); |
|
840 |
//border: 1px solid transparent; |
|
839 |
|
|
841 | 840 |
@media (max-width: 390px) { |
842 | 841 |
margin-right: 0; |
843 | 842 |
} |
844 | 843 |
|
845 |
span {
|
|
846 |
padding: 3px 6px 4px 12px;
|
|
844 |
&:hover .lock-btn:after {
|
|
845 |
background-position: 0 0;
|
|
847 | 846 |
} |
847 |
|
|
848 | 848 |
&.lock { |
849 | 849 |
background: rgba(11, 21, 90, 1); |
850 |
//border-color: $primary-text-color; |
|
851 |
//box-shadow: 0 0 0 2px $secondary-bg-color; |
|
852 |
.lock-date { |
|
853 |
border: 0px; |
|
850 |
|
|
851 |
&:hover .lock-btn:after { |
|
852 |
background-position: -8px 0; |
|
853 |
} |
|
854 |
|
|
855 |
.lock-btn { |
|
856 |
border: 0; |
|
854 | 857 |
box-shadow: none; |
858 |
|
|
855 | 859 |
&:after { |
856 | 860 |
background-position: 0 0; |
857 | 861 |
} |
858 |
|
|
859 |
&:hover:after { |
|
860 |
background-position: -8px 0; |
|
861 |
} |
|
862 | 862 |
} |
863 | 863 |
} |
864 |
.lock-date { |
|
864 |
|
|
865 |
span { |
|
866 |
padding: 3px 6px 4px 12px; |
|
867 |
} |
|
868 |
|
|
869 |
.lock-btn { |
|
865 | 870 |
width: 26px; |
866 | 871 |
height: 26px; |
867 | 872 |
margin-right: 2px; |
868 | 873 |
opacity: 1; |
869 | 874 |
border: 1px solid $primary-text-color; |
870 |
/* box-shadow: 0 0 0 2px $secondary-bg-color; */ |
|
871 |
&:after{ |
|
872 |
background-position: -8px 0; |
|
873 |
} |
|
874 |
&:hover { |
|
875 |
/* box-shadow: 0 0 0 2px rgba(11, 21, 90, .2); */ |
|
876 |
background: rgba(11, 21, 90, .2); |
|
877 |
|
|
878 |
&:after { |
|
879 |
background-position: 0 0; |
|
880 |
} |
|
881 |
} |
|
882 | 875 |
|
883 | 876 |
&:after { |
884 | 877 |
content: ''; |
... | ... | |
888 | 881 |
background: url($images-dir + 'btn-lock.svg') no-repeat -8px 0; |
889 | 882 |
background-size: cover; |
890 | 883 |
} |
884 |
|
|
885 |
&:hover:after { |
|
886 |
background-position: 0 0; |
|
887 |
} |
|
891 | 888 |
} |
892 | 889 |
} |
893 | 890 |
|
... | ... | |
1118 | 1115 |
margin-top: auto; |
1119 | 1116 |
margin-bottom: auto; |
1120 | 1117 |
|
1121 |
&:nth-child(3), &:last-child{
|
|
1118 |
&:nth-child(3) {
|
|
1122 | 1119 |
border: 0; |
1123 | 1120 |
} |
1124 | 1121 |
|
1125 |
.btn-secondary { |
|
1126 |
display: flex; |
|
1127 |
justify-content: center; |
|
1128 |
align-items: center; |
|
1129 |
outline: none; |
|
1130 |
border-radius: 50px; |
|
1131 |
height: 40px; |
|
1132 |
width: 40px; |
|
1133 |
margin-left: 10px; |
|
1134 |
transition: all 0.2s ease-out; |
|
1135 |
color: $primary-bg-color; |
|
1136 |
background: rgba(255, 255, 255, 1); |
|
1137 |
-webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.17); |
|
1138 |
-moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.17); |
|
1139 |
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.17); |
|
1122 |
&:last-child { |
|
1123 |
margin-top: 0; |
|
1124 |
margin-bottom: 0; |
|
1125 |
border-left: 1px solid #1C6CC0; |
|
1126 |
background: #0057be; |
|
1140 | 1127 |
|
1141 | 1128 |
@include media-breakpoint-down(md) { |
1142 |
width: 100%; |
|
1143 |
border-radius: .25rem; |
|
1144 |
margin-left: 0px; |
|
1145 |
margin-top: 10px; |
|
1146 |
margin-bottom: -10px; |
|
1129 |
margin: 10px 5px 0 5px; |
|
1130 |
border: 0; |
|
1147 | 1131 |
} |
1148 | 1132 |
|
1149 |
&:after { |
|
1150 |
padding-bottom: 4px; |
|
1151 |
content: '↺'; |
|
1152 |
font-weight: 400; |
|
1153 |
font-size: 30px; |
|
1154 |
transform: rotateZ(0); |
|
1155 |
transition: all 0.6s cubic-bezier(0.075, 0.82, 0.165, 1); |
|
1133 |
&:hover { |
|
1134 |
background: $primary-bg-color-darker; |
|
1156 | 1135 |
} |
1136 |
} |
|
1157 | 1137 |
|
1158 |
&:hover {
|
|
1159 |
color: $primary-bg-color;
|
|
1160 |
background: rgba(255, 255, 255, 1) !important;
|
|
1161 |
-webkit-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.22);
|
|
1162 |
-moz-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.22);
|
|
1163 |
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.22);
|
|
1138 |
// TLAČÍTKO PRO ODESLÁNÍ FORMULÁŘE PRO ZMĚNU PARAMETRŮ HEATMAPY
|
|
1139 |
.btn-secondary {
|
|
1140 |
display: inline-block;
|
|
1141 |
outline: none;
|
|
1142 |
padding: 0 30px;
|
|
1143 |
background: url($images-dir + 'btn-refresh.svg') no-repeat center center;
|
|
1164 | 1144 |
|
1165 |
&:after { |
|
1166 |
transform: rotateZ(-90deg); |
|
1167 |
transition: all 0.6s cubic-bezier(0.075, 0.82, 0.165, 1); |
|
1168 |
} |
|
1145 |
&:hover { |
|
1146 |
background: url($images-dir + 'btn-refresh.svg') no-repeat center center !important; |
|
1169 | 1147 |
} |
1170 | 1148 |
|
1171 |
&:active, &:focus {
|
|
1172 |
background: rgba(240, 240, 240, 1) !important;
|
|
1173 |
color: $primary-bg-color !important;
|
|
1149 |
@include media-breakpoint-down(md) {
|
|
1150 |
width: 100%;
|
|
1151 |
padding: 20px;
|
|
1174 | 1152 |
} |
1175 | 1153 |
} |
1176 | 1154 |
|
website/public/img/btn-lock.svg | ||
---|---|---|
1 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" fill="#fff"><path d="M-287.4 196.5h-9.5v-44.4C-296.9 70-362 1.4-443.5 0h-8.9C-533.8 1.4-599 70-599 152.1v44.4h-9.5c-14.6 0-26.5 15.1-26.5 33.7v222.6c0 18.6 11.9 33.8 26.5 33.8h321c14.6 0 26.5-15.2 26.5-33.8V230.2c.1-18.6-11.8-33.7-26.4-33.7zm-72 0h0-177v-44.4c0-48.9 39.7-89.3 88.5-89.3s88.5 40.4 88.5 89.3v44.4zm79.9 738.5h-247.9l-9.4-34.9c-12.7-47.2 15.3-96.6 62.4-109.2s96 16.1 108.6 63.4l8.7 32.7 61-14-9.4-34.9c-21.2-79.3-101.9-128.7-181-109-2.2.5-6.5 1.7-8.6 2.3-78.3 22.5-123.5 105.6-102.2 184.9l5 18.7h-8.4c-14.6 0-26.5 15.1-26.5 33.7v222.6c0 18.6 11.9 33.8 26.5 33.8h321c14.6 0 26.5-15.2 26.5-33.8V968.7c.3-18.6-11.7-33.7-26.3-33.7zM7.4 4.5h-.2v-1C7.2 1.7 5.8.2 4.1.2h-.2C2.2.2.8 1.7.8 3.5v1H.6c-.3 0-.6.3-.6.7V10c0 .4.3.7.6.7h6.9c.2.1.5-.3.5-.7V5.2c0-.4-.3-.7-.6-.7zm-1.5 0h0-3.8v-1A1.97 1.97 0 0 1 4 1.6a1.97 1.97 0 0 1 1.9 1.9v1z"/><path d="M15.4 4.6h-5.3V3.3c0-1.1.8-2 1.9-2 1 0 1.9.9 1.9 2h1.3c0-1.8-1.4-3.3-3.1-3.3h-.2c-1.7 0-3.1 1.5-3.1 3.3v1.3h-.2c-.3 0-.6.4-.6.8v4.9c0 .4.3.7.6.7h6.9c.3 0 .6-.3.6-.7V5.4c-.1-.4-.4-.8-.7-.8z"/></svg> |
|
1 |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" fill="#fff"><path d="M7.4 4.5h-.2v-1C7.2 1.7 5.8.2 4.1.2h-.2C2.2.2.8 1.7.8 3.5v1H.6c-.3 0-.6.3-.6.7V10c0 .4.3.7.6.7h6.9c.2.1.5-.3.5-.7V5.2c0-.4-.3-.7-.6-.7zm-1.5 0h0-3.8v-1A1.97 1.97 0 0 1 4 1.6a1.97 1.97 0 0 1 1.9 1.9v1z"/><path d="M15.4 4.6h-5.3V3.3c0-1.1.8-2 1.9-2 .8 0 1.5.5 1.8 1.3h1.4C14.8 1.2 13.6 0 12.1 0h-.2c-1.7 0-3.1 1.5-3.1 3.3v1.3h-.2c-.3 0-.6.4-.6.8v4.9c0 .4.3.7.6.7h6.9c.3 0 .6-.3.6-.7V5.4c-.1-.4-.4-.8-.7-.8z"/></svg> |
website/public/img/btn-refresh.svg | ||
---|---|---|
1 |
<svg xmlns="http://www.w3.org/2000/svg" width="17.117" height="20"><path d="M9.436 2.928l1.3-1.3a.95.95 0 0 0 0-1.345.95.95 0 0 0-.672-.279.95.95 0 0 0-.672.279L6.407 3.267c-.012.012-.02.026-.03.038a1.28 1.28 0 0 0-.063.077l-.028.035c-.008.012-.014.028-.022.04s-.03.053-.043.08a.92.92 0 0 0-.035.086.87.87 0 0 0-.026.087c-.008.03-.014.06-.018.092s-.007.06-.008.088v.047c0 .016 0 .036.005.054s0 .03 0 .047.006.025.008.037l.02.1.025.084a.9.9 0 0 0 .036.085.94.94 0 0 0 .045.086l.048.07a.96.96 0 0 0 .067.082c.008.01.014.02.023.028L9.4 7.6a.95.95 0 0 0 1.634-.405.95.95 0 0 0-.293-.939L9.314 4.83c3.555.406 6.152 3.55 5.88 7.118s-3.315 6.282-6.89 6.146S1.9 15.018 1.902 11.44a.95.95 0 0 0-.95-.907.95.95 0 0 0-.95.907 8.56 8.56 0 0 0 17.098.585 8.56 8.56 0 0 0-7.662-9.099z" fill="#fff"/></svg> |
website/public/js/zcu-heatmap.js | ||
---|---|---|
51 | 51 |
if (time !== null) { |
52 | 52 |
currentTime = time |
53 | 53 |
} else { |
54 |
$('#dropdown-time input[type="radio"]:checked').each(function () { |
|
55 |
currentTime = parseInt($(this).val()) |
|
56 |
}) |
|
54 |
currentTime = parseInt($('#dropdown-time input[type="radio"]:checked').val()) |
|
57 | 55 |
} |
58 | 56 |
} |
59 | 57 |
|
... | ... | |
63 | 61 |
} else { |
64 | 62 |
currentDate = new Date($('#date').val()) |
65 | 63 |
} |
66 |
$('#player-date span').html(`${currentDate.getDate()}. ${currentDate.getMonth() + 1}. ${currentDate.getFullYear()}`) |
|
64 |
|
|
67 | 65 |
$('#date').val(currentDateToString()) |
66 |
$('#player-date span').html(`${currentDate.getDate()}. ${currentDate.getMonth() + 1}. ${currentDate.getFullYear()}`) |
|
67 |
|
|
68 | 68 |
data = [] |
69 | 69 |
} |
70 | 70 |
const currentDayToString = () => { |
... | ... | |
368 | 368 |
isAnimationRunning = !isAnimationRunning |
369 | 369 |
|
370 | 370 |
if (isAnimationRunning) { |
371 |
$('#play-pause').attr('class', 'pause')
|
|
371 |
$('#animate-btn').removeClass('play').addClass('pause')
|
|
372 | 372 |
timer = setInterval(function () { next() }, 800) |
373 | 373 |
} else { |
374 | 374 |
clearTimeout(timer) |
375 |
$('#play-pause').attr('class', 'play')
|
|
375 |
$('#animate-btn').removeClass('pause').addClass('play')
|
|
376 | 376 |
} |
377 | 377 |
} |
378 | 378 |
|
... | ... | |
424 | 424 |
} |
425 | 425 |
|
426 | 426 |
function setTimeline () { |
427 |
$('#timeline').text(currentTime + ':00')
|
|
428 |
$('#timeline').attr('class', 'time hour-' + currentTime)
|
|
427 |
$('#player-time').text(currentTime + ':00')
|
|
428 |
$('#player-time').attr('class', 'time hour-' + currentTime)
|
|
429 | 429 |
} |
430 |
|
|
430 | 431 |
const onChangeHour = (hour) => { |
431 | 432 |
changeHour(hour) |
432 | 433 |
drawHeatmap(data[currentTime]) |
433 | 434 |
} |
435 |
|
|
434 | 436 |
const changeHour = (hour) => { |
435 | 437 |
changeCurrentTime(hour) |
436 | 438 |
updateHeaderControls() |
website/templates/heatmap.html.twig | ||
---|---|---|
100 | 100 |
</header> |
101 | 101 |
|
102 | 102 |
<div class="map-locations"> |
103 |
<a class="menu" data-toggle="collapse" href="#mapLocations" role="button" aria-expanded="false" aria-controls="mapLocations">
|
|
103 |
<a href="#mapLocations" class="menu" data-toggle="collapse" role="button" aria-expanded="false" aria-controls="mapLocations">
|
|
104 | 104 |
<span class="desktop">Prohlédněte si jednotlivé oblasti</span> |
105 | 105 |
<span class="mobile">Jednotlivé oblasti</span> |
106 | 106 |
<div class="circle"></div> |
... | ... | |
111 | 111 |
</div> |
112 | 112 |
|
113 | 113 |
<div class="player"> |
114 |
<div class="prev" onclick="previous()"></div> |
|
115 |
<div class="play" id="play-pause" onclick="changeAnimationState()"></div>
|
|
116 |
<div class="next" onclick="next()"></div> |
|
114 |
<div class="prev-btn" onclick="previous()"></div>
|
|
115 |
<div class="animate-btn play" id="animate-btn" onclick="changeAnimationState()"></div>
|
|
116 |
<div class="next-btn" onclick="next()"></div>
|
|
117 | 117 |
|
118 |
<div class="datetime">
|
|
118 |
<div class="timeline-wrapper" title="Animovat pouze v rámci jednoho dne">
|
|
119 | 119 |
{% if form.vars.value.date %} |
120 | 120 |
<div class="date" id="player-date" onclick="toggleDayLock()"> |
121 | 121 |
<span>{{ form.vars.value.date|date('j. n. Y') }}</span> |
122 |
<div class="lock-date"></div>
|
|
122 |
<div class="lock-btn"></div>
|
|
123 | 123 |
</div> |
124 | 124 |
{% endif %} |
125 | 125 |
|
126 | 126 |
<div class="timeline"> |
127 |
<div class="time hour-0" id="timeline">0:00</div>
|
|
127 |
<div class="time hour-0" id="player-time">0:00</div>
|
|
128 | 128 |
|
129 | 129 |
{% for i in 0..23 %} |
130 | 130 |
<div class="hour" title="{{ i }}:00" onclick="onChangeHour('{{ i }}')"></div> |
131 | 131 |
{% endfor %} |
132 |
|
|
132 | 133 |
<div class="end-dot"></div> |
133 | 134 |
</div> |
134 | 135 |
</div> |
Také k dispozici: Unified diff
Re #8159 - new, fixed buttons, CSS improvements, refactoring