Buttons

Button Triggers

These are the buttons for our 1Billion.org/map

1.) Page Load, or 2.) Click button: Gospel Visits
GOSPEL VISITS
1.) Click button: Indicated Decision
INDICATED DESICIONS
1.) Page Load, or 2.) Click button: Discipleship Activity
DISCIPLESHIP ACTIVITY
1.) Click button: Bible Downloads
BIBLE DOWNLOADS

Trigger Code

// -------------------------- DISCIPLESHIP ACTIVITY -- FORM SUBMISSION -------------------------- //Just paste this code for count form submission just add this class on submit form button "gform_button" jQuery('.gform_button').click(function() { jQuery.ajax({ type: "post", url: "https://1billion.org/wp-content/plugins/world-1billion/word-visitor.php?filling_form", success: function(data) {} }); }); jQuery(".discipleship-activity").on("click", function() { jQuery.ajax({ type: "post", url: "https://1billion.org/wp-content/plugins/world-1billion/word-visitor.php?filling_form", success: function(data) {} }); });// -------------------------- GOSPEL VISITS -- PAGE LOAD -------------------------- //Just paste this code for count visits jQuery(document).ready(function() { jQuery.ajax({ type: "post", url: "https://1billion.org/wp-content/plugins/world-1billion/word-visitor.php?hasVisited", success: function(data) {} }); }); jQuery(".gospel-visits").on("click", function() { jQuery.ajax({ type: "post", url: "https://1billion.org/wp-content/plugins/world-1billion/word-visitor.php?hasVisited", success: function(data) {} }); });// -------------------------- INDICATED DESICIONS -- CLICK YES -------------------------- // Just add "yes-btn" class on Yes button and paste this code //yes button click jQuery(".yes-btn").on("click", function() { //alert("hello"); jQuery.ajax({ type: "post", headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: "https://1billion.org/wp-content/plugins/world-1billion/word-visitor.php?action", success: function(data) {}, complete: function() { jQuery('body, html').animate({ scrollTop: jQuery('this.hash').offset().top }, 'slow'); } }); });// -------------------------- BIBLE DOWNLOAD -- CLICK -------------------------- // Just add "bible-download" class on any button or link and paste this code //yes button click jQuery(".bible-download").on("click", function() { //alert("hello"); jQuery.ajax({ type: "post", headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: "https://1billion.org/wp-content/plugins/world-1billion/word-visitor.php?bible_download", success: function(data) {}, complete: function() {} }); });