-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Widget instructions #1
Comments
On Mon 20 Jan 2014 07:51:23 PM EST, Sina wrote:
Also allow easy embedding through an iframe. |
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Need to have a widget.js that gets called.
Would look something like:
<script async="true" type ="text/javascript"> var tfrce_config = { campaign: 'tpp', // no default base_css: true, //default is true zip_in_web_form, 'false', //default is yes custom_css, 'http://blah.com/form.css', //default is none title: 'Call your representatives now', // default is this. iframe_container_css: 'position:fixed;width:100%;bottom:0;left:0;z-index:100000; padding: 0 20px;-webkit-box-sizing: border-box; -moz-box-sizing: border-box;' // default is this call_script_html: 'Hi, my name is _____ from _____, and I'm one of your constituents. I'm calling to ask that you not support <strong>fastracking the TPP</strong>. The TPP would blah blah blah.' // no default }; </script>
It would then insert a minimally styled div in the same location with the call tool. After user presses call and if the forms validate, it would submit to call tool and validate, show the call message.
The text was updated successfully, but these errors were encountered: