From 25f0f62634b8963216e23425bf5bf6d213a1bb71 Mon Sep 17 00:00:00 2001 From: Darren VanBuren Date: Tue, 5 Dec 2017 23:00:20 -0800 Subject: [PATCH 1/3] Fix an episode that had a broken entry in the hash --- stargaterando-data.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stargaterando-data.rb b/stargaterando-data.rb index 05036cf..c52b304 100644 --- a/stargaterando-data.rb +++ b/stargaterando-data.rb @@ -123,7 +123,7 @@ module StargateRando::Data 'SG-1|5x19' => 'Menace', 'SG-1|5x20' => 'Sentinel', 'SG-1|5x21' => 'Meridian', - 'SG-2|5x22' => 'Revelations', + 'SG-1|5x22' => 'Revelations', # SG-1 Season 6 (22 episodes) 'SG-1|6x1' => 'Redemption (Part 1)', @@ -394,4 +394,4 @@ module StargateRando::Data 'SGU|2x20' => 'Gauntlet' } # Our crimes against humanity have ended. Please forgive us. -end \ No newline at end of file +end From b75fa133ffe8e33d61516082cf34701a3a8bcc82 Mon Sep 17 00:00:00 2001 From: Darren VanBuren Date: Wed, 6 Dec 2017 23:03:51 -0800 Subject: [PATCH 2/3] Fix typo on SG-1 6x21 - Prophecy --- stargaterando-data.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stargaterando-data.rb b/stargaterando-data.rb index c52b304..ebb0f0e 100644 --- a/stargaterando-data.rb +++ b/stargaterando-data.rb @@ -146,7 +146,7 @@ module StargateRando::Data 'SG-1|6x18' => 'Forsaken', 'SG-1|6x19' => 'The Changeling', 'SG-1|6x20' => 'Memento', - 'SG-1|6x21' => 'Propehcy', + 'SG-1|6x21' => 'Prophecy', 'SG-1|6x22' => 'Full Circle', # SG-1 Season 7 (22 episodes) From 01c5a3ca413906de4ec2cf41c98eb2aab71c1e33 Mon Sep 17 00:00:00 2001 From: Darren VanBuren Date: Tue, 12 Jun 2018 15:51:21 -0700 Subject: [PATCH 3/3] Explicitly set charset, add "result" id --- stargaterando.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stargaterando.rb b/stargaterando.rb index a44fa95..ec0026d 100644 --- a/stargaterando.rb +++ b/stargaterando.rb @@ -109,6 +109,7 @@ module StargateRando::Views def layout html do head do + meta :charset => "UTF-8" title { "Stargate Episode Randomizer" } 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" @@ -121,7 +122,7 @@ module StargateRando::Views def results 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 "Get a new episode" end