This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.backgrounds(@img,@w,@h,@t,@c,@repeat:no-repeat,@color:transparent, @folder:images) { | |
background : @color url("../@{folder}/@{img}") @t @c @repeat; | |
width : @w; | |
height : @h; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'OpenSans-Bold'; | |
src: url('../fonts/OpenSans-Bold.ttf'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
.fonts (@the-font:"OpenSans-CondLight",@size:14px) { | |
font-weight: normal; | |
font-style: normal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.shadow-border(@background-color : #C5EFFD, @left : 3px , @bottom : 3px, @height : 2px ) { | |
box-shadow: @left @bottom @height @background-color; | |
-moz-box-shadow: @left @bottom @height @background-color; | |
-webkit-box-shadow: @left @bottom @height @background-color; | |
-o-box-shadow: @left @bottom @height @background-color; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.no-shadow-border { | |
box-shadow: none; | |
-moz-box-shadow: none; | |
-webkit-box-shadow: none; | |
-o-box-shadow: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
columns(@nb-column : 3, @gap : 20px, @margintop : 10px, @rule-color : #ccc, @rule-style : dashed, @rule-width : 1px ) { | |
margin : @margintop 0; | |
-moz-column-count : @nb-column; | |
-moz-column-gap : @gap; | |
-webkit-column-count : @nb-column; | |
-webkit-column-gap : @gap; | |
-moz-column-rule-color: @rule-color; | |
-moz-column-rule-style: @rule-style ; | |
-moz-column-rule-width: @rule-width; | |
-webkit-column-rule-color: @rule-color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.rounded(@radius: 7px) { | |
-webkit-border-radius: @radius; | |
-moz-border-radius: @radius; | |
-o-border-radius: @radius; | |
border-radius: @radius; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($('.wrapper-slider-home').is('*')) { | |
setInterval( function() { slideSwitch(".wrapper-slider-home");}, 2000 ); | |
}; | |
function slideSwitch(wrapper) { | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ajaxPattern = (function($){ | |
return { | |
requestAjax: function(params){ | |
var settings = $.extend({ | |
url : '', | |
spinner : undefined, | |
form : '', | |
dataType : 'json', | |
cache : false, | |
type : 'POST', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function adddynamiccssfile(filename) { | |
if (filename != "") { | |
var headID = document.getElementsByTagName("head")[0]; | |
var cssNode = document.createElement('link'); | |
cssNode.type = 'text/css'; | |
cssNode.rel = 'stylesheet'; | |
cssNode.href = filename; | |
cssNode.media = 'screen'; | |
headID.appendChild(cssNode); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function removedynamicjscssfile(filename, filetype){ | |
if (filename != "" && filetype != "" ) { | |
var targetelement=(filetype=="js")? "script" : (filetype=="css")? "link" : "none" //determine element type to create nodelist from | |
var targetattr=(filetype=="js")? "src" : (filetype=="css")? "href" : "none" //determine corresponding attribute to test for | |
var allsuspects=document.getElementsByTagName(targetelement) | |
for (var i=allsuspects.length; i>=0; i--){ //search backwards within nodelist for matching elements to remove | |
if (allsuspects[i] && allsuspects[i].getAttribute(targetattr)!=null && allsuspects[i].getAttribute(targetattr).indexOf(filename)!=-1) | |
allsuspects[i].parentNode.removeChild(allsuspects[i]) //remove element by calling parentNode.removeChild() | |
} | |
} |
OlderNewer