Skip to content

Instantly share code, notes, and snippets.

@onurdemir
Last active December 18, 2015 13:09
Show Gist options
  • Save onurdemir/5787511 to your computer and use it in GitHub Desktop.
Save onurdemir/5787511 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function() {
for (i=0;i<1;i++) {
setTimeout('addDot()',1000);
}
});
function addDot() {
jQuery(document).ready(function($) {
jQuery('#<?php echo $this->id.'-item'; ?> .menu').wfMegaMenu({
rowItems: <?php echo $instance['rowItems']; ?>,
speed: <?php echo $instance['speed'] == '0' ? 0 : "'".$instance['speed']."'"; ?>,
effect: '<?php echo $effect; ?>',
subMenuWidth:200
});
});
}
//]]>
</script>
@onurdemir
Copy link
Author

disable this latency by replacing the code with

<script type="text/javascript"> //id.'-item'; ?> .menu').wfMegaMenu({ rowItems: , speed: , effect: '', subMenuWidth:200 }); //]]> </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment