Skip to content
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

Open
sinak opened this issue Jan 21, 2014 · 2 comments
Open

Widget instructions #1

sinak opened this issue Jan 21, 2014 · 2 comments

Comments

@sinak
Copy link
Member

sinak commented Jan 21, 2014

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.

@Ely-S
Copy link
Member

Ely-S commented Jan 22, 2014

On Mon 20 Jan 2014 07:51:23 PM EST, Sina wrote:

Need to have a widget.js that gets called.

Would look something like:

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.


Reply to this email directly or view it on GitHub
#1.

Also allow easy embedding through an iframe.

@crypdick
Copy link

crypdick commented Feb 5, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants