-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrcnews
64 lines (60 loc) · 1.75 KB
/
srcnews
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
<style>
div#news{
width: 300px;
border: 1px solid #111;
box-shadow: 0 0 10px #333;
}
div#right_block{
float: right;
width: 300px;
overflow: visible;
}
</style>
<div id="right_block">
<div id="news">
<a href="news.php" class="unhref">
<div id="news_name">
Новости
</div>
</a>
<div id="content">
<a href="contest.php" class="unhref">
<div id="contest">
<div id="upcoming_contest"> Близжайшее соревнование </div>
<?php include("leftContest"); ?>
<a href="contest.php">
Зарегистрироваться
</a>
</div>
</a>
<?php
$id = 2;
include("text_news");
?>
</div>
</div>
<script type="text/javascript" src="//vk.com/js/api/openapi.js?144"></script>
<script>
function showHide(element_id) {
$(element_id).slideToggle('fast', changeClass);
}
</script>
<script type="text/javascript">
VK.init({apiId: 5996916, onlyWidgets: true});
</script>
<?php if (isset($about) != true) { ?>
<div style="width: 300px; float: right;">
<a onclick="showHide('#vk_comments')">
<button style="text-align:center; width: 100%; margin-top: 10px; background: azure; border: 1px solid #234; border-radius: 5px; box-shadow: 0 0 10px #333; padding: 5px;">Оставить отзыв через ВКонтакте</button>
</a>
<div id="vk_comments" style="display: none; box-shadow: 0 0 10px #333; margin-top: 10px;">
</div>
</div>
<script type="text/javascript">
VK.Widgets.Comments("vk_comments", {limit: 3, attach: "*"});
</script>
<script type="text/javascript">
$("#fd340f28125514").width(300);
</script>
<?php } ?>
</div>