Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this code wrapping in brackets do within a class atributte?

Tags:

html

jquery

This is the first time I have seen this code:

 <div id="extruderLeft" class="{title:'Our network ', url:'parts/extruderLeft.html'}"></div>
 <div id="extruderLeft1" class="a {title:'Leyenda', url:'parts/extruderLeft1.html'}"></div>

Is a jquery Plugin, I´m sure that is a HTML constructor, the plugin is called here:

<script>
 $("#extruderLeft1").buildMbExtruder({
                position:"left",
                width:300,
                extruderOpacity:.8,
                onExtOpen:function(){},
                onExtContentLoad:function(){},
                onExtClose:function(){}
            });
</script>

Is it good practice?

Thank you very much!

like image 235
Funny Frontend Avatar asked Jun 24 '26 19:06

Funny Frontend


1 Answers

As you are specifying an example of jquery.mb.extruder plugin, You should go through its official docs, it is HTML constructor.

like image 187
Satpal Avatar answered Jun 26 '26 09:06

Satpal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!