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
.demo-block { | |
position: relative; | |
overflow: hidden; | |
} | |
.demo-block img { | |
transform: scale(1.02); | |
transition: transform .2s; | |
} |
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
/* --- Reset --- */ | |
.row { | |
max-width: 1920px; | |
} | |
/* --- End Reset --- */ | |
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
<!doctype html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<!-- Page Meta --> | |
<title>Exercise</title> | |
<meta name="description" content=""> |
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
error_reporting(E_ALL); | |
ini_set('display_errors', 1); |
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
Add to header or function file: | |
<?php | |
// URL Segments and Master ID | |
// | |
// Segment Variables: $GLOBALS['segment']['1'], $GLOBALS['segment']['2'], etc. | |
// Master ID Variable: $GLOBALS['master_id'] | |
global $segment; | |
global $master_id; |
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
function saCSV($table, filename) { | |
var $rows = $table.find('tr:has(td)'); | |
var column_delimiter_temp = String.fromCharCode(11); | |
var row_delimiter_temp = String.fromCharCode(0); | |
var column_delimiter = '","'; | |
var row_delimiter = '"\r\n"'; | |
var csv = '"'+ $rows.map(function (i, row) { | |
var $row = $(row); | |
var $col = $row.find('td'); | |
return $col.map(function (j, col) { |
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(){ | |
parallax(); | |
$window = $(window); | |
$window.scroll(function() { | |
parallax(); | |
}); |
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
// IE8 Font Awesome Fix | |
if ($('html').hasClass('lt-ie9')) { | |
$(document).ready(function() { | |
setTimeout(function() { | |
$('.fa').each(function() { | |
$(this).parent().trigger('focus'); | |
}); | |
$('html, body').animate({ scrollTop: 0 }, 0); | |
}, 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
.grid_image_left { float: left; padding-right: 30px; } | |
.grid_image_right { float: right; padding-left: 30px; } | |
.grid_image_half { width: 50%; } | |
.grid_image_full { width: 100%; } | |
.grid_image img { margin-bottom: 30px; } |
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
// Grid Images | |
$(document).ready(function() { | |
if($('.grid_images').length && $('.grid_image').length) { | |
$('.grid_image').each(function() { | |
var gridID = $(this).attr('id'); | |
gridID = gridID.replace('grid_image_', ''); | |
var gridImage = $('#grid_source_' + gridID).attr('data-src'); | |
var gridFloat = $('#grid_source_' + gridID).attr('data-float'); | |
var gridWidth = $('#grid_source_' + gridID).attr('data-width'); |
NewerOlder