-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesign.php
More file actions
219 lines (176 loc) · 6.48 KB
/
design.php
File metadata and controls
219 lines (176 loc) · 6.48 KB
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
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content=" ***Website Description Here*** "/>
<meta name="author" content="Joseph Williams"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>Joseph Williams | Multimedia Designer</title>
<link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/styles.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/mobile.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/magnific-popup.css">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
<script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="shortcut icon" href="images/favicon.ico">
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="page-wrapper">
<header>
<div class="container">
<aside>
<ul class="social">
<li>
<a href="https:/facebook.com/faooful">
<span class="social_icon"><img src="images/webicon-facebook-s.png">
</a>
</li>
<li>
<a href="https:/twitter.com/faooful">
<span class="social_icon"><img src="images/webicon-twitter-s.png">
</a>
</li>
<li>
<a href="https:/github.com/faooful">
<span class="social_icon"><img src="images/GitHub-Mark-32px.png">
</a>
</li>
<li>
<a href="https:/faooful.tumblr.com">
<span class="social_icon"><img src="images/webicon-tumblr-s.png">
</a>
</li>
</ul>
</aside>
<nav>
<ul>
<li> <a href="index.html">Home</a></li>
<li> <a href="design.php">Design</a></li>
<li> <a href="web.html">Web</a></li>
<li> <a href="index.html#contact">Contact</a></li>
</ul>
</nav>
</div>
</header>
<section class="container">
<div class="name-info">
<span class="designtitle">Design</span>
<img class="designicon" src="images/designicon.png"></img>
<span class="designbio">Here is a colaboration of my Photoshop and Illustrator work.</span>
</div>
<div class="gallery">
<!-- GALLERY -->
<?php
$feed = simplexml_load_file('http://feed6.photobucket.com/albums/f83/faooful/img-gallery/feed.rss');
$channel = $feed->channel;
#LEFT
echo '<div id="gallery-l"><div class="popup-gallery">';
$i = 0;
foreach($channel->item as $item):
if ( $i %2 == 0 ) {
$i++;
continue;
}
$image = $item->children('media', true)->content->attributes()->url;
$i++;
?>
<a href="<?= $image; ?>"><img src='<?= $image; ?>' alt=''/></a>
<?php endforeach;
echo '</div></div>';
#RIGHT
echo '<div id="gallery-r"><div class="popup-gallery">';
$i = 0;
foreach($channel->item as $item):
if ( $i %2 != 0 ) {
$i++;
continue;
}
$image = $item->children('media', true)->content->attributes()->url;
$i++;
?>
<a href="<?= $image; ?>"><img src='<?= $image; ?>' alt=''/></a>
<?php endforeach;
echo '</div></div>';
?>
<!-- GALLERY END -->
</div>
</section>
<footer class="container">
<p>Copyright © 2014 Joseph Williams.</p>
</footer>
</div>
</body>
<script src="js/jquery-1.9.1.min.js" charset="utf-8"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script>
$(document).ready(function() {
$('.popup-gallery').magnificPopup({
delegate: 'a',
type: 'image',
tLoading: 'Loading image #%curr%...',
mainClass: 'mfp-img-mobile',
gallery: {
enabled: true,
navigateByImgClick: true,
preload: [0,1] // Will preload 0 - before current, and 1 after the current image
},
zoom: {
enabled: true, // By default it's false, so don't forget to enable it
duration: 200, // duration of the effect, in milliseconds
easing: 'ease-in-out', // CSS transition easing function
// The "opener" function should return the element from which popup will be zoomed in
// and to which popup will be scaled down
// By defailt it looks for an image tag:
opener: function(openerElement) {
// openerElement is the element on which popup was initialized, in this case its <a> tag
// you don't need to add "opener" option if this code matches your needs, it's defailt one.
return openerElement.is('img') ? openerElement : openerElement.find('img');
}
},
image: {
tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
titleSrc: function(item) {
return '<small>by Joseph Williams</small>';
}
}
});
});
</script>
<script src="js/showhide.js"></script>
<script>
$(document).ready(function(){
$('.show_hide').showHide({
speed: 1000, // speed you want the toggle to happen
easing: '', // the animation effect you want. Remove this line if you dont want an effect and if you haven't included jQuery UI
changeText: 1, // if you dont want the button text to change, set this to 0
showText: 'MENU',// the button text to show when a div is closed
hideText: 'CLOSE' // the button text to show when a div is open
});
});
</script>
<!-- Lazy Load -->
<script src="js/jquery.lazyload.js" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$("img.lazy").show().lazyload({
effect : "fadeIn",
failurelimit : 0
});
});
</script>
<!-- Lazy Load End -->
<script src="js/headroom.js" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
// grab an element
var myElement = document.querySelector("header");
// construct an instance of Headroom, passing the element
var headroom = new Headroom(myElement);
// initialise
headroom.init();
</script>
</html>