<commit_before><% 
  jammit_css :login
  @headers = false
  @body_classes << "modal" if @body_classes
  content_for :page_title, "Registration Complete"
%>
<% js_block do %>
<script type="text/javascript">
$(document).ready(function() {
  var runAjax = true;
  $(".re_send_confirmation_link").click(function(event) {
    event.preventDefault();
    
    //we dont really want them to just keep clicking resend a bunch of times, 
    // if it doesnt work then its ok so they can try to see if they can get it to work.
    if (runAjax) {
      var $link = $(this);
      $link.text("Re-Sending...");
      $.ajaxJSON($link.attr('href'), 'POST', {}, function(data) {
        $link.text("Done! Message may take a few minutes.");
        runAjax = false;
      }, function(data) {
        $link.text("Request failed. Try again.");
      }); 
    }
  });

  var videoWidth = Math.max(Math.min($(window).width() - 120, ($(window).height() * 1390/900 - 120)), 800),
      videoHeight = videoWidth * 900/1390,
      params = { allowScriptAccess: "always" },
      atts = { id: "youtube_player" };

  swfobject.embedSWF("http://www.youtube.com/v/AVIcN531GRA?version=3&rel=0&enablejsapi=1&disablekb=1&fs=1&hd=1&showsearch=0&iv_load_policy=3&feature=player_embedded", "youtube_player", videoWidth, videoHeight, "8", null, null, params, atts);
  
  // $("#video").width(videoWidth).height(videoHeight);
  $("#play_overview_video_link").click(function(){
    $("#video_wrapper").dialog({
      width: videoWidth,
      title: "Overview Video of Canvas"
    });
    return false;
  });
    
  
});

function onYouTubePlayerReady(playerid){
  var player = document.getElementById("youtube_player");
  player.setPlaybackQuality('hd720');
  player.playVideo();
}
</script>
<!-- Google Code for New Teacher Signup Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1016624328;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "WYEpCIj-0QEQyOnh5AM";<commit_msg>update link to getting started youtube video<commit_after><% 
  jammit_css :login
  @headers = false
  @body_classes << "modal" if @body_classes
  content_for :page_title, "Registration Complete"
%>
<% js_block do %>
<script type="text/javascript">
$(document).ready(function() {
  var runAjax = true;
  $(".re_send_confirmation_link").click(function(event) {
    event.preventDefault();
    
    //we dont really want them to just keep clicking resend a bunch of times, 
    // if it doesnt work then its ok so they can try to see if they can get it to work.
    if (runAjax) {
      var $link = $(this);
      $link.text("Re-Sending...");
      $.ajaxJSON($link.attr('href'), 'POST', {}, function(data) {
        $link.text("Done! Message may take a few minutes.");
        runAjax = false;
      }, function(data) {
        $link.text("Request failed. Try again.");
      }); 
    }
  });

  var videoWidth = Math.max(Math.min($(window).width() - 120, ($(window).height() * 1390/900 - 120)), 800),
      videoHeight = videoWidth * 900/1390,
      params = { allowScriptAccess: "always" },
      atts = { id: "youtube_player" };

  swfobject.embedSWF("http://www.youtube.com/v/SJY5p0qpzhA?version=3&rel=0&enablejsapi=1&disablekb=1&fs=1&hd=1&showsearch=0&iv_load_policy=3&feature=player_embedded", "youtube_player", videoWidth, videoHeight, "8", null, null, params, atts);
  
  // $("#video").width(videoWidth).height(videoHeight);
  $("#play_overview_video_link").click(function(){
    $("#video_wrapper").dialog({
      width: videoWidth,
      title: "Overview Video of Canvas"
    });
    return false;
  });
    
  
});

function onYouTubePlayerReady(playerid){
  var player = document.getElementById("youtube_player");
  player.setPlaybackQuality('hd720');
  player.playVideo();
}
</script>
<!-- Google Code for New Teacher Signup Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1016624328;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "WYEpCIj-0QEQyOnh5AM";
{'fraction_non_alphanumeric': 0.15979012640114476, 'fraction_numerical': 0.024087765323157644, 'mean_word_length': 3.9515938606847696, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '109848', 'n_tokens_mistral': 1445, 'n_tokens_neox': 1345, 'n_words': 309}