Server IP : 104.21.14.48 / Your IP : 52.15.254.251 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/appointment-hour-booking/js/fields-admin/ |
Upload File : |
$.fbuilder.typeList.push( { id:"facceptance", name:"Accept/GDPR", control_category:1 } ); $.fbuilder.controls[ 'facceptance' ] = function(){}; $.extend( $.fbuilder.controls[ 'facceptance' ].prototype, $.fbuilder.controls[ 'ffields' ].prototype, { title:"Accept terms and conditions", ftype:"facceptance", value:"I accept", url:"", message:"", required:true, display:function() { var str = '<div class="one_column"><input class="field" disabled="true" type="checkbox"/> '+$.fbuilder.htmlEncode(this.title)+((this.required)?"*":"")+'</div>'; return '<div class="fields '+this.name+'" id="field'+this.form_identifier+'-'+this.index+'" title="'+this.name+'"><div class="arrow ui-icon ui-icon-play "></div><div title="Delete" class="remove ui-icon ui-icon-trash "></div><div title="Duplicate" class="copy ui-icon ui-icon-copy "></div><div class="dfield">'+str+'<span class="uh">'+$.fbuilder.htmlEncode(this.userhelp)+'</span></div><div class="clearer"></div></div>'; }, editItemEvents:function() { var me = this; evt = [ {s:"#sValue",e:"change keyup", l:"value"}, {s:"#sURL",e:"change keyup", l:"url"}, {s:"#sMessage",e:"change keyup", l:"message"} ]; $.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this, evt); }, showRequired: function(v) { return '<div><input type="checkbox" checked disabled><label>Acceptance fields are always required</label></div>'; }, showUserhelp: function(){ return ''; }, showValue:function() { return '<div><label>Value</label><input class="large" type="text" name="sValue" id="sValue" value="'+$.fbuilder.htmlEncode(this.value)+'"></div>'; }, showURL:function() { return '<div><label>URL to the Consent and Acknowledgement page</label><input class="large" type="text" name="sURL" id="sURL" value="'+$.fbuilder.htmlEncode(this.url)+'"></div>'; }, showMessage:function() { return '<div><label>- or - enter the Consent and Acknowledgement text</label><textarea class="large" name="sMessage" id="sMessage" style="height:150px;">'+this.message+'</textarea></div>'; }, showCsslayout:function() { var str = '<div style="color: #666;border: 1px solid #EF7E59;display: block;padding: 5px;background: #FBF0EC;border-radius: 4px;text-align: center;margin-top:20px;">The Acceptance control helps to make the form comply with one of requirements of the General Data Protection Regulation (GDPR)</div>'; return $.fbuilder.controls[ 'ffields' ].prototype.showCsslayout.call(this)+str; }, showSpecialDataInstance: function() { return this.showValue()+this.showURL()+this.showMessage(); } });