ADD vkBigLogo

This commit is contained in:
Krivchikov Dmitry 2015-02-15 16:46:09 +03:00
parent d4483ed0f3
commit 88efaa3c85
3 changed files with 47 additions and 28 deletions

View File

@ -16,11 +16,11 @@
<div class="glyphicon glyphicon-star _c boxButtonFavorites" onclick="openBox('Favorites')" title="Хочу посетить"></div>
<div class="glyphicon glyphicon-cloud-download _c boxButtonRoutes" onclick="openBox('Routes')" title="Мои маршруты"></div>
<div class="glyphicon glyphicon-user _b boxButtonUser" onclick="openBox('User')" title="Профиль"></div>
<?php else:?>
<?php else: ?>
<div class="glyphicon glyphicon-user" id="loginButton" onclick="$('#loginModal').modal('show');" title="Войти для добавления точки"></div>
<?php endif;?>
<?php endif; ?>
<a href="https://vk.com/wikipoints" target="_blank"><div class="glyphicon" style="line-height: 0;" title="WikiPoints вКонтакте"><img src="/img/b.png" style="margin-left: -4px; margin-top: 0px; height: 15px;" /></div></a>
<a href="https://vk.com/wikipoints" target="_blank"><img src="/img/vkBigLogo.png" style="margin-left: 185px; margin-top: 0px; position: absolute; display: none;" id="vkBigLogo" /><div class="glyphicon" style="line-height: 0;" title="WikiPoints вКонтакте"><img src="/img/b.png" style="margin-left: -4px; margin-top: 0px; height: 20px;" /></div></a>
</div>
<div id="box">
<span id="boxClose" onclick="closeBox();">&times;</span>
@ -31,7 +31,8 @@
<a onclick="$('#categoriesModal').modal('show');" href="#">Легенда</a><br/>
<a href="/page/points">Список точек</a><br/>
<br/>
<a href="/?point=random" onclick="showRandomPoint(); return false;">Случайная точка</a>
<a href="/?point=random" onclick="showRandomPoint();
return false;">Случайная точка</a>
<br/><br/><br/>
<a href="http://vk.com/wikipoints" target="_blank"><img src="/img/vk.png" width="24" height="24"/> Группа ВКонтакте</a>
</div>
@ -53,7 +54,7 @@
</span>
<br />
<?php foreach ($categories as $category): ?>
<input type="checkbox" value="<?=$category->id?>" class="filterSelector"> <?=$category->name?><br/>
<input type="checkbox" value="<?= $category->id ?>" class="filterSelector"> <?= $category->name ?><br/>
<?php endforeach; ?>
</div>
<div id="boxRoute" style="height: 100%; overflow-y: auto;">
@ -85,7 +86,9 @@
<div id="routes">
<?php if ($routes): ?>
<?php foreach ($routes as $route) : ?>
<div class="route" onclick="loadRoute(<?= $route->id ?>)"><span onclick="deleteRoute(<?= $route->id ?>);$(this).parent().remove();event.stopPropagation();">&times;</span> <?= $route->name ?></div>
<div class="route" onclick="loadRoute(<?= $route->id ?>)"><span onclick="deleteRoute(<?= $route->id ?>);
$(this).parent().remove();
event.stopPropagation();">&times;</span> <?= $route->name ?></div>
<?php endforeach; ?>
<?php else: ?>
У вас пока нет сохраненных маршрутов.
@ -103,3 +106,19 @@
<?= $user ? self::renderPartial('modals/addPoint.php', array('categories' => $categories), true) : '' ?>
<?= self::renderPartial('modals/categories.php', array('categories' => $categories), true) ?>
<?= self::renderPartial('modals/image.php', array(), true) ?>
<script>
$(document).ready(function () {
if (!$.cookie('doNotShowVkLogo')) {
setTimeout(function () {
$('#vkBigLogo').show().animate({'margin-left': "-185px"}, 1000);
}, 10000);
setTimeout(function () {
$('#vkBigLogo').animate({'margin-left': "185px"}, 1000, function () {
$('#vkBigLogo').hide();
$.cookie('doNotShowVkLogo', true);
});
}, 13000);
}
})
</script>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 961 B

After

Width:  |  Height:  |  Size: 846 B

BIN
public/img/vkBigLogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB