<commit_before>extends layout

block content
  h1= title
  p Generate svg, website screenshot.
  
  h3 Get image
  
  p Use this form to generate image of your URL.
  
  form(role="form")
    div(class="form-group")
      label URL of page to get image
      input(type="text", class="form-control", name="url", value="https://vida.io/embed/WgBMc4zDWF7YpqXGR")
  
    div(class="form-group")
      label Viewport width of browser
      input(type="text", class="form-control", name="viewport_width", value="1000")
    
    div(class="form-group")
      label Wait time in miliseconds for page to fully load
      input(type="text", class="form-control", name="delay", value="5000")
    
    div(class="form-group")
      label The div you want to screenshot
      input(type="text", class="form-control", name="selector", value="div#canvas")
    
    div(class="form-group")
      button(type="button", class="btn btn-primary has-spinner" id="view-image")
        span.spinner<commit_msg>Add vida.io link to header<commit_after>extends layout

block content
  h1= title
  p Generate png for svg and website from <a href="https://vida.io/">vida.io</a>.
  
  h3 Get image
  
  p Use this form to generate image of your URL.
  
  form(role="form")
    div(class="form-group")
      label URL of page to get image
      input(type="text", class="form-control", name="url", value="https://vida.io/embed/WgBMc4zDWF7YpqXGR")
  
    div(class="form-group")
      label Viewport width of browser
      input(type="text", class="form-control", name="viewport_width", value="1000")
    
    div(class="form-group")
      label Wait time in miliseconds for page to fully load
      input(type="text", class="form-control", name="delay", value="5000")
    
    div(class="form-group")
      label The div you want to screenshot
      input(type="text", class="form-control", name="selector", value="div#canvas")
    
    div(class="form-group")
      button(type="button", class="btn btn-primary has-spinner" id="view-image")
        span.spinner
{'fraction_non_alphanumeric': 0.14166256763403837, 'fraction_numerical': 0.011805213969503197, 'mean_word_length': 3.450765864332604, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, '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': '5169870', 'n_tokens_mistral': 657, 'n_tokens_neox': 637, 'n_words': 170}