-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex01.html
207 lines (176 loc) · 7.44 KB
/
index01.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!doctype html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<title>AntiConsultant Web Communications -- Berkeley, CA, USA +1 510 332 9661</title>
<!-- Behavioral Meta Data -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- Core Meta Data -->
<meta name="author" content="Thomas Richardson">
<meta name="description" content="Parallax ver of AntiConsultant front page">
<meta name="keywords" content="parallax,javascript,jquery,zepto,plugin">
<!-- Twitter Card Meta Data -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="http://anticonsultant.org/">
<meta name="twitter:creator" content="@anticonsultant">
<meta name="twitter:title" content="AntiConsultant">
<meta name="twitter:description" content="AntiConsultant Web Communications in Berkeley, CA, USA">
<meta name="twitter:image" content="http://www.anticonsultant.org/img/tr.jpg">
<!-- Humans
<link rel="author" href="humans.txt" />
-->
<!-- Styles from parallax -->
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
<!-- Styles
<link rel="stylesheet" href="css/custom.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/foundation.css">
<script src="js/vendor/custom.modernizr.js"></script>
<script src="http://foundation.zurb.com/docs/assets/docs.js"></script>
-->
<script type="text/javascript" src="//use.typekit.net/ket7qbc.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<!-- Favicon -->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="/favicon.png" type="image/png">
<link rel="shortcut icon" href="http://wagerfield.github.io/parallax/favicon.png" type="image/png">
<!-- Apple Touch Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="apple-touch-icon-57x57-precomposed.png">
<!-- Apple Startup Images -->
<link rel="apple-touch-startup-image" href="apple-touch-startup-image-320x460.png" media="(device-width: 320px)">
<link rel="apple-touch-startup-image" href="apple-touch-startup-image-640x920.png" media="(device-width: 320px) and (-webkit-device-pixel-ratio: 2)">
<link rel="apple-touch-startup-image" href="apple-touch-startup-image-768x1004.png" media="(device-width: 768px) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-touch-startup-image-748x1024.png" media="(device-width: 768px) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="apple-touch-startup-image-1536x2008.png" media="(device-width: 1536px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)">
<link rel="apple-touch-startup-image" href="apple-touch-startup-image-2048x1496.png" media="(device-width: 1536px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)">
<style>
html {
background: url(img/hubble-stars-bg-02.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
</style>
</head>
<body>
<!-- TOP BAR TITLE AREA
<nav class="top-bar">
<ul class="title-area">
<li class="name"><h1 class="tkfg-demi-italic"><a href="http://anticonsultant.org/">AntiConsultant </a></h1></li>
<li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li>
</ul>
</nav>
-->
<!-- HEADER -->
<header>
<!--
<div class="row">
<div class="large-12 columns">
<h1 style="color:#fff; padding-bottom:20px;">AntiConsultant</h1>
</div>
</div>
-->
</header>
<div id="container" class="wrapper">
<ul id="scene" class="scene unselectable"
data-friction-x="0.1"
data-friction-y="0.1"
data-scalar-x="25"
data-scalar-y="15">
<li class="layer" data-depth="0.00"></li>
<li class="layer" data-depth="0.10"><div class="background"></div></li>
<li class="layer" data-depth="0.15"><div class="panel hanger position-1">AntiConsultant will be right back.</div></li>
<li class="layer" data-depth="0.25"><h1 class="title tkfg-demi-italic">AntiConsultant<em>.org</em></h1></li>
</ul>
<footer>
<div class="fb-like" data-href="http://anticonsultant.org/" data-width="400" data-layout="button_count" data-show-faces="false" data-send="false"></div>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://anticonsultant.org" data-text="Web communications and UX">Tweet</a>
</footer>
</div>
<!-- Scripts -->
<script src="http://wagerfield.github.io/parallax/assets/scripts/js/libraries.min.js"></script>
<script src="http://wagerfield.github.io/parallax/deploy/jquery.parallax.js"></script>
<script>
// jQuery Selections
var $html = $('html'),
$container = $('#container'),
$prompt = $('#prompt'),
$toggle = $('#toggle'),
$about = $('#about'),
$scene = $('#scene');
// Hide browser menu.
(function() {
setTimeout(function(){window.scrollTo(0,0);},0);
})();
// Setup FastClick.
FastClick.attach(document.body);
// Add touch functionality.
if (Hammer.HAS_TOUCHEVENTS) {
$container.hammer({drag_lock_to_axis: true});
_.tap($html, 'a,button,[data-tap]');
}
// Add touch or mouse class to html element.
$html.addClass(Hammer.HAS_TOUCHEVENTS ? 'touch' : 'mouse');
// Resize handler.
(resize = function() {
$scene[0].style.width = window.innerWidth + 'px';
$scene[0].style.height = window.innerHeight + 'px';
if (!$prompt.hasClass('hide')) {
if (window.innerWidth < 600) {
$toggle.addClass('hide');
} else {
$toggle.removeClass('hide');
}
}
})();
// Attach window listeners.
window.onresize = _.debounce(resize, 200);
window.onscroll = _.debounce(resize, 200);
function showDetails() {
$about.removeClass('hide');
$toggle.removeClass('i');
}
function hideDetails() {
$about.addClass('hide');
$toggle.addClass('i');
}
// Listen for toggle click event.
$toggle.on('click', function(event) {
$toggle.hasClass('i') ? showDetails() : hideDetails();
});
// Pretty simple huh?
$scene.parallax();
// Check for orientation support.
setTimeout(function() {
if ($scene.data('mode') === 'cursor') {
$prompt.removeClass('hide');
if (window.innerWidth < 600) $toggle.addClass('hide');
$prompt.on('click', function(event) {
$prompt.addClass('hide');
if (window.innerWidth < 600) {
setTimeout(function() {
$toggle.removeClass('hide');
},1200);
}
});
}
},1000);
// Twitter stuff.
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
// Facebook stuff.
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=617983194942193";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
</html>