om-custom-redirect-close.js

jQuery(document).ready(function($){ function omRedirect() { var url = “https://optinmonster.com”; $(location).attr(‘href’,url); } $(document).on(‘OptinMonsterOnClose’, function(event, data, object){ if(data.optin = ‘YOUR_OPTIN_SLUG_HERE’) { omRedirect(); } }); });Continue reading

om-custom-redirect-all-close.js

jQuery(document).ready(function($){ function omRedirect() { var url = “https://optinmonster.com”; $(location).attr(‘href’,url); } $(document).on(‘OptinMonsterOnClose’, function(event, data, object){ omRedirect(); }); });Continue reading

Untitled Snippet (copy)

(self.SWG_BASIC = self.SWG_BASIC || []).push( basicSubscriptions => { basicSubscriptions.init({ type: “NewsArticle”, isPartOfType: [“Product”], isPartOfProductId: “CAow7ue8DA:openaccess”, clientOptions: { theme: “light”, lang: “id” }, }); }); </scriptContinue reading

Untitled Snippet

(self.SWG_BASIC = self.SWG_BASIC || []).push( basicSubscriptions => { basicSubscriptions.init({ type: “NewsArticle”, isPartOfType: [“Product”], isPartOfProductId: “CAow7ue8DA:openaccess”, clientOptions: { theme: “light”, lang: “id” }, }); });Continue reading

Gravity Forms PHP Helpers

const IC_REGEXP_KATAKANA = “/\A[ア-ンガ-ボァ-ョヮッーヴ]+\z/u”; const IC_REGEXP_WHITESPACE = “/[\s\x{3000}]+/u”; const IC_REGEXP_POST_CODE_JP = “/\A\d{3}-?\d{4}\z/u”; const IC_REGEXP_PHONE = “/\A\+?\d[\d-]{1,14}\z/u”; // デバッグログは javascript-helpers.js と同じく、クエリパラメータ `debugp` // が付いている場合のみ出力する(例: ?debugp / ?debugp=1) function icDebugp($message) { static $enabled = null; if($enabled === null) $enabled = isset($_REQUEST[‘debugp’]); if(!$enabled)…Continue reading