User Tools

Site Tools


contact_widgets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
contact_widgets [2019/06/27 19:36]
brittany [Demo]
contact_widgets [2022/03/12 00:03]
kevin
Line 1: Line 1:
 +
 ======Purpose======= ======Purpose=======
  
Line 23: Line 24:
   </​script>​   </​script>​
  
-The line, **_rgq.push(['​_setSecure', true]);**, needs to be added only if your site uses SSL (has https in the site url).+The line, **_rgq.push(['​_popupContact']);_rgq.push(['​_resize',​500,​800])**, needs to be added only if your site uses SSL (has https in the site url).
  
 Now, you can use the following javascript trigger anywhere on your page to open the contact form: Now, you can use the following javascript trigger anywhere on your page to open the contact form:
 <code javascript>​ <code javascript>​
-_rgq.push(['​_popupContact'​]);​+_rgq.push(['​_popupContact'​]);​_rgq.push(['​_resize',​500,​800]);
 </​code>​ </​code>​
  
Line 33: Line 34:
  
 <code html> <code html>
-<button onclick="​_rgq.push(['​_popupContact'​])">​Contact Us</​button>​+<button onclick="​_rgq.push(['​_popupContact'​]);​_rgq.push(['​_resize',​500,​800])">​Contact Us</​button>​
 </​code>​ </​code>​
 +
 +
  
 ====Demo==== ====Demo====
Line 45: Line 48:
         (function() {         (function() {
            var rg = document.createElement('​script'​);​ rg.type = '​text/​javascript';​ rg.async = true;            var rg = document.createElement('​script'​);​ rg.type = '​text/​javascript';​ rg.async = true;
-           ​rg.src = 'http://​widgets.realgeeks.com/​static/​js/​rg.js';​+           ​rg.src = 'https://​widgets.realgeeks.com/​static/​js/​rg.js';​
            var s = document.getElementsByTagName('​script'​)[0];​ s.parentNode.insertBefore(rg,​ s);            var s = document.getElementsByTagName('​script'​)[0];​ s.parentNode.insertBefore(rg,​ s);
          })();          })();
Line 53: Line 56:
 </​html>​ </​html>​
  
 +
 +To learn how to add the contact us popup as a button on your real geeks site, click [[contentpopup|here]].
contact_widgets.txt ยท Last modified: 2022/03/12 00:05 by kevin