Funny Frontend
Funny Frontend

Reputation: 3925

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

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!

Upvotes: 3

Views: 106

Answers (1)

Satpal
Satpal

Reputation: 133403

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

Upvotes: 1

Related Questions