Home › Forums › Quform WordPress › jquery in source code
- This topic has 1 reply, 2 voices, and was last updated 11 years, 4 months ago by Ally.
- AuthorPosts
- September 6, 2013 at 9:01 am #6256JoakimParticipant
Hello,
Thanks for a great form building plugin! Really loving it so far.
My concern though when it comes to seo, I’ve noticed in my source code that the plugin is placing alot of scripts, which is a concern to me since I am using x2 forms on my site’s homepage:
<script type="text/javascript">
<!--
jQuery(document).ready(function ($) {
var $link = $('#iphorm_fancybox_52298b3a35a8e');
if ($.isFunction($.fn.fancybox) && !$link.data('iphorm-initialised')) {
$link.fancybox($.extend({
inline: true,
href: '#iphorm-outer-52298b3a30889',
onStart: function () {
$('#fancybox-outer').css('opacity', 0);
},
onComplete: function () {
$('#fancybox-wrap, #fancybox-content').css({width: 'auto'});
$.fancybox.center(0);
setTimeout(function () {
$('#fancybox-outer').animate({opacity: 1}, 400);
$('#fancybox-overlay').css({height: $(document).height()});
}, 1);
}
}, {})).data('iphorm-initialised', true);
}
});
//-->
</script>
<div style="display: none;">
<div id="iphorm-outer-52298b3a30889" class="iphorm-outer iphorm-outer-1 iphorm-uniform-theme-aristo iphorm-theme-light-rounded" >
<script type="text/javascript">
<!--
jQuery(document).ready(function($) {$('#iphorm-52298b3a30889').iPhorm({"id":1,"uniqueId":"52298b3a30889","PHPSESSID":"ff4c2760923d00a1dc19734251233ea3","useAjax":true,"successMessageTimeout":10,"clElementIds":[],"clDependentElementIds":[],"centerFancybox":true,"centerFancyboxSpeed":true});
if ($.isFunction($.fn.qtip)) {
$('.iphorm-tooltip-hover', iPhorm.instance.$form).qtip({
style: {
classes: 'qtip-light qtip-shadow qtip-rounded'
},
position: {
my: 'left center',
at: 'right center'
}
});
$('.iphorm-tooltip-click', iPhorm.instance.$form).qtip({
style: {
classes: 'qtip-light qtip-shadow qtip-rounded'
},
position: {
my: 'left center',
at: 'right center'
},
show: {
event: 'focus'
},
hide: {
event: 'unfocus'
}
});
$('.iphorm-tooltip-icon-hover', iPhorm.instance.$form).qtip({
style: {
classes: 'qtip-light qtip-shadow qtip-rounded'
},
position: {
my: 'left center',
at: 'right center'
},
content: {
text: function (api) {
return $(this).find('.iphorm-tooltip-icon-content').html();
}
}
});
$('.iphorm-tooltip-icon-click', iPhorm.instance.$form).qtip({
style: {
classes: 'qtip-light qtip-shadow qtip-rounded'
},
position: {
my: 'left center',
at: 'right center'
},
show: {
event: 'click'
},
hide: {
event: 'unfocus'
},
content: {
text: function (api) {
return $(this).find('.iphorm-tooltip-icon-content').html();
}
}
});
$('.iphorm-labels-inside > .iphorm-element-spacer > label').hover(function () {
$(this).siblings('.iphorm-input-wrap').find('.iphorm-tooltip-hover').qtip('show');
}, function () {
$(this).siblings('.iphorm-input-wrap').find('.iphorm-tooltip-hover').qtip('hide');
});
}if ($.isFunction($.fn.uniform)) {
$('select, input:checkbox, input:radio', iPhorm.instance.$form).uniform({context: iPhorm.instance.$form, selectAutoWidth: false});
}if ($.isFunction($.fn.inFieldLabels)) {
$('.iphorm-labels-inside:not(.iphorm-element-wrap-recaptcha) > .iphorm-element-spacer > label', iPhorm.instance.$form).inFieldLabels();
}$('.iphorm-group-row > div:last-child:not(:first-child)', iPhorm.instance.$form).add('.iphorm-group-row:last-child', iPhorm.instance.$form).addClass('last-child');
}); // end document.ready()
//-->
</script>How would I go by reducing this? Thanks alot, much appreciated!
September 6, 2013 at 10:52 am #6262AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.