mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-10 22:16:26 +02:00
bayern web style
This commit is contained in:
parent
7ede282b7b
commit
cc031094eb
8 changed files with 67 additions and 23 deletions
BIN
copri4/main/img/Logo-LastenradBayern-01.png
Executable file
BIN
copri4/main/img/Logo-LastenradBayern-01.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
Before Width: | Height: | Size: 9.2 KiB |
|
@ -19,12 +19,12 @@ function change_contrast(){
|
|||
const fgcol = style.color;
|
||||
console.log(fgcol);
|
||||
|
||||
if(bgcol == ('rgb(0, 141, 210)')){ //008dd2 (blue)
|
||||
if(bgcol == ('rgb(0, 156, 217)')){ //009cd9 (blue)
|
||||
element[i].style.backgroundColor = "rgb(63, 63, 63)";//3f3f3f (black)
|
||||
element[i].style.color = "rgb(255, 255, 254)";//fffffe (white)
|
||||
}
|
||||
if(bgcol == ('rgb(63, 63, 63)')){ //black
|
||||
element[i].style.backgroundColor = "rgb(0, 141, 210)";
|
||||
element[i].style.backgroundColor = "rgb(0, 156, 217)";
|
||||
element[i].style.color = "rgb(255, 255, 254)";
|
||||
}
|
||||
//hover active
|
||||
|
@ -39,7 +39,7 @@ function change_contrast(){
|
|||
}
|
||||
|
||||
//if only font ist colored and backround is white
|
||||
if(fgcol == ('rgb(0, 141, 210)') && bgcol == ('rgb(255, 255, 255)')){ //008dd2
|
||||
if(fgcol == ('rgb(0, 156, 217)') && bgcol == ('rgb(255, 255, 255)')){ //009cd9
|
||||
element[i].style.color = "rgb(63, 63, 63)";
|
||||
element[i].style.backgroundColor = "rgb(255, 255, 255)";
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ function change_contrast(){
|
|||
element[i].style.backgroundColor = "rgb(3, 101, 149)";
|
||||
}
|
||||
if(fgcol == ('rgb(63, 63, 63)') && bgcol == ('rgb(255, 255, 255)')){ //black
|
||||
element[i].style.color = "rgb(0, 141, 210)";
|
||||
element[i].style.color = "rgb(0, 156, 217)";
|
||||
element[i].style.backgroundColor = "rgb(255, 255, 255)";
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ sub handler {
|
|||
# <sharee_LastenVelo>
|
||||
# <todo>add_LVuser</todo>
|
||||
# <userID>12345678</userID>
|
||||
# <emailID>ragu@gnu-systems.de</emailID>
|
||||
# <emailID>ragu@gu-syems.de</emailID>
|
||||
# <pwID>geheim123</pwID>
|
||||
#</sharee_LastenVelo>
|
||||
|
||||
|
@ -104,7 +104,7 @@ sub handler {
|
|||
table => "contentadr",
|
||||
fetch => "one",
|
||||
template_id => "202",
|
||||
txt08 => "$xmlref->{emailID}",
|
||||
txt08 => "ilike::" . $q->escapeHTML($xmlref->{emailID}),
|
||||
};
|
||||
my $record_e = { c_id => "" };
|
||||
$record_e = $dbt->fetch_record($dbh,$pref_e);
|
||||
|
|
|
@ -166,7 +166,7 @@ sub kmlGenerator {
|
|||
$station_groupID = $1 if($station_group =~ /(\d+)/);
|
||||
$bike_groupID = $1 if($bike_group =~ /(\d+)/);
|
||||
|
||||
$bw->log("KMLout bike available if: $station_groupID == $bike_groupID && $station eq $response_bikes->{shareejson}->{bikes}->{$bike}->{station}","","");
|
||||
#$bw->log("KMLout bike available if: $station_groupID == $bike_groupID && $station eq $response_bikes->{shareejson}->{bikes}->{$bike}->{station}","","");
|
||||
|
||||
#if Lastenrad
|
||||
if($station_groupID == $lastenrad && $station_groupID == $bike_groupID && $station eq $response_bikes->{shareejson}->{bikes}->{$bike}->{station}){
|
||||
|
|
|
@ -60,10 +60,12 @@ sub tpl(){
|
|||
my $icon_green = "Open_Green.png";
|
||||
my $icon_red = "Open_Red.png";
|
||||
my $icon_blue = "Open_Blue.png";
|
||||
my $mapheight = "600px;";
|
||||
if($project eq "Bayern"){
|
||||
$icon_green = "LastenradBay_Standortpfeil_gruen_03a.png";
|
||||
$icon_red = "LastenradBay_Standortpfeil_rot_03a.png";
|
||||
$icon_blue = "LastenradBay_Standortpfeil_blau_03a.png";
|
||||
$mapheight = "800px;";
|
||||
}
|
||||
|
||||
$users_sharee->{c_id} = "0" if(!$users_sharee->{c_id});
|
||||
|
@ -76,9 +78,9 @@ sub tpl(){
|
|||
my $preserve_view = "false";
|
||||
$preserve_view = "true" if($filesize < 200);#it's like empty without publixc stations
|
||||
|
||||
print "<div style='background-color:#cccccc;width:100%;margin-top:40px;'>\n";
|
||||
print "<div style='background-color:#cccccc;width:100%;margin-top:1em;'>\n";
|
||||
|
||||
print "<div id='map' style='height:600px;'></div>\n";
|
||||
print "<div id='map' style='height:$mapheight'></div>\n";
|
||||
|
||||
print<<EOF
|
||||
<script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue