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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Are You Human?</title> | |
<script type="text/javascript"> | |
var a = Math.ceil(Math.random() * 10); | |
var b = Math.ceil(Math.random() * 10); | |
var c = a + b |
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
<style type="text/css"> | |
div.trust-pilot{ | |
width: 100% !important; | |
height: auto; | |
} | |
</style> | |
<div id="trust-pilot" class="trust-pilot"> | |
<div class="tp_-_box" data-tp-settings="domainId: xxxxxxx, | |
bgColor: F5F5F5, |
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 lt IE 7]> <html class="ie6"> <![endif]--> | |
<!--[if IE 7]> <html class="ie7"> <![endif]--> | |
<!--[if IE 8]> <html class="ie8"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html> <!--<![endif]--> | |
<style> | |
div.foo { color: inherit;} | |
.ie6 div.foo { color: #ff8000; } | |
</style> |
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
//for each element that is classed as 'pull-down', set its margin-top to the difference between its own height and the height of its parent | |
$('.pull-down').each(function() { | |
$(this).css('margin-top', $(this).parent().height()-$(this).height()) | |
}); |
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
/* Smooth Scrolling */ | |
$('a.scroll[href*=#]:not([href=#])').on('click', function(e) { | |
// prevent default anchor click behavior | |
target = this.hash; | |
e.preventDefault(); | |
// animate | |
$('html, body').animate({ | |
scrollTop: $(this.hash).offset().top - 60 | |
}, 1000, function() { | |
// when done, add hash to url |
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 id="one-true" class="group"> | |
<div class="col"> | |
<h3>I am listed first in source order.</h3> | |
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p> | |
</div> | |
<div class="col"> | |
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> | |
</div> | |
<div class="col"> | |
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p> |
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
/* Variables */ | |
$font-stack: Helvetica, sans-serif | |
$primary-color: #333 | |
body | |
font: 100% $font-stack | |
color: $primary-color | |
/* Nesting */ | |
nav |
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
<style> | |
div{ | |
background: red; | |
bottom: 0; | |
height: 100px; | |
left: 0; | |
margin: auto; | |
position: absolute; | |
top: 0; | |
right: 0; |
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
<ul class="selectable"> | |
<li> | |
<dl> | |
<dd class="top"></dd> | |
<dt>Title</dt> | |
<dd class="bot"></dd> | |
</dl> | |
</li> | |
<li class="active"> | |
<dl> |
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
<script> | |
$("[data-toggle=popover]") | |
.popover({ | |
html: true | |
}) | |
</script> | |
<a href="#" role="button" class="btn popovers" data-toggle="popover" title="" data-content="test content <a href='' title='test add link'>link on content</a>" data-original-title="test title">test link</a> |