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
<table cellpadding="0" cellspacing="0" border="0" style="background: none; border-width: 0px; border: 0px; margin: 0; padding: 0;"> | |
<tr> | |
<td valign="top" style="max-width: 201px; padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 7px; border-top: 0; border-bottom: 0; border-left: 0; border-right: 0;"> | |
<img style="width: 100%; height: auto;" id="preview-image-url" src="https://dl.dropboxusercontent.com/u/5358851/signature_tilt.jpg"> | |
</td> | |
<td style="padding-top: 0; padding-bottom: 0; padding-left: 12px; padding-right: 0;"> | |
<table cellpadding="0" cellspacing="0" border="0" style="background: none; border-width: 0px; border: 0px; margin: 0; padding: 0;"> | |
<tr> | |
<td colspan="2" style="padding-bottom: 5px; color: #000; font-size: 16px; font-family: Arial, Helvetica, sans-serif; font-weight:bold;"> | |
Baptiste Marck |
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
--- | |
# `vagrant_box` can also be set to geerlingguy/centos6, geerlingguy/centos7, | |
# geerlingguy/ubuntu1204, parallels/ubuntu-14.04, etc. | |
vagrant_box: geerlingguy/ubuntu1404 | |
vagrant_user: vagrant | |
vagrant_synced_folder_default_type: nfs | |
# If you need to run multiple instances of Drupal VM, set a unique hostname, | |
# machine name, and IP address for each instance. | |
vagrant_hostname: drupalvm.dev |
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 bouncingValue(elem) { | |
var matrix = elem.css('transform'); | |
var results = matrix.split('(')[1].split(')')[0].split(','); | |
$({ | |
a: results[0], | |
b: results[1], | |
c: results[2], | |
d: results[3], | |
e: results[4], | |
f: results[5], |
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
$( window ).scroll(function(){ | |
$('.banner-image[data-perspective]').each(function(){ | |
var perspective = $(this).data('perspective'); | |
var position = $(this).parents().position(); | |
var scrollTop = position.top - $(window).scrollTop(); | |
var height = $(this).outerHeight(); | |
var calc = $(this).outerHeight() - height - scrollTop ; | |
$(this).css({'transform': 'translate3d(0px, ' + Math.round(calc/perspective) + 'px, 0px)'}); | |
}); | |
}); |
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
{% | |
set body_classes = [ | |
logged_in ? 'user-logged-in', | |
not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class, | |
node_type ? 'page-node-type-' ~ node_type|clean_class, | |
db_offline ? 'db-offline', | |
] | |
%} | |
<body{{ attributes.addClass(body_classes) }}> |
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 | |
/** | |
* @file | |
* Contains \Drupal\tilt_display\Plugin\Block\LocationBlock. | |
*/ | |
namespace Drupal\tilt_display\Plugin\Block; | |
use Drupal\Core\Block\BlockBase; |