This file contains hidden or 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
.row { | |
max-width: 1920px; | |
} | |
.container { | |
padding: 0 15px; | |
} | |
.nopad { | |
padding: 0; |
This file contains hidden or 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
// Parallax | |
$(document).ready(function(){ | |
$window = $(window); | |
var width = $window.width(); | |
$(window).bind('resize', function () { | |
width = $window.width(); | |
}); | |
$(window).scroll(function() { | |
// #hero |
This file contains hidden or 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
// Ping Pong Compare Timestamps | |
setInterval(function () { | |
fetchEditDate('/fetch/edit-date/{segment_2}'); | |
var origEditDate = $('#original-edit-date-field').val(); | |
var fetchedEditDate = $('#fetched-edit-date-field').val(); | |
if (fetchedEditDate > origEditDate){ | |
location.reload(); | |
} | |
},500); |
This file contains hidden or 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
<?php | |
$connected = @fsockopen("www.workwiththey.com", 80); | |
if ($connected) { | |
echo "connected"; | |
fclose($connected); | |
} else { | |
echo "not connected"; | |
} | |
?> |
This file contains hidden or 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
// JS | |
if (!Modernizr.input.placeholder) { | |
$('.placeholder-fallback').addClass('fallback'); | |
$('.has-placeholder').keyup(function() { | |
var fieldValue = $(this).val(); | |
var fieldname = $(this).attr('name'); | |
if (fieldValue === '') { |
This file contains hidden or 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
// Placeholder Focus Kill | |
$('.has-placeholder').on('focus', function() { | |
var $field = $(this); | |
$field.attr({placeholderinactive : $field.attr('placeholder')}).removeAttr('placeholder'); | |
}); | |
$('.has-placeholder').on('blur', function() { | |
var $field = $(this); | |
$field.attr({placeholder : $field.attr('placeholderinactive')}).removeAttr('placeholderinactive'); |
This file contains hidden or 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
$(document).ready(function() { | |
if($('#bonus').length ) { | |
if ( /Android/i.test(navigator.userAgent) ) { | |
$('.store-ios').css('opacity', '.25'); | |
$('.store-bb').css('opacity', '.25'); | |
} | |
if ( /BlackBerry/i.test(navigator.userAgent) ) { | |
$('.store-ios').css('opacity', '.25'); | |
$('.store-android').css('opacity', '.25'); | |
} |
This file contains hidden or 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
<? | |
$dbhost = 'localhost'; | |
$dbuser = 'db_user'; | |
$dbpass = 'db_pass'; | |
$dbname = 'db_name'; | |
$ftphost = 'ftp_host'; | |
$ftpuser = 'ftp_user'; | |
$ftppass = 'ftp_pass'; |
This file contains hidden or 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
{exp:switchee variable="{segment_1}" parse="inward"} | |
{!-- French --} | |
{case value="fr"} | |
{switchee variable="{segment_2}" parse="inward"} | |
{case value="services-famille"} |
This file contains hidden or 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
// Browser Class | |
$(document).ready(function() { | |
var agent = navigator.userAgent; | |
var browser; | |
if ( /Trident\/7.0/i.test(agent) ) { | |
browser = 'ie11'; | |
} | |