-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
73 lines (51 loc) · 2.06 KB
/
index.php
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
<!DOCTYPE html>
<html>
<head>
<title>Quran Urdu</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="assets/css/style.css" />
<link rel="shortcut icon" href="" />
<script type="text/javascript" src="templates/js/jquery-1.9.js"></script>
<script src="assets/js/jquery.cookie.js"></script>
<script>
function initTheme() {
var link = $('.iphone-content').contents().find('#theme-style'),
list = $('.change-bg ul li'),
theme = $.cookie('malpha-theme');
list.find('a').removeClass('active');
if(theme != '') {
link.attr({ 'href' : 'assets/themes/'+ theme +'/style.css' });
list.find('[data-theme="'+ theme +'"]').addClass('active');
} else {
link.attr({ 'href' : '' });
list.eq(0).find('a').addClass('active');
}
}
$(document).ready(function() {
$('.iphone-content').load(function () {
initTheme();
});
$('.change-bg a').on('click', function() {
$.cookie('malpha-theme', $(this).data('theme'));
initTheme();
});
});
</script>
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
</head>
<!--[if IE 7]><body class="ie7"><![endif]-->
<!--[if IE 8]><body class="ie8"><![endif]-->
<!--[if IE 9]><body class="ie9"><![endif]-->
<!--[if gt IE 9]><!--><body><!--<![endif]-->
<div class="box">
<div id="iphone">
<div class="change-bg">
</div>
<iframe class="iphone-content" src="templates/index.html" frameborder="0"></iframe>
</div>
</div>
<div class="overlay"></div>
</body>
</html>