Files
recipe-importer/sobors-examples/sobors_1_files/ResponsiveBehaviour.min.js.download
T
2026-02-24 18:00:10 +01:00

1 line
1.0 KiB
Plaintext

window.FEMINA=window.FEMINA||{},function(){var t=function(t){FEMINA.Instanceable.call(this,t),this.breakPoints={Mobile:{min:0,max:700},Desktop:{min:701,max:1/0}},this.active="Mobile",this.firstTime=!0;var o=this;$(window).resize(function(){o.checkResolution()})};t.prototype=Object.create(FEMINA.Instanceable.prototype),t.prototype.parent=FEMINA.Instanceable.prototype,t.prototype.constructor=t,FEMINA.ResponsiveBehaviour=t,t.prototype.checkResolution=function(){var t=$(window);for(var o in this.breakPoints)if(this.breakPoints.hasOwnProperty(o)){var i=this.breakPoints[o];t.width()>i.min&&t.width()<i.max&&(this.firstTime||o!==this.active?(this.firstTime=!1,this["stop"+this.active+"Behaviour"](),this["start"+o+"Behaviour"]()):this["do"+this.active+"Behaviour"](),this.active=o)}},t.prototype.startMobileBehaviour=function(){},t.prototype.doMobileBehaviour=function(){},t.prototype.stopMobileBehaviour=function(){},t.prototype.startDesktopBehaviour=function(){},t.prototype.doDesktopBehaviour=function(){},t.prototype.stopDesktopBehaviour=function(){}}();