-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
145 lines (77 loc) · 4.64 KB
/
test.html
File metadata and controls
145 lines (77 loc) · 4.64 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Spiral Pixel Design : Flati </title>
<link href="selector/styles.css" rel="stylesheet" media="all" />
<script type="text/javascript" src="selector/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
if (top.location != location) {
top.location.href = document.location.href ;
}
});</script>
<script type="text/javascript">
var theme_list_open = false;
$(document).ready(function () {
function fixHeight () {
var headerHeight = $("#switcher").height();
$("#iframe").attr("height", (($(window).height() - 10) - headerHeight) + 'px');
}
$(window).resize(function () {
fixHeight();
}).resize();
$("#theme_select").click( function () {
if (theme_list_open == true) {
$(".center ul li ul").fadeOut();
theme_list_open = false;
} else {
$(".center ul li ul").fadeIn();
theme_list_open = true;
}
return false;
});
$("#theme_list ul li a").click(function () {
var theme_data = $(this).attr("rel").split(",");
$("li.purchase a").attr("href", theme_data[1]);
$("li.remove_frame a").attr("href", theme_data[0]);
$("#iframe").attr("src", theme_data[0]);
$("#theme_list a#theme_select").text($(this).text());
$(".center ul li ul").hide();
theme_list_open = false;
return false;
});
var cHeight = $("#iframe").height();
$('.remove_frame').click(function(){
var redirecturl = $("li.purchase a").attr("href", theme_data[1]);
$("#switcher").css({zIndex:-99}).fadeOut();
$("#iframe").animate({marginTop:0}).css({height:cHeight + 70});
window.location.href = redirecturl;
return false;
})
});
</script>
<script>
$('.remove_frame').delegate('a','click',function(){
window.location="urlredirect";
top.location.href=$('#iframe')[0].contentWindow.location.href;
return false;
});
</script>
</head>
<body>
<div id="switcher">
<div class="center">
<ul>
<li><a href="http://www.spiralpixel.com"><img src="selector/logo.png" alt="" class="logo"/></a></li>
<li id="theme_list"><a id="theme_select" href="#">Flati </a>
<ul>
<li><a href="#" rel="http://wordpress-themes.derby-web-design-agency.co.uk/flati/,http://themeforest.net/item/flati-responsive-flat-bootstrap-wordpress-theme/6184186?ref=spiralpixel">Flati <span class="product-type">Portfolio</span><span class="product-preview"><img src="http://3.s3.envato.com/files/74498111/Screenshots/00_main.__large_preview.jpg" /></span></a></li><li><a href="#" rel="http://wordpress-themes.derby-web-design-agency.co.uk/minx/,http://themeforest.net/item/minx-responsive-bootstrap-wordpress-theme/5357677?ref=spiralpixel">Minx <span class="product-type">Portfolio</span><span class="product-preview"><img src="http://2.s3.envato.com/files/63984607/Screenshot/preview.__large_preview.jpg" /></span></a></li><li><a href="#" rel="http://wordpress-themes.derby-web-design-agency.co.uk/tango/,http://themeforest.net/item/tango-bootstrap-responsive-html5-wordpress-theme/4884066?ref=spiralpixel">Tango <span class="product-type">Portfolio</span><span class="product-preview"><img src="http://0.s3.envato.com/files/58225566/Screenshots/01_preview.__large_preview.jpg" /></span></a></li></ul>
<li class="remove_frame" rel="http://wordpress-themes.derby-web-design-agency.co.uk/flati/"><a href="http://wordpress-themes.derby-web-design-agency.co.uk/flati/"></a></li>
<li class="purchase" rel="http://themeforest.net/item/flati-responsive-flat-bootstrap-wordpress-theme/6184186?ref=spiralpixel"><a href="http://themeforest.net/item/flati-responsive-flat-bootstrap-wordpress-theme/6184186?ref=spiralpixel"></a></li>
</div>
</ul>
</div>
<iframe id="iframe" src="http://wordpress-themes.derby-web-design-agency.co.uk/flati/" frameborder="0" width="100%"></iframe>
</body>
</html>