opengovernment/askthem

View on GitHub
app/views/pages/widget_builder.html.erb

Summary

Maintainability
Test Coverage
<section class="static">
  <h1 style="margin-bottom: 20px;">AskThem Widget Builder</h1>
  <script class="at-widget-loader"
          src="http://www.askthem.io/widgets/widget-builder/widget.js"
          type="text/javascript"
          data-intro-headline="Set up your AskThem.io widget"
          data-intro-explanatory="Use this form & you'll get JavaScript & HTML that you can paste into the source code of your web page."
          async=""></script>
  <style>.at-widget{ width: 100%; } ic-modal-main{ max-width: 600px; } .at-widget fieldset{ width: 100%; } @media (min-width: 400px) { ic-modal-main { margin-left: 200px; } } .at-widget .content-person-info{ display: block; text-align: center; width: 100%; } .at-widget .content-person-image{ display: block; } .at-widget .recipient-lead-in{ display: block; } .at-widget .content-person-image .official-image{ margin-left: 0; }</style>
  <p style="font-size: smaller;"><em>Note - advanced users can override the built-in styles of the widgets. If you have the know how, go for it!</em></p>

</section>