-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
127 lines (114 loc) · 5.01 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sorteio eletrônico</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Gerador números randômicos para sorteios">
<meta name="author" content="Andre Cardoso">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery-1.9.0.js"></script>
<script src="js/sorteio.js"></script>
<!-- Google Analytics -->
<?php if ($_SERVER['HTTP_HOST'] == 'sorteioeletronico.andrebian.com') : ?>
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-44236047-1', 'andrebian.com');
ga('send', 'pageview');
</script>
<?php endif; ?>
<!-- Google Analytics -->
</head>
<body>
<div class="container">
<div class="row">
<div class="span2">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2136784768929334";
/* Sorteio eletrônico esq */
google_ad_slot = "6787598206";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="span8">
<div class="masthead">
<ul class="nav nav-pills pull-right">
<li class="active"><a href="/">Novo sorteio</a></li>
</ul>
<h2 class="muted">Sorteio eletrônico</h2>
</div>
<hr>
<div class="row">
<div class="span4">
Número inicial <br />
<input type="number" name="min" id="Min" value="1">
</div>
<div class="span4">
Número final <br />
<input type="number" name="max" id="Max" value="10">
</div>
</div>
<br />
<div class="row">
<div class="span3"> </div>
<div class="span4">
<a class="btn btn-large btn-success" href="#" id="Sortear">Sortear</a>
</div>
<div class="span2"> </div>
</div>
<div class="row">
<div class="span1"> </div>
<div class="span5"><center>
<div id="NumeroSorteado">---</div>
</center>
</div>
<div class="span1"> </div>
</div>
<br clear="all" />
<hr>
<div class="span6">
<h4 id="JaSorteados" style="display:none;">Já sorteados</h4>
<div class="span6" id="NumerosSorteados"></div>
</div>
<br clear="all" />
<br clear="all" />
<hr>
<div class="footer">
<p>©
<a href="http://www.andrebian.com" target="_blank">Andre Cardoso</a>
2013 - <?php echo date('Y'); ?></p>
</div>
</div>
<div class="span2">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2136784768929334";
/* Sorteio eletrônico dir */
google_ad_slot = "8264331404";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>
</div>
</body>
</html>