-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (98 loc) · 3.84 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="UTF-8">
<title>Yandex Presentation</title>
<link rel="stylesheet" type="text/css" media=screen href="/css/screen.css">
<!--[if IE]>
<style>
#presentation-thumbnails iframe{
zoom:0.2;
}
</style>
<![endif]-->
<script type="text/javascript" src="/js/jquery.1.7.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("iframe").load(windowResize());
function iframeZoom(zoom){
var iframe = $("#presentation-main iframe");
if($.browser.msie) iframe.css({"zoom": zoom});
else{
iframe.css({"-moz-transform":"scale(" + zoom + ")",
"-o-transform":"scale(" + zoom + ")",
"-webkit-transform":"scale(" + zoom + ")"});
}
iframe.parent(".iframe-wrapper").css({"width":(1024*zoom).toFixed(0),"height":(768*zoom).toFixed(0)});
}
function windowResize(){
var height = $(window).height()-40;
var width = $(window).width()-285;
var zoomHeight = Math.floor((height/768)*100)/100;
var zoomWidth = Math.floor((width/1024)*100)/100;
var zoom = 1;
(zoomHeight >= zoomWidth)? zoom = zoomWidth : zoom = zoomHeight;
if (zoom > 0.2) iframeZoom(zoom);
if(height > 170) $("#presentation-thumbnails").css({"height":height});
};
$(window).resize(function(){
windowResize();
});
$("#presentation-thumbnails a").click(function(){
$("#presentation-main").html($(this).siblings(".iframe-wrapper").clone());
windowResize();
return false;
});
});
</script>
</head>
<body>
<div id="main">
<ul id="presentation-thumbnails">
<li>
<a href="#"></a>
<div class="iframe-wrapper">
<iframe src="/slides/slide1.html" frameborder="0" width="1024" height="768"></iframe>
</div>
</li>
<li>
<a href="#"></a>
<div class="iframe-wrapper">
<iframe src="/slides/slide2.html" frameborder="0" width="1024" height="768"></iframe>
</div>
</li>
<li>
<a href="#"></a>
<div class="iframe-wrapper">
<iframe src="/slides/slide3.html" frameborder="0" width="1024" height="768"></iframe>
</div>
</li>
<li>
<a href="#"></a>
<div class="iframe-wrapper">
<iframe src="/slides/slide1.html" frameborder="0" width="1024" height="768"></iframe>
</div>
</li>
<li>
<a href="#"></a>
<div class="iframe-wrapper">
<iframe src="/slides/slide2.html" frameborder="0" width="1024" height="768"></iframe>
</div>
</li>
<li>
<a href="#"></a>
<div class="iframe-wrapper">
<iframe src="/slides/slide3.html" frameborder="0" width="1024" height="768"></iframe>
</div>
</li>
</ul>
<div id="presentation-main">
<div class="iframe-wrapper">
<iframe src="/slides/slide1.html" frameborder="0" width="1024" height="768"></iframe>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>