templates/project/lib/iasd-bootstrap.js in iasd-bootstrap-sass-1.7.8 vs templates/project/lib/iasd-bootstrap.js in iasd-bootstrap-sass-1.7.9

- old
+ new

@@ -1,8 +1,8 @@ /*! - * IASD Bootstrap v1.7.8 (http://styleguide.adventistas.org) - * Copyright 2014-2018 Igreja Adventista do Sétimo Dia + * IASD Bootstrap v1.7.9 (http://styleguide.adventistas.org) + * Copyright 2014-2020 Igreja Adventista do Sétimo Dia * Licensed under MIT (https://github.com/igrejaadventista/styleguide/blob/master/LICENSE) */ /* Modernizr 2.6.2 (Custom Build) | MIT & BSD * Build: http://modernizr.com/download/#-touch-mq-cssclasses-teststyles-prefixes-load @@ -37,11 +37,504 @@ // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -(function($){var methods={init:function(options){var all=this;var instanceOptions=$.extend(true,{},$.fn.badonkatrunc.defaultOptions,options);if(instanceOptions.fitDirection!="horizontal"&&instanceOptions.fitDirection!="vertical"){$.error("'"+instanceOptions.fitDirection+"' is not a valid fit direction. Use 'horizontal' or 'vertical.'");return this}if(instanceOptions.truncateLocation!="start"&&instanceOptions.truncateLocation!="middle"&&instanceOptions.truncateLocation!="end"){$.error("'"+instanceOptions.truncateLocation+"' is not a valid truncation location. Use 'start,' 'middle' or 'end.'");return this}if(instanceOptions.minimumFontSize>instanceOptions.maximumFontSize){$.error("Minimum font size can not exceed the maximum font size.");return this}if(instanceOptions.minimumLetterSpacing>instanceOptions.maximumLetterSpacing){$.error("Minimum letter spacing can not exceed the maximum letter spacing.");return this}return this.each(function(){var $this=$(this);var data=$(this).data("badonkatrunc");if(data){$this.badonkatrunc("destroy")}var instance=pluginInstance($this,instanceOptions,all);$(this).data("badonkatrunc",instance);instance.init();if(instance.options.automaticSizeTracking){resizeMonitor.add(instance)}})},destroy:function(){return this.each(function(){var $this=$(this);var data=$this.data("badonkatrunc");data.destroy();resizeMonitor.remove(data);dirtyMonitor.remove(data);$(window).unbind(".badonkatrunc");$this.removeData("badonkatrunc")})},refresh:function(){return this.each(function(){var $this=$(this);var data=$this.data("badonkatrunc");dirtyMonitor.remove(data);data.refresh()})},changeContents:function(newContents){return this.each(function(){var $this=$(this);var data=$this.data("badonkatrunc");if(typeof newContents=="string"){data.contentHtml=$("<span></span>").text(newContents).html()}else{data.contentHtml=$(newContents).html()}dirtyMonitor.add(data)})}};$.fn.badonkatrunc=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof method==="object"||!method){return methods.init.apply(this,arguments)}else{$.error("Method "+method+" does not exist on jQuery.badonkatrunc")}};$.fn.badonkatrunc.settings={sizeTrackingTimeout:1e3/60};$.fn.badonkatrunc.defaultOptions={automaticSizeTracking:false,fitDirection:"horizontal",minimumFontSize:1,maximumFontSize:1,fontSizeSynced:false,minimumLetterSpacing:0,maximumLetterSpacing:0,letterSpacingSynced:false,truncate:true,truncateString:"&hellip;",truncateLocation:"end",truncateOnlyWholeWords:false,extraOptimizeLimit:8};$.fn.btrunc=$.fn.badonkatrunc;var pluginInstance=function($target,options,$targetGroup){var createRenderState=function(content,fontSize,letterSpacing){return{content:content,fontSize:fontSize,letterSpacing:letterSpacing}};var instance={target:$target,options:options,refresh:function(){var self=this;var view=createHtmlTextView(this.contentHtml);var text=this.contentHtml;var fontSize=this.options.maximumFontSize;var letterSpacing=this.options.maximumLetterSpacing;var renderFunc=function(){var state=createRenderState(text,fontSize,letterSpacing);self.renderState(state)};var overflowFunc=function(){return self.getCurrentOverflow()};if(this.options.maximumFontSize-this.options.minimumFontSize>0){optimize(self.options.minimumFontSize,self.options.maximumFontSize,function(value){fontSize=value;renderFunc()},overflowFunc)}if(this.options.maximumLetterSpacing-this.options.minimumLetterSpacing>0){var truncationLevel=1;if(this.options.truncate){optimize(0,1,function(value){truncationLevel=value;text=getTruncatedHtml(view,self.options.truncateString,self.options.truncateLocation,value,true);optimize(self.options.minimumLetterSpacing,0,function(value){letterSpacing=value;renderFunc()},overflowFunc);renderFunc()},overflowFunc)}if(truncationLevel==1){optimize(self.options.minimumLetterSpacing,self.options.maximumLetterSpacing,function(value){letterSpacing=value;renderFunc()},overflowFunc)}}if(this.options.truncate){optimize(0,1,function(value){text=getTruncatedHtml(view,self.options.truncateString,self.options.truncateLocation,value,self.options.truncateOnlyWholeWords);renderFunc()},overflowFunc,this.options.extraOptimizeLimit)}this.renderState(createRenderState(text,fontSize,letterSpacing),!this.options.truncate);this.currentOptimalState=this.currentRenderedState;this.syncFonts()},syncFonts:function(){if($targetGroup.length>1&&(this.options.fontSizeSynced||this.options.letterSpacingSynced)){var lowestFontSize=this.currentOptimalState.fontSize;var lowestLetterSpacing=this.currentOptimalState.letterSpacing;for(var i=0;i<$targetGroup.length;i++){var groupInstance=$($targetGroup[i]).data("badonkatrunc");if(groupInstance!=null&&groupInstance.currentOptimalState!=null){if(groupInstance.currentOptimalState.fontSize<lowestFontSize){lowestFontSize=groupInstance.currentOptimalState.fontSize}if(groupInstance.currentOptimalState.letterSpacing<lowestLetterSpacing){lowestLetterSpacing=groupInstance.currentOptimalState.letterSpacing}}}for(var i=0;i<$targetGroup.length;i++){var groupInstance=$($targetGroup[i]).data("badonkatrunc");if(groupInstance!=null){groupInstance.acceptFontSync(lowestFontSize,lowestLetterSpacing)}}}},acceptFontSync:function(fontSize,letterSpacing){var self=this;var view=createHtmlTextView(this.contentHtml);var text=this.contentHtml;if(this.currentOptimalState!=null){if(!this.options.fontSizeSynced){fontSize=this.currentOptimalState.fontSize}if(!this.options.letterSpacingSynced){letterSpacing=this.currentOptimalState.letterSpacing}}var renderFunc=function(){self.renderState(createRenderState(text,fontSize,letterSpacing))};var overflowFunc=function(){return self.getCurrentOverflow()};if(this.options.truncate){optimize(0,1,function(value){text=getTruncatedHtml(view,self.options.truncateString,self.options.truncateLocation,value,self.options.truncateOnlyWholeWords);renderFunc()},overflowFunc)}this.renderState(createRenderState(text,fontSize,letterSpacing),!this.options.truncate)},init:function(){this.contentHtml=this.target.html();this.settingsWrapper=$('<span style="display: block; margin: 0px; padding: 0px; border: 0px;"></span>');this.settingsWrapper.addClass("badonkatrunc-wrapper");this.target.empty();this.target.append(this.settingsWrapper);this.refresh()},destroy:function(){this.target.empty();this.target.append(this.contentHtml)},renderState:function(state,forceAllowWrap){this.settingsWrapper.css("font-size",state.fontSize+"em");this.settingsWrapper.css("letter-spacing",state.letterSpacing+"em");var whiteSpace=!forceAllowWrap&&this.options.fitDirection=="horizontal"?"nowrap":"normal";this.settingsWrapper.css("white-space",whiteSpace);this.settingsWrapper.empty();this.settingsWrapper.append(state.content);this.currentRenderedState=state},getCurrentOverflow:function(){var wrapper=this.settingsWrapper[0];var overflow=this.options.fitDirection=="horizontal"?wrapper.scrollWidth-$target.width():wrapper.offsetHeight-$target.height();return overflow}};return instance};var createDispatcher=function(updateFunc,addFunc,removeFunc,updateTimeout){var dispatcherInstance={_instances:[],_updateLoop:function(){if($.isFunction(updateFunc)){for(var i=0;i<dispatcherInstance._instances.length;i++){updateFunc(dispatcherInstance._instances[i])}}if(updateTimeout!=null){if(dispatcherInstance._instances.length>0){setTimeout(dispatcherInstance._updateLoop,updateTimeout)}}else{dispatcherInstance._instances=[]}},add:function(instance){if($.inArray(instance,this._instances)!=-1){return}if($.isFunction(addFunc)){addFunc(instance)}this._instances.push(instance);if(this._instances.length==1){if(updateTimeout==null){setTimeout(this._updateLoop)}else{this._updateLoop()}}},remove:function(instance){var index=$.inArray(instance,this._instances);if(index!=-1){this._instances.splice(index,1);if($.isFunction(removeFunc)){removeFunc(instance)}}}};return dispatcherInstance};var resizeMonitor=createDispatcher(function(instance){instance.elementSizeCache.update()},function(instance){instance.elementSizeCache={width:null,height:null,update:function(){var newWidth=instance.target.width();var newHeight=instance.target.height();var hasChanged=this.width!=null&&newWidth!=this.width||this.height!=null&&newHeight!=this.height;this.width=newWidth;this.height=newHeight;if(hasChanged){this.changed()}},changed:function(){dirtyMonitor.add(instance)}}},function(instance){instance.elementSizeCache=undefined},$.fn.badonkatrunc.settings.sizeTrackingTimeout);var dirtyMonitor=createDispatcher(function(instance){instance.refresh.apply(instance)},null,null,null);var getTruncatedHtml=function(htmlTextView,truncateString,truncateLocation,amount,wordRounded){var text=htmlTextView.text;if(amount>1){amount=1}if(amount<0){amount=0}if(amount==1){return htmlTextView.html}var getTruncatedRange=function(begin,length){var words=text.split(" ");var totalEntities=wordRounded?words.length:text.length;var entityBegin=totalEntities*begin;var entityLength=totalEntities*length;if(wordRounded){var getCharacterPosition=function(wordIndex){var characterCount=0;for(var i=0;i<wordIndex;i++){characterCount+=words[i].length+1}return characterCount};var endWord=entityBegin+entityLength;entityBegin=getCharacterPosition(entityBegin);entityLength=getCharacterPosition(endWord)-entityBegin}return htmlTextView.getHtmlSubstring(entityBegin,entityLength)};switch(truncateLocation){case"middle":var amountPerSide=amount/2;var left=getTruncatedRange(0,amountPerSide);var right=getTruncatedRange(1-amountPerSide,amountPerSide);return $.trim(left)+" "+truncateString+" "+$.trim(right);case"start":var truncated=getTruncatedRange(1-amount,amount);return truncateString+$.trim(truncated);case"end":var truncated=getTruncatedRange(0,amount);return $.trim(truncated)+truncateString}};var createHtmlTextView=function(contentHtml){var $content=$("<span></span>");$content.html(contentHtml);var view={html:contentHtml,text:$content.text(),getHtmlSubstring:function(index,length){var element=$content.clone()[0];var totalProcessedLength=0;var totalOutputLength=0;var nodesWithinRange=[];var withinRange=false;var stripOutOfRangeTextInElement=function(node){if(node.nodeType==3){var dataLength=node.data.length;var newData="";var wasWithinRange=false;for(var i=0;i<dataLength;i++){totalProcessedLength++;if(totalProcessedLength>=index&&totalOutputLength<length){withinRange=true;wasWithinRange=true;newData+=node.data.substr(i,1);totalOutputLength++}else{if(withinRange==true){withinRange=false}}}node.data=newData;if(wasWithinRange){nodesWithinRange.push(node)}}else if(node.nodeType==1){if(withinRange){nodesWithinRange.push(node)}var childCount=node.childNodes.length;for(var i=0;i<childCount;i++){stripOutOfRangeTextInElement(node.childNodes[i])}}};stripOutOfRangeTextInElement(element);var parentNodesToKeep=[];var markParentNodesToKeep=function(element){var keepNode=function(node){parentNodesToKeep.push(node);if(node.parentNode!=null){keepNode(node.parentNode)}};keepNode(element)};var nodesWithinRangeCount=nodesWithinRange.length;for(var t=0;t<nodesWithinRangeCount;t++){markParentNodesToKeep(nodesWithinRange[t])}var removeUnusedNodes=function(node){var nodesToRemove=[];var childNodeCount=node.childNodes.length;for(var i=0;i<childNodeCount;i++){var childNode=node.childNodes[i];if(childNode.nodeType!=3){if($.inArray(childNode,parentNodesToKeep)==-1){nodesToRemove.push(childNode)}else{removeUnusedNodes(childNode)}}}for(var i=0;i<nodesToRemove.length;i++){var node=nodesToRemove[i];node.parentNode.removeChild(node)}};removeUnusedNodes(element);return $(element).html()}};return view};var optimize=function(min,max,actionFunc,overflowFunc,extraOptimizeLimit){var currentMax=max;var currentMin=min;var currentValue=max;var lastResult=null;var mostOptimalResult=null;var mostOptimalValue=null;var sameResultCount=0;while(true){actionFunc(currentValue);var result=overflowFunc();if(result<=0){var moreOptimal=true;if(mostOptimalResult!=null){if(mostOptimalResult>result){moreOptimal=false}else if(result==mostOptimalResult){if(currentValue<=mostOptimalValue){moreOptimal=false}}}if(moreOptimal){mostOptimalResult=result;mostOptimalValue=currentValue}}if(result==lastResult){sameResultCount++;if(extraOptimizeLimit==undefined||sameResultCount==extraOptimizeLimit){if(mostOptimalValue!=null){actionFunc(mostOptimalValue)}return}}if(result>0){currentMax=currentValue;var difference=currentValue-currentMin;currentValue-=difference/2}else if(result<=0){currentMin=currentValue;currentValue=currentMax}lastResult=result}}})(jQuery); +//(function($){var methods={init:function(options){var all=this;var instanceOptions=$.extend(true,{},$.fn.badonkatrunc.defaultOptions,options);if(instanceOptions.fitDirection!="horizontal"&&instanceOptions.fitDirection!="vertical"){$.error("'"+instanceOptions.fitDirection+"' is not a valid fit direction. Use 'horizontal' or 'vertical.'");return this;}if(instanceOptions.truncateLocation!="start"&&instanceOptions.truncateLocation!="middle"&&instanceOptions.truncateLocation!="end"){$.error("'"+instanceOptions.truncateLocation+"' is not a valid truncation location. Use 'start,' 'middle' or 'end.'");return this;}if(instanceOptions.minimumFontSize>instanceOptions.maximumFontSize){$.error("Minimum font size can not exceed the maximum font size.");return this;}if(instanceOptions.minimumLetterSpacing>instanceOptions.maximumLetterSpacing){$.error("Minimum letter spacing can not exceed the maximum letter spacing.");return this;}return this.each(function(){var $this=$(this);var data=$(this).data("badonkatrunc");if(data){$this.badonkatrunc("destroy");}var instance=pluginInstance($this,instanceOptions,all);$(this).data("badonkatrunc",instance);instance.init();if(instance.options.automaticSizeTracking){resizeMonitor.add(instance);}});},destroy:function(){return this.each(function(){var $this=$(this);var data=$this.data("badonkatrunc");data.destroy();resizeMonitor.remove(data);dirtyMonitor.remove(data);$(window).unbind(".badonkatrunc");$this.removeData("badonkatrunc");});},refresh:function(){return this.each(function(){var $this=$(this);var data=$this.data("badonkatrunc");dirtyMonitor.remove(data);data.refresh();});},changeContents:function(newContents){return this.each(function(){var $this=$(this);var data=$this.data("badonkatrunc");if(typeof(newContents)=="string"){data.contentHtml=$("<span></span>").text(newContents).html();}else{data.contentHtml=$(newContents).html();}dirtyMonitor.add(data);});}};$.fn.badonkatrunc=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1));}else{if(typeof method==="object"||!method){return methods.init.apply(this,arguments);}else{$.error("Method "+method+" does not exist on jQuery.badonkatrunc");}}};$.fn.badonkatrunc.settings={sizeTrackingTimeout:1000/60};$.fn.badonkatrunc.defaultOptions={automaticSizeTracking:false,fitDirection:"horizontal",minimumFontSize:1,maximumFontSize:1,fontSizeSynced:false,minimumLetterSpacing:0,maximumLetterSpacing:0,letterSpacingSynced:false,truncate:true,truncateString:"&hellip;",truncateLocation:"end",truncateOnlyWholeWords:false,extraOptimizeLimit:8};$.fn.btrunc=$.fn.badonkatrunc;var pluginInstance=function($target,options,$targetGroup){var createRenderState=function(content,fontSize,letterSpacing){return{content:content,fontSize:fontSize,letterSpacing:letterSpacing};};var instance={target:$target,options:options,refresh:function(){var self=this;var view=createHtmlTextView(this.contentHtml);var text=this.contentHtml;var fontSize=this.options.maximumFontSize;var letterSpacing=this.options.maximumLetterSpacing;var renderFunc=function(){var state=createRenderState(text,fontSize,letterSpacing);self.renderState(state);};var overflowFunc=function(){return self.getCurrentOverflow();};if(this.options.maximumFontSize-this.options.minimumFontSize>0){optimize(self.options.minimumFontSize,self.options.maximumFontSize,function(value){fontSize=value;renderFunc();},overflowFunc);}if(this.options.maximumLetterSpacing-this.options.minimumLetterSpacing>0){var truncationLevel=1;if(this.options.truncate){optimize(0,1,function(value){truncationLevel=value;text=getTruncatedHtml(view,self.options.truncateString,self.options.truncateLocation,value,true);optimize(self.options.minimumLetterSpacing,0,function(value){letterSpacing=value;renderFunc();},overflowFunc);renderFunc();},overflowFunc);}if(truncationLevel==1){optimize(self.options.minimumLetterSpacing,self.options.maximumLetterSpacing,function(value){letterSpacing=value;renderFunc();},overflowFunc);}}if(this.options.truncate){optimize(0,1,function(value){text=getTruncatedHtml(view,self.options.truncateString,self.options.truncateLocation,value,self.options.truncateOnlyWholeWords);renderFunc();},overflowFunc,this.options.extraOptimizeLimit);}this.renderState(createRenderState(text,fontSize,letterSpacing),!this.options.truncate);this.currentOptimalState=this.currentRenderedState;this.syncFonts();},syncFonts:function(){if($targetGroup.length>1&&(this.options.fontSizeSynced||this.options.letterSpacingSynced)){var lowestFontSize=this.currentOptimalState.fontSize;var lowestLetterSpacing=this.currentOptimalState.letterSpacing;for(var i=0;i<$targetGroup.length;i++){var groupInstance=$($targetGroup[i]).data("badonkatrunc");if(groupInstance!=null&&groupInstance.currentOptimalState!=null){if(groupInstance.currentOptimalState.fontSize<lowestFontSize){lowestFontSize=groupInstance.currentOptimalState.fontSize;}if(groupInstance.currentOptimalState.letterSpacing<lowestLetterSpacing){lowestLetterSpacing=groupInstance.currentOptimalState.letterSpacing;}}}for(var i=0;i<$targetGroup.length;i++){var groupInstance=$($targetGroup[i]).data("badonkatrunc");if(groupInstance!=null){groupInstance.acceptFontSync(lowestFontSize,lowestLetterSpacing);}}}},acceptFontSync:function(fontSize,letterSpacing){var self=this;var view=createHtmlTextView(this.contentHtml);var text=this.contentHtml;if(this.currentOptimalState!=null){if(!this.options.fontSizeSynced){fontSize=this.currentOptimalState.fontSize;}if(!this.options.letterSpacingSynced){letterSpacing=this.currentOptimalState.letterSpacing;}}var renderFunc=function(){self.renderState(createRenderState(text,fontSize,letterSpacing));};var overflowFunc=function(){return self.getCurrentOverflow();};if(this.options.truncate){optimize(0,1,function(value){text=getTruncatedHtml(view,self.options.truncateString,self.options.truncateLocation,value,self.options.truncateOnlyWholeWords);renderFunc();},overflowFunc);}this.renderState(createRenderState(text,fontSize,letterSpacing),!this.options.truncate);},init:function(){this.contentHtml=this.target.html();this.settingsWrapper=$('<span style="margin: 0px; padding: 0px; border: 0px;"></span>');this.settingsWrapper.addClass("badonkatrunc-wrapper");if(!$.browser.mozilla&&!$.browser.opera&&!($.browser.msie&&$.browser.version=="7.0")){this.settingsWrapper.css("display","block");}this.target.empty();this.target.append(this.settingsWrapper);this.refresh();},destroy:function(){this.target.empty();this.target.append(this.contentHtml);},renderState:function(state,forceAllowWrap){this.settingsWrapper.css("font-size",state.fontSize+"em");this.settingsWrapper.css("letter-spacing",state.letterSpacing+"em");var whiteSpace=(!forceAllowWrap&&this.options.fitDirection=="horizontal")?"nowrap":"normal";this.settingsWrapper.css("white-space",whiteSpace);this.settingsWrapper.empty();this.settingsWrapper.append(state.content);this.currentRenderedState=state;},getCurrentOverflow:function(){var wrapper=this.settingsWrapper[0];var overflow=(this.options.fitDirection=="horizontal")?wrapper.scrollWidth-$target.width():wrapper.offsetHeight-$target.height();return overflow;}};return instance;};var createDispatcher=function(updateFunc,addFunc,removeFunc,updateTimeout){var dispatcherInstance={_instances:[],_updateLoop:function(){if($.isFunction(updateFunc)){for(var i=0;i<dispatcherInstance._instances.length;i++){updateFunc(dispatcherInstance._instances[i]);}}if(updateTimeout!=null){if(dispatcherInstance._instances.length>0){setTimeout(dispatcherInstance._updateLoop,updateTimeout);}}else{dispatcherInstance._instances=[];}},add:function(instance){if($.inArray(instance,this._instances)!=-1){return;}if($.isFunction(addFunc)){addFunc(instance);}this._instances.push(instance);if(this._instances.length==1){if(updateTimeout==null){setTimeout(this._updateLoop);}else{this._updateLoop();}}},remove:function(instance){var index=$.inArray(instance,this._instances);if(index!=-1){this._instances.splice(index,1);if($.isFunction(removeFunc)){removeFunc(instance);}}}};return dispatcherInstance;};var resizeMonitor=createDispatcher(function(instance){instance.elementSizeCache.update();},function(instance){instance.elementSizeCache={width:null,height:null,update:function(){var newWidth=instance.target.width();var newHeight=instance.target.height();var hasChanged=((this.width!=null&&newWidth!=this.width)||(this.height!=null&&newHeight!=this.height));this.width=newWidth;this.height=newHeight;if(hasChanged){this.changed();}},changed:function(){dirtyMonitor.add(instance);}};},function(instance){instance.elementSizeCache=undefined;},$.fn.badonkatrunc.settings.sizeTrackingTimeout);var dirtyMonitor=createDispatcher(function(instance){instance.refresh.apply(instance);},null,null,null);var getTruncatedHtml=function(htmlTextView,truncateString,truncateLocation,amount,wordRounded){var text=htmlTextView.text;if(amount>1){amount=1;}if(amount<0){amount=0;}if(amount==1){return htmlTextView.html;}var getTruncatedRange=function(begin,length){var words=text.split(" ");var totalEntities=(wordRounded)?words.length:text.length;var entityBegin=totalEntities*begin;var entityLength=totalEntities*length;if(wordRounded){var getCharacterPosition=function(wordIndex){var characterCount=0;for(var i=0;i<wordIndex;i++){characterCount+=words[i].length+1;}return characterCount;};var endWord=entityBegin+entityLength;entityBegin=getCharacterPosition(entityBegin);entityLength=getCharacterPosition(endWord)-entityBegin;}return htmlTextView.getHtmlSubstring(entityBegin,entityLength);};switch(truncateLocation){case"middle":var amountPerSide=amount/2;var left=getTruncatedRange(0,amountPerSide);var right=getTruncatedRange(1-amountPerSide,amountPerSide);return $.trim(left)+" "+truncateString+" "+$.trim(right);case"start":var truncated=getTruncatedRange(1-amount,amount);return truncateString+$.trim(truncated);case"end":var truncated=getTruncatedRange(0,amount);return $.trim(truncated)+truncateString;}};var createHtmlTextView=function(contentHtml){var $content=$("<span></span>");$content.html(contentHtml);var view={html:contentHtml,text:$content.text(),getHtmlSubstring:function(index,length){var element=$content.clone()[0];var totalProcessedLength=0;var totalOutputLength=0;var nodesWithinRange=[];var withinRange=false;var stripOutOfRangeTextInElement=function(node){if(node.nodeType==3){var dataLength=node.data.length;var newData="";var wasWithinRange=false;for(var i=0;i<dataLength;i++){totalProcessedLength++;if(totalProcessedLength>=index&&totalOutputLength<length){withinRange=true;wasWithinRange=true;newData+=node.data.substr(i,1);totalOutputLength++;}else{if(withinRange==true){withinRange=false;}}}node.data=newData;if(wasWithinRange){nodesWithinRange.push(node);}}else{if(node.nodeType==1){if(withinRange){nodesWithinRange.push(node);}var childCount=node.childNodes.length;for(var i=0;i<childCount;i++){stripOutOfRangeTextInElement(node.childNodes[i]);}}}};stripOutOfRangeTextInElement(element);var parentNodesToKeep=[];var markParentNodesToKeep=function(element){var keepNode=function(node){parentNodesToKeep.push(node);if(node.parentNode!=null){keepNode(node.parentNode);}};keepNode(element);};var nodesWithinRangeCount=nodesWithinRange.length;for(var t=0;t<nodesWithinRangeCount;t++){markParentNodesToKeep(nodesWithinRange[t]);}var removeUnusedNodes=function(node){var nodesToRemove=[];var childNodeCount=node.childNodes.length;for(var i=0;i<childNodeCount;i++){var childNode=node.childNodes[i];if(childNode.nodeType!=3){if($.inArray(childNode,parentNodesToKeep)==-1){nodesToRemove.push(childNode);}else{removeUnusedNodes(childNode);}}}for(var i=0;i<nodesToRemove.length;i++){var node=nodesToRemove[i];node.parentNode.removeChild(node);}};removeUnusedNodes(element);return $(element).html();}};return view;};var optimize=function(min,max,actionFunc,overflowFunc,extraOptimizeLimit){var currentMax=max;var currentMin=min;var currentValue=max;var lastResult=null;var mostOptimalResult=null;var mostOptimalValue=null;var sameResultCount=0;while(true){actionFunc(currentValue);var result=overflowFunc();if(result<=0){var moreOptimal=true;if(mostOptimalResult!=null){if(mostOptimalResult>result){moreOptimal=false;}else{if(result==mostOptimalResult){if(currentValue<=mostOptimalValue){moreOptimal=false;}}}}if(moreOptimal){mostOptimalResult=result;mostOptimalValue=currentValue;}}if(result==lastResult){sameResultCount++;if(extraOptimizeLimit==undefined||sameResultCount==extraOptimizeLimit){if(mostOptimalValue!=null){actionFunc(mostOptimalValue);}return;}}if(result>0){currentMax=currentValue;var difference=(currentValue-currentMin);currentValue-=(difference/2);}else{if(result<=0){currentMin=currentValue;currentValue=currentMax;}}lastResult=result;}};})(jQuery); + + +(function ($) { + var methods = { + init: function (options) { + var all = this; + var instanceOptions = $.extend(true, {}, $.fn.badonkatrunc.defaultOptions, options); + if (instanceOptions.fitDirection != "horizontal" && instanceOptions.fitDirection != "vertical") { + $.error("'" + instanceOptions.fitDirection + "' is not a valid fit direction. Use 'horizontal' or 'vertical.'"); + return this; + } + if (instanceOptions.truncateLocation != "start" && instanceOptions.truncateLocation != "middle" && instanceOptions.truncateLocation != "end") { + $.error("'" + instanceOptions.truncateLocation + "' is not a valid truncation location. Use 'start,' 'middle' or 'end.'"); + return this; + } + if (instanceOptions.minimumFontSize > instanceOptions.maximumFontSize) { + $.error("Minimum font size can not exceed the maximum font size."); + return this; + } + if (instanceOptions.minimumLetterSpacing > instanceOptions.maximumLetterSpacing) { + $.error("Minimum letter spacing can not exceed the maximum letter spacing."); + return this; + } + return this.each(function () { + var $this = $(this); + var data = $(this).data("badonkatrunc"); + if (data) { + $this.badonkatrunc("destroy"); + } + var instance = pluginInstance($this, instanceOptions, all); + $(this).data("badonkatrunc", instance); + instance.init(); + if (instance.options.automaticSizeTracking) { + resizeMonitor.add(instance); + } + }); + }, + destroy: function () { + return this.each(function () { + var $this = $(this); + var data = $this.data("badonkatrunc"); + data.destroy(); + resizeMonitor.remove(data); + dirtyMonitor.remove(data); + $(window).unbind(".badonkatrunc"); + $this.removeData("badonkatrunc"); + }); + }, + refresh: function () { + return this.each(function () { + var $this = $(this); + var data = $this.data("badonkatrunc"); + dirtyMonitor.remove(data); + data.refresh(); + }); + }, + changeContents: function (newContents) { + return this.each(function () { + var $this = $(this); + var data = $this.data("badonkatrunc"); + if (typeof (newContents) == "string") { + data.contentHtml = $("<span></span>").text(newContents).html(); + } else { + data.contentHtml = $(newContents).html(); + } + dirtyMonitor.add(data); + }); + } + }; + $.fn.badonkatrunc = function (method) { + if (methods[method]) { + return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); + } else { + if (typeof method === "object" || !method) { + return methods.init.apply(this, arguments); + } else { + $.error("Method " + method + " does not exist on jQuery.badonkatrunc"); + } + } + }; + $.fn.badonkatrunc.settings = { + sizeTrackingTimeout: 1000 / 60 + }; + $.fn.badonkatrunc.defaultOptions = { + automaticSizeTracking: false, + fitDirection: "horizontal", + minimumFontSize: 1, + maximumFontSize: 1, + fontSizeSynced: false, + minimumLetterSpacing: 0, + maximumLetterSpacing: 0, + letterSpacingSynced: false, + truncate: true, + truncateString: "&hellip;", + truncateLocation: "end", + truncateOnlyWholeWords: false, + extraOptimizeLimit: 8 + }; + $.fn.btrunc = $.fn.badonkatrunc; + var pluginInstance = function ($target, options, $targetGroup) { + var createRenderState = function (content, fontSize, letterSpacing) { + return { + content: content, + fontSize: fontSize, + letterSpacing: letterSpacing + }; + }; + var instance = { + target: $target, + options: options, + refresh: function () { + var self = this; + var view = createHtmlTextView(this.contentHtml); + var text = this.contentHtml; + var fontSize = this.options.maximumFontSize; + var letterSpacing = this.options.maximumLetterSpacing; + var renderFunc = function () { + var state = createRenderState(text, fontSize, letterSpacing); + self.renderState(state); + }; + var overflowFunc = function () { + return self.getCurrentOverflow(); + }; + if (this.options.maximumFontSize - this.options.minimumFontSize > 0) { + optimize(self.options.minimumFontSize, self.options.maximumFontSize, function (value) { + fontSize = value; + renderFunc(); + }, overflowFunc); + } + if (this.options.maximumLetterSpacing - this.options.minimumLetterSpacing > 0) { + var truncationLevel = 1; + if (this.options.truncate) { + optimize(0, 1, function (value) { + truncationLevel = value; + text = getTruncatedHtml(view, self.options.truncateString, self.options.truncateLocation, value, true); + optimize(self.options.minimumLetterSpacing, 0, function (value) { + letterSpacing = value; + renderFunc(); + }, overflowFunc); + renderFunc(); + }, overflowFunc); + } + if (truncationLevel == 1) { + optimize(self.options.minimumLetterSpacing, self.options.maximumLetterSpacing, function (value) { + letterSpacing = value; + renderFunc(); + }, overflowFunc); + } + } + if (this.options.truncate) { + optimize(0, 1, function (value) { + text = getTruncatedHtml(view, self.options.truncateString, self.options.truncateLocation, value, self.options.truncateOnlyWholeWords); + renderFunc(); + }, overflowFunc, this.options.extraOptimizeLimit); + } + this.renderState(createRenderState(text, fontSize, letterSpacing), !this.options.truncate); + this.currentOptimalState = this.currentRenderedState; + this.syncFonts(); + }, + syncFonts: function () { + if ($targetGroup.length > 1 && (this.options.fontSizeSynced || this.options.letterSpacingSynced)) { + var lowestFontSize = this.currentOptimalState.fontSize; + var lowestLetterSpacing = this.currentOptimalState.letterSpacing; + for (var i = 0; i < $targetGroup.length; i++) { + var groupInstance = $($targetGroup[i]).data("badonkatrunc"); + if (groupInstance != null && groupInstance.currentOptimalState != null) { + if (groupInstance.currentOptimalState.fontSize < lowestFontSize) { + lowestFontSize = groupInstance.currentOptimalState.fontSize; + } + if (groupInstance.currentOptimalState.letterSpacing < lowestLetterSpacing) { + lowestLetterSpacing = groupInstance.currentOptimalState.letterSpacing; + } + } + } + for (var i = 0; i < $targetGroup.length; i++) { + var groupInstance = $($targetGroup[i]).data("badonkatrunc"); + if (groupInstance != null) { + groupInstance.acceptFontSync(lowestFontSize, lowestLetterSpacing); + } + } + } + }, + acceptFontSync: function (fontSize, letterSpacing) { + var self = this; + var view = createHtmlTextView(this.contentHtml); + var text = this.contentHtml; + if (this.currentOptimalState != null) { + if (!this.options.fontSizeSynced) { + fontSize = this.currentOptimalState.fontSize; + } + if (!this.options.letterSpacingSynced) { + letterSpacing = this.currentOptimalState.letterSpacing; + } + } + var renderFunc = function () { + self.renderState(createRenderState(text, fontSize, letterSpacing)); + }; + var overflowFunc = function () { + return self.getCurrentOverflow(); + }; + if (this.options.truncate) { + optimize(0, 1, function (value) { + text = getTruncatedHtml(view, self.options.truncateString, self.options.truncateLocation, value, self.options.truncateOnlyWholeWords); + renderFunc(); + }, overflowFunc); + } + this.renderState(createRenderState(text, fontSize, letterSpacing), !this.options.truncate); + }, + init: function () { + + if (!$.browser.mozilla && !$.browser.opera && !($.browser.msie && $.browser.version == "7.0")) { + this.contentHtml = this.target.html(); + this.settingsWrapper = $('<span style="margin: 0px; padding: 0px; border: 0px;"></span>'); + this.settingsWrapper.addClass("badonkatrunc-wrapper"); + this.settingsWrapper.css("display", "block"); + } + //this.target.empty(); + this.target.append(this.settingsWrapper); + this.refresh(); + }, + destroy: function () { + this.target.empty(); + this.target.append(this.contentHtml); + }, + renderState: function (state, forceAllowWrap) { + this.settingsWrapper.css("font-size", state.fontSize + "em"); + this.settingsWrapper.css("letter-spacing", state.letterSpacing + "em"); + var whiteSpace = (!forceAllowWrap && this.options.fitDirection == "horizontal") ? "nowrap" : "normal"; + this.settingsWrapper.css("white-space", whiteSpace); + this.settingsWrapper.empty(); + this.settingsWrapper.append(state.content); + this.currentRenderedState = state; + }, + getCurrentOverflow: function () { + var wrapper = this.settingsWrapper[0]; + var overflow = (this.options.fitDirection == "horizontal") ? wrapper.scrollWidth - $target.width() : wrapper.offsetHeight - $target.height(); + return overflow; + } + }; + return instance; + }; + var createDispatcher = function (updateFunc, addFunc, removeFunc, updateTimeout) { + var dispatcherInstance = { + _instances: [], + _updateLoop: function () { + if ($.isFunction(updateFunc)) { + for (var i = 0; i < dispatcherInstance._instances.length; i++) { + updateFunc(dispatcherInstance._instances[i]); + } + } + if (updateTimeout != null) { + if (dispatcherInstance._instances.length > 0) { + setTimeout(dispatcherInstance._updateLoop, updateTimeout); + } + } else { + dispatcherInstance._instances = []; + } + }, + add: function (instance) { + if ($.inArray(instance, this._instances) != -1) { + return; + } + if ($.isFunction(addFunc)) { + addFunc(instance); + } + this._instances.push(instance); + if (this._instances.length == 1) { + if (updateTimeout == null) { + setTimeout(this._updateLoop); + } else { + this._updateLoop(); + } + } + }, + remove: function (instance) { + var index = $.inArray(instance, this._instances); + if (index != -1) { + this._instances.splice(index, 1); + if ($.isFunction(removeFunc)) { + removeFunc(instance); + } + } + } + }; + return dispatcherInstance; + }; + var resizeMonitor = createDispatcher(function (instance) { + instance.elementSizeCache.update(); + }, function (instance) { + instance.elementSizeCache = { + width: null, + height: null, + update: function () { + var newWidth = instance.target.width(); + var newHeight = instance.target.height(); + var hasChanged = ((this.width != null && newWidth != this.width) || (this.height != null && newHeight != this.height)); + this.width = newWidth; + this.height = newHeight; + if (hasChanged) { + this.changed(); + } + }, + changed: function () { + dirtyMonitor.add(instance); + } + }; + }, function (instance) { + instance.elementSizeCache = undefined; + }, $.fn.badonkatrunc.settings.sizeTrackingTimeout); + var dirtyMonitor = createDispatcher(function (instance) { + instance.refresh.apply(instance); + }, null, null, null); + var getTruncatedHtml = function (htmlTextView, truncateString, truncateLocation, amount, wordRounded) { + var text = htmlTextView.text; + if (amount > 1) { + amount = 1; + } + if (amount < 0) { + amount = 0; + } + if (amount == 1) { + return htmlTextView.html; + } + var getTruncatedRange = function (begin, length) { + var words = text.split(" "); + var totalEntities = (wordRounded) ? words.length : text.length; + var entityBegin = totalEntities * begin; + var entityLength = totalEntities * length; + if (wordRounded) { + var getCharacterPosition = function (wordIndex) { + var characterCount = 0; + for (var i = 0; i < wordIndex; i++) { + characterCount += words[i].length + 1; + } + return characterCount; + }; + var endWord = entityBegin + entityLength; + entityBegin = getCharacterPosition(entityBegin); + entityLength = getCharacterPosition(endWord) - entityBegin; + } + return htmlTextView.getHtmlSubstring(entityBegin, entityLength); + }; + switch (truncateLocation) { + case "middle": + var amountPerSide = amount / 2; + var left = getTruncatedRange(0, amountPerSide); + var right = getTruncatedRange(1 - amountPerSide, amountPerSide); + return $.trim(left) + " " + truncateString + " " + $.trim(right); + case "start": + var truncated = getTruncatedRange(1 - amount, amount); + return truncateString + $.trim(truncated); + case "end": + var truncated = getTruncatedRange(0, amount); + return $.trim(truncated) + truncateString; + } + }; + var createHtmlTextView = function (contentHtml) { + var $content = $("<span></span>"); + $content.html(contentHtml); + var view = { + html: contentHtml, + text: $content.text(), + getHtmlSubstring: function (index, length) { + var element = $content.clone()[0]; + var totalProcessedLength = 0; + var totalOutputLength = 0; + var nodesWithinRange = []; + var withinRange = false; + var stripOutOfRangeTextInElement = function (node) { + if (node.nodeType == 3) { + var dataLength = node.data.length; + var newData = ""; + var wasWithinRange = false; + for (var i = 0; i < dataLength; i++) { + totalProcessedLength++; + if (totalProcessedLength >= index && totalOutputLength < length) { + withinRange = true; + wasWithinRange = true; + newData += node.data.substr(i, 1); + totalOutputLength++; + } else { + if (withinRange == true) { + withinRange = false; + } + } + } + node.data = newData; + if (wasWithinRange) { + nodesWithinRange.push(node); + } + } else { + if (node.nodeType == 1) { + if (withinRange) { + nodesWithinRange.push(node); + } + var childCount = node.childNodes.length; + for (var i = 0; i < childCount; i++) { + stripOutOfRangeTextInElement(node.childNodes[i]); + } + } + } + }; + stripOutOfRangeTextInElement(element); + var parentNodesToKeep = []; + var markParentNodesToKeep = function (element) { + var keepNode = function (node) { + parentNodesToKeep.push(node); + if (node.parentNode != null) { + keepNode(node.parentNode); + } + }; + keepNode(element); + }; + var nodesWithinRangeCount = nodesWithinRange.length; + for (var t = 0; t < nodesWithinRangeCount; t++) { + markParentNodesToKeep(nodesWithinRange[t]); + } + var removeUnusedNodes = function (node) { + var nodesToRemove = []; + var childNodeCount = node.childNodes.length; + for (var i = 0; i < childNodeCount; i++) { + var childNode = node.childNodes[i]; + if (childNode.nodeType != 3) { + if ($.inArray(childNode, parentNodesToKeep) == -1) { + nodesToRemove.push(childNode); + } else { + removeUnusedNodes(childNode); + } + } + } + for (var i = 0; i < nodesToRemove.length; i++) { + var node = nodesToRemove[i]; + node.parentNode.removeChild(node); + } + }; + removeUnusedNodes(element); + return $(element).html(); + } + }; + return view; + }; + var optimize = function (min, max, actionFunc, overflowFunc, extraOptimizeLimit) { + var currentMax = max; + var currentMin = min; + var currentValue = max; + var lastResult = null; + var mostOptimalResult = null; + var mostOptimalValue = null; + var sameResultCount = 0; + while (true) { + actionFunc(currentValue); + var result = overflowFunc(); + if (result <= 0) { + var moreOptimal = true; + if (mostOptimalResult != null) { + if (mostOptimalResult > result) { + moreOptimal = false; + } else { + if (result == mostOptimalResult) { + if (currentValue <= mostOptimalValue) { + moreOptimal = false; + } + } + } + } + if (moreOptimal) { + mostOptimalResult = result; + mostOptimalValue = currentValue; + } + } + if (result == lastResult) { + sameResultCount++; + if (extraOptimizeLimit == undefined || sameResultCount == extraOptimizeLimit) { + if (mostOptimalValue != null) { + actionFunc(mostOptimalValue); + } + return; + } + } + if (result > 0) { + currentMax = currentValue; + var difference = (currentValue - currentMin); + currentValue -= (difference / 2); + } else { + if (result <= 0) { + currentMin = currentValue; + currentValue = currentMax; + } + } + lastResult = result; + } + }; +})(jQuery); /* * jQuery OwlCarousel v1.3.2 * * Copyright (c) 2013 Bartosz Wojciechowski * http://www.owlgraphic.com/owlcarousel/ @@ -1890,10 +2383,11 @@ var widthCheckerInterval = false; $(document).ready(function (){ widgets.handleEvents(); owlPlugin.initPostCarousel(); + owlPlugin.initServiceCarouselFull; owlPlugin.initServiceCarouselLarge(); owlPlugin.initServiceCarouselSmall(); owlPlugin.initGalleriesCarousel(); owlPlugin.initColumnsCarousel(); owlPlugin.initMagazineCarousel(); @@ -1946,10 +2440,27 @@ lazyLoad : true }).data('owlCarousel')); } }, + initServiceCarouselFull : function(){ + var element = $(".iasd-widget-slider > .services.full"); + if(element.length > 0) { + owlCarousels.push(element.owlCarousel({ + items : 7, + itemsDesktop : [1200,7], + itemsDesktopSmall : [991,7], + itemsTablet : [768,5], + itemsMobile: [479,3], + slideSpeed : 500, + paginationSpeed : 1000, + autoPlay: false, + stopOnHover: true + }).data('owlCarousel')); + } + }, + initServiceCarouselLarge : function(){ var element = $(".iasd-widget-slider > .services.large"); if(element.length > 0) { owlCarousels.push(element.owlCarousel({ items : 5, @@ -2295,17 +2806,9 @@ } }; -})(jQuery); -(function($){ - var checkWhastapp = function() { - if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) { - $(".social-media .whatsapp").css({ visibility: "visible" }); - } - } - $('document').ready(checkWhastapp); })(jQuery); (function($){ $(window).load(function (){ $(".iasd-widget-posts_box address, .iasd-widget-posts_box h2, .iasd-widget-posts_categories h2, .iasd-widget-posts_categories p, .iasd-widget-posts_grid h2, .iasd-widget-posts_grid .post-horizontal-list-item h2, .iasd-widget-posts_grid .post-horizontal-list-item p, .iasd-widget-posts_list h2, .iasd-widget-slider .owl-carousel .slider-item h2, .iasd-widget-slider .owl-carousel .slider-item h3, .iasd-widget-slider .owl-carousel .slider-item p").badonkatrunc({ \ No newline at end of file