tutorcruncher / socket-frontend

Javascript frontend for TutorCruncher Socket

Home Page:https://tutorcruncher.com/features/tutorcruncher-socket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modal popup should add it's markup into body by default

gfarishyan opened this issue · comments

Can you put modal wrapper & modal into html body instead of container where embed called ?

Sorry for the late reply.

I'm unsure what you mean here? The modal is loaded into the body at the moment. Where else would it be rendered?

<div id="socket-enquiry-modal"></div>
<script>
  socket('9c79f14df986a1ec693c', {
    mode: 'enquiry',
    element: '#socket-enquiry'
  });
</script>

Will render:

<div id="socket-enquiry-modal">
  <div class="tcs-app">
    <div class="tcs-enquiry-modal">
      ...
    </div>
  </div>
</div>