Commit f9fcea7

mo khan <mo@mokhan.ca>
2016-06-02 03:08:31
use https and youtube-nocookie.com
1 parent f1ae621
Changed files (2)
app/helpers/application_helper.rb
@@ -1,7 +1,8 @@
 module ApplicationHelper
   VIDEOS=[
-    "ua8oObEPptQ",
+    "bs_Ej32IYgo",
     "txuWGoZF3ew",
+    "ua8oObEPptQ",
   ]
   def gravatar_for(user, size: 260)
     secure_host = "https://secure.gravatar.com/avatar"
@@ -23,7 +24,7 @@ module ApplicationHelper
 
   def random_video
     video = VIDEOS.sample
-    iframe = content_tag(:iframe, "", width: 560, height: 315, src: "https://www.youtube.com/embed/#{video}", frameborder: 0, allowfullscreen: true)
+    iframe = content_tag(:iframe, "", width: 560, height: 315, src: "https://www.youtube-nocookie.com/embed/#{video}", frameborder: 0, allowfullscreen: true)
     content_tag(:div, iframe, class: "flex-video")
   end
 end
app/views/training_sessions/_import_address_modal.html.erb
@@ -21,7 +21,7 @@
   <% end %>
 
   <div class="flex-video widescreen vimeo">
-    <iframe width="420" height="315" src="//www.youtube-nocookie.com/embed/vVowk0wSiwY?rel=0" frameborder="0" allowfullscreen></iframe>
+    <iframe width="420" height="315" src="https://www.youtube-nocookie.com/embed/vVowk0wSiwY?rel=0" frameborder="0" allowfullscreen></iframe>
   </div>
   <p class="text-center">
     <%= link_to t('.help'), stronglifts_export_path %>