Explicitly set charset, add "result" id

This commit is contained in:
Darren VanBuren 2018-06-12 15:51:21 -07:00
parent b75fa133ff
commit 01c5a3ca41

View file

@ -109,6 +109,7 @@ module StargateRando::Views
def layout def layout
html do html do
head do head do
meta :charset => "UTF-8"
title { "Stargate Episode Randomizer" } title { "Stargate Episode Randomizer" }
meta :name => "viewport", :content => "width=device-width, user-scalable=no" meta :name => "viewport", :content => "width=device-width, user-scalable=no"
link :rel => "stylesheet", :href => "https://fonts.googleapis.com/css?family=Fira+Sans:400,700", :type => "text/css" link :rel => "stylesheet", :href => "https://fonts.googleapis.com/css?family=Fira+Sans:400,700", :type => "text/css"
@ -121,7 +122,7 @@ module StargateRando::Views
def results def results
h1 "You should watch: " h1 "You should watch: "
h2 "#{@series}: #{@episode_and_season}: #{@episode_name}" h2.result! "#{@series}: #{@episode_and_season}: #{@episode_name}"
button :onclick => "document.location.reload()", :id => "reload" do button :onclick => "document.location.reload()", :id => "reload" do
"Get a new episode" "Get a new episode"
end end