X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Findex.html.in;h=b3407fc214e70b9c9607d767b01dfe1b5451d2d5;hb=07e4fcda42d8e906d45ceebc7d86c0e121755339;hp=5ef681b99f702ca8efd8f987450d75ec8528e29b;hpb=f3116551d31e18e0efb9fa72ea116ea455c2ac58;p=charm-bypass.git diff --git a/src/index.html.in b/src/index.html.in index 5ef681b..b3407fc 100644 --- a/src/index.html.in +++ b/src/index.html.in @@ -46,44 +46,75 @@ /* Define, load, and specify the custom font we use for the ticket * date, time, and service name. */ @font-face { - font-family: "CharmBypass Ticket Text"; + font-family: "CharmBypass Regular"; src: - url("data:font/woff2;base64,@TICKETFONT@") format("woff2") + url("data:font/woff2;base64,@CBPREGULAR@") format("woff2") } #servicename, #tickettime, #ticketdate { - font-family: "CharmBypass Ticket Text" !important; + font-family: "CharmBypass Regular"; + } + + @font-face { + font-family: "CharmBypass Bold"; + src: + url("data:font/woff2;base64,@CBPBOLD@") format("woff2") + } + + #serviceletter { + font-family: "CharmBypass Bold"; } /************************/ /* Scrolling animations */ /************************/ + + /* Bus */ @keyframes busroll { from { - transform: translate(0%, 0%); + transform: translateX(0%); } to { - transform: translate(100%, 0%); + transform: translateX(100%); } } #bus { - animation: busroll 20s linear infinite; + animation: busroll 23s linear infinite; } + + /* Tram */ @keyframes tramroll { from { - transform: translate(0%, 0%); + transform: translateX(0%); } to { - transform: translate(100%, 0%); + transform: translateX(100%); } } #tram { - animation: tramroll 15s linear infinite; + animation: tramroll 17s linear infinite; + } + + + /* Tram */ + @keyframes trainroll { + from { + transform: translateX(0%); + } + to { + transform: translateX(100%); + } + } + + #train { + animation: trainroll 11s linear infinite; } + + /* Clouds */ @keyframes cloudsfloat { from { transform: translateX(0%); @@ -109,6 +140,68 @@ #cloudscopy { animation: cloudscopyfloat 40s linear infinite; } + + + /* Trees */ + @keyframes treespass { + from { + transform: translateX(0%); + } + to { + transform: translateX(-50%); + } + } + + #trees { + /* The trees move a little faster than the clouds */ + animation: treespass 30s linear infinite; + } + + @keyframes treescopypass { + from { + transform: translateX(0%); + } + to { + transform: translateX(-50%); + } + } + + #treescopy { + /* The trees move a little faster than the clouds */ + animation: treescopypass 30s linear infinite; + } + + + /* City skyline */ + @keyframes cityscroll { + from { + transform: translateX(0%); + } + to { + transform: translateX(-50%); + } + } + + #city { + /* The city moves faster than the clouds but slower + * than the trees */ + animation: cityscroll 35s linear infinite; + } + + @keyframes citycopyscroll { + from { + transform: translateX(0%); + } + to { + transform: translateX(-50%); + } + } + + #citycopy { + /* The city moves faster than the clouds but slower + * than the trees */ + animation: citycopyscroll 35s linear infinite; + } @@ -141,7 +234,7 @@ tt = document.getElementById("tickettime"); tt.firstChild.textContent = date.toLocaleTimeString(); - td = document.getElementById("ticketdate"); + const td = document.getElementById("ticketdate"); const dateopts = { day: "2-digit", month: "2-digit",