Skip to content

Commit

Permalink
YaMaps
Browse files Browse the repository at this point in the history
  • Loading branch information
malder1975 committed Sep 29, 2016
1 parent aae59f8 commit d170a09
Showing 1 changed file with 58 additions and 35 deletions.
93 changes: 58 additions & 35 deletions frontend/web/js/vzn.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,59 @@
+function ($) {
$(document).ready(function(){
$(".ul.dropdown-menu [data-toggle=dropdown]").on('click', function(event) {
event.preventDefault();
event.stopPropagation();
$(this).parent().siblings().removeClass('open');
$(this).parent().toggleClass('open');
});
});
}(jQuery);

+function ($) {
$(".dropdown ul").parent("li").addClass("parent");
$(".dropdown ul li:first-child, .cusel span:first-child").addClass("first");
$(".dropdown ul li:last-child, .cusel span:last-child").addClass("last");
}(jQuery);




+function ($) {
$(".fdi-Carousel .item").each(function() {
var next = $(this).next();
if (!next.length) {
next = $(this).siblings(":first");
}
next.children(":first-child").clone().appendTo($(this));

if (next.next().length > 0) {
next.next().children(":first-child").clone().appendTo($(this));
}
else {
$(this).siblings(":first").children(":first-child").clone().appendTo($(this));
}
});
+function ($) {
$(document).ready(function(){
$(".ul.dropdown-menu [data-toggle=dropdown]").on('click', function(event) {
event.preventDefault();
event.stopPropagation();
$(this).parent().siblings().removeClass('open');
$(this).parent().toggleClass('open');
});
});
}(jQuery);

+function ($) {
$(".dropdown ul").parent("li").addClass("parent");
$(".dropdown ul li:first-child, .cusel span:first-child").addClass("first");
$(".dropdown ul li:last-child, .cusel span:last-child").addClass("last");
}(jQuery);




+function ($) {
$(".fdi-Carousel .item").each(function() {
var next = $(this).next();
if (!next.length) {
next = $(this).siblings(":first");
}
next.children(":first-child").clone().appendTo($(this));

if (next.next().length > 0) {
next.next().children(":first-child").clone().appendTo($(this));
}
else {
$(this).siblings(":first").children(":first-child").clone().appendTo($(this));
}
});
}(jQuery);

+function ($) {
$(document).ready(function() {
ymaps.ready(init);
var myMap,
myPlacemark;

function init(){
myMap = new ymaps.Map("map", {
center: [55.76, 37.64],
zoom: 7
});

myPlacemark = new ymaps.Placemark([55.76, 37.64], {
hintContent: 'Москва!',
balloonContent: 'Столица России'
});

myMap.geoObjects.add(myPlacemark);
}

});
}(jQuery);

0 comments on commit d170a09

Please sign in to comment.