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
class parallax { | |
private _backgroundElement:string; | |
private _containerElement:string; | |
set containerElement(name: string){ | |
this._containerElement = name; | |
} | |
set backgroundElement(name: string){ | |
this._backgroundElement = name; | |
} |
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 formatReportTitle(objectKeys){ | |
var formattedReportArray = []; | |
for (a = 0; a <= objectKeys.length -1; a++){ //loop through array of report types/object keys | |
var splitString = objectKeys[a].split("_"); //slpit the array by "_" | |
//loop through each string item | |
for (var b = 0; b <= splitString.length -1; b++ ){ | |
splitString[b] = splitString[b].split(''); //splits string into array of letters | |
splitString[b][0] = splitString[b][0].toUpperCase(); //makes first letter capitalizes | |
splitString[b]= splitString[b].join(''); //converts array of letter back to word | |
} |
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
//fix for flexbox in internet explorer | |
$list: xm sm md lg xl; | |
@for $i from 1 through 12{ | |
@each $b in $list{ | |
.ie .col-#{$b}-#{$i}{ | |
padding-left: 0px !important; padding-right: 0px !important; | |
} | |
} | |
} |
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
<a href="/#/:policy.html/?scrollTo=scope" target="_self">Link</a> | |
<h2 id="scope">Scope</h2> |
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 ieTag(){ | |
var ie = { | |
eleven: 'rv:11', | |
ten: 'MSIE 10', | |
nine: 'MSIE 9' | |
}; | |
var appVersion = window.navigator.appVersion; | |
for( key in ie ) |
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
<div class="row" ng-repeat="person in people" ng-if="$index % 3 == 0"> | |
<div class="col-sm-4">{{people[$index]}}.name}}</div> | |
<div class="col-sm-4">{{people[$index + 1]}}.name}}</div> | |
<div class="col-sm-4">{{people[$index + 2]}}.name}}</div> | |
</div> |
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
<i class="material-icons md-48" ng-repeat="_ in ((_ = []) && (_.length=3) && _) track by $index">star</i> |
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
img { | |
/* Same as first example */ | |
min-height: 50px; | |
} | |
img:before { | |
content: " "; | |
display: block; | |
position: absolute; |
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
/* youtube video in slider */ | |
// Load the IFrame Player API code asynchronously. | |
var tag = document.createElement('script'); | |
tag.src = "https://www.youtube.com/player_api"; | |
var firstScriptTag = document.getElementsByTagName('script')[0]; | |
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | |
// Replace the 'ytplayer' element with an <iframe> and | |
// YouTube player after the API code downloads. |
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 fullCalendar() | |
{ | |
$('#calendar').fullCalendar( | |
{ | |
eventBackgroundColor: '#7A1705', | |
eventBorderColor: '#7A1705', | |
header: | |
{ | |
left: 'title', | |
center: '', |
NewerOlder