mysociety / pombola

GNU Affero General Public License v3.0
65 stars 41 forks source link

Poll Daddy - replace poll for survey #1008

Closed paullenz closed 10 years ago

paullenz commented 10 years ago

PMG would like two question poll, which is a survey for Poll Daddy

I believe this requires this code being used, rather than the existing poll code:

<div class="pd-embed" id="pd_1384877662"></div>
<script type="text/javascript">
  var _polldaddy = [] || _polldaddy;

  _polldaddy.push( {
    type: "iframe",
    auto: "1",
    domain: "pombolazamanagers.polldaddy.com/s/",
    id: "local-awareness",
    placeholder: "pd_1384877662"
  } );

  (function(d,c,j){if(!document.getElementById(j)){var pd=d.createElement(c),s;pd.id=j;pd.src='http://i0.poll.fm/survey.js';s=document.getElementsByTagName(c)[0];s.parentNode.insertBefore(pd,s);}}(document,'script','pd-embed'));
</script>
chrismytton commented 10 years ago

This widget doesn't fit in the where the current poll is on the homepage, and because it's an iframe it's tricky to change the layout of it.

screen shot 2013-11-20 at 10 07 51

Shuffling it down below the news works, but it's going to require a bit of a re-think of the homepage layout, which I'm not sure we want to do at this stage?

screen shot 2013-11-20 at 10 06 21

Thoughts?

chrismytton commented 10 years ago

It seems there is a difference between polls and surveys on poll daddy, polls can be set to either 150px, 300px or 650px wide, whereas surveys are fixed at a width of 700px. In the interests of avoiding making drastic changes to the homepage at this stage, we're going to leave this for now. @paullenz is going to go back to PMG to discuss.